尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗The live rota viewer for Cardiothoracic Theatres, Derriford Hospital. Shows the published weekly allocations, who is on call right now, a full-week board, a TV wall-board mode, and per-person "My Week" views.
Live app: https://chrisp6349.github.io/CT-Rota-Viewer-PWA/
Data comes from the Rota Manager app (separate repository), which publishes to a shared Google Sheet. This app is read-only — it never edits rota data.
Every time any file in this repository changes, bump the version
number in version.js (e.g. "3.4.1" → "3.4.2").
The version number controls the offline cache. Without a bump, phones and installed apps will keep showing the OLD version forever. Nothing else makes updates reach people's devices.
All routine changes happen in config.js (then bump version.js):
| When | What to edit |
|---|---|
| New ODP joins or leaves | Add/remove the name in ODP_NAMES |
| New female anaesthetist joins | Add initials to FEMALE_ANAES |
| New year's bank holidays announced | Update the BANK_HOLIDAYS date list |
| Backend/Apps Script URL changes | Update CONFIG.API_URL |
ODP_NAMES is the list of names shown in the "My Week" picker, so
everyone can select themselves even on a week they aren't rostered.
New ODPs must be added here and in the Rota Manager's config.
New staff names are added in the Rota Manager's config, not here — this app picks up names automatically from published data.
Bank holidays must also be updated in the Rota Manager's config (it has its own list for the red day labels).
All handovers happen at 06:30. (Logic lives in oncall-now.js.)
Never edit this live repository directly for anything experimental.
CT-Rota-Viewer-PWA-Dev) with the
same files and enable GitHub Pages on itversion.jsCT-Rota-Viewer-PWA-Old contains the pre-redesign version as a backup.
| File | Purpose |
|---|---|
config.js | Edit this one. API URL, female anaesthetists, bank holidays |
version.js | Bump this on every change. Single version number |
index.html / app.js / viewer.js | Daily dashboard |
oncall-now.js | ON CALL NOW card + all on-call hour rules |
myweek.js | "My Week" personal rota |
week.html / week.js / week.css | Full-week board |
tv.html / tv.js | Wall-board mode |
features.css | Styling for newer features + dark mode |
styles.css / clinical.css | Original dashboard styling |
service-worker.js | Offline support + update mechanism |
api.js | All communication with the Google Sheet backend |
oncall-now.js.