尚未检测到更新。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.