ShiftCircle

ShiftCircle — UI Specification

Status: v1.0 · 2026-11-19 · design source: the “ShiftCircle UI Design” canvas (a private Claude design artifact owned by the project lead). The six screen files in screens/ are exact copies of that canvas at version 1795140897-e19c.

1. What’s in this folder

File What it is
screens/Main.dc.html Supervisor · Planning board
screens/MySchedule.dc.html Employee · My schedule (with overtime offer and shift planner)
screens/Overtime.dc.html Supervisor · Overtime board
screens/Rules.dc.html Rules admin · Decision table and publish checks
screens/Reports.dc.html Reports · Planned vs actual, overtime, hours by pay code
screens/WallDisplay.dc.html TV wall display · Today’s coverage (1920×1080)
screens/canvas.json Canvas layout index (artboard sizes and order)

About the file format: each .dc.html is a “Design Component”: plain HTML markup plus a small class Component extends DCLogic script whose renderVals() returns the sample data. They’re meant for the design canvas runtime (support.js, not included), so they won’t render on their own in a browser. Treat them as an exact, readable reference for layout, copy, colours, sample data and interactions. Build the real screens in React (§7). Reading tips: <sc-for list=""> = a loop, <sc-if value=""> = a condition, `` = a value from renderVals(), <helmet><style> = the screen’s CSS.

Shift times changed after the mockups were drawn: the mockups show 12 h shifts as 07–19 / 19–07 (D12 / N12); the defaults are now 00–12 / 12–24 (A12 / P12) and 16 h shifts (20:00–12:00) are regular shifts (ADR-015). Overtime is a pay-period status, not a shift type (ADR-016), so the mockups’ “OT” chips should read “extra”. Use the new times and chip codes when building. The sample data in these screens is illustrative. Where it differs from the generator configuration in docs/10-testing.md (e.g. unit staffing numbers), the generator configuration wins.

Screenshots of the built screens (planning board views, filters, export and gap panel; quarter plan readability and the planned-leave dialog) are in docs/user-guide/img/, taken at 1440×900 from the demo stack on 24 Nov 2026 and used in the supervisor and planner guides.

2. Design basis: Government of Saskatchewan digital standard

Colours, font and button conventions follow the Government of Saskatchewan’s published digital design standard for saskatchewan.ca (“Saskatchewan.ca Elements” v4.0, 2021). No government logo, wheat sheaf or coat of arms is used, because those would present the prototype as an official service. Every screen’s footer says “Not an official Government of Saskatchewan service · fictional, synthetic data only”. A pilot would get the approved header and logo from the ministry’s digital team.

3. Design tokens

3.1 Colour

Token Hex Standard name Used for
brand.primary #046A38 Football Green Top bar, active nav item, pass/approved states (text)
brand.accent #FBDD40 Canola Primary (yellow) button, 4px rule under the top bar, logo ring, “short” state on wall display
brand.link #00558C Midnight Sky Links, secondary button text/border, night shifts, “next shift” card, chart “actual”
brand.linkHover #003D66 (darker Midnight Sky) Link hover
support.lentils #64A70B Lentils Overtime offer border/accent, overtime bars
support.buffaloGrass #A4D65E Buffalo Grass Overtime shift chip
support.flax #B9D9EB Flax Chart “scheduled” bars; evening tint base
text.primary #333333 Graphite Body text, headings
text.secondary #555B61 (between Graphite and Smoke) Labels, help text (≥ 4.5:1 on white and on Cloud)
text.muted #666666 Smoke Off-days, disabled-looking labels
border #E1E3E6 Seagull Card and table borders
border.input #8E959C — Form control borders (≥ 3:1 non-text contrast)
bg.page #F5F5F5 Cloud Page background
bg.surface #FFFFFF — Cards, tables, nav
footer.bg / footer.text #2C3136 / #CCCCCC Short footer Footer bar
status.block bg #FDE8E8, text #A30000 — Blocked (rule failure). Deviation: the standard’s error red #EE0000 is under 4.5:1 on white, so text uses #A30000.
status.warn bg #FDF1B0, text #5A4500 Canola tint Warning, “approaching overtime”, coverage gap
status.pass bg #E3F0E8, text #046A38 Green tint Pass, eligible, locked/approved
status.info bg #EEF0F2, text #444A50 — Info, skipped (neutral), over-staffed
status.under bg #E8F1F8, text #00558C — “Under” overtime threshold, coverage OK
status.ot bg #FDE2D4, text #8A2C00 Overtime orange “In overtime” (and the Overtime board’s “Offers sent”). Orange since PR-A (A4): the old green read as “good”.

Rule from the standard: Living Skies #41B6E6 and Canola can’t be used together. Because Canola is the main button colour, Living Skies isn’t used.

3.2 Shift chips (always labelled with text, never colour alone)

Shift Chip Colours
Day 8 h (07–15) D bg #FDF1B0, text #333333
12 h afternoon–evening (12–24) P12 bg #D5E8F3, text #00558C
Evening 8 h (15–23) E bg #D5E8F3, text #00558C
Night 8 h (23–07) / 12 h overnight–morning (00–12) N / A12 bg #00558C, text #FFFFFF
16 h shift (20:00–12:00), historical only (L16 retired, ADR-029) L16 bg #E1E3E6, text #333333, 1px border #8E959C
Extra shift picked up beyond the roster E · extra, L16 · extra bg #A4D65E, text #1F2A0A
Overtime offered (pending) E · offer white, 2px dashed #64A70B, text #2F5206
Proposed but blocked ! D proposed white, 2px dashed #C40000, text #A30000
Sick Sick white, 1px dashed #C2410C, text #9A3412
Vacation Vac bg #E3F0E8, text #046A38
Other absence (FR-51) Other bg #EEF0F2, text #444A50
Off Off no fill, text #666666
Worked (actual recorded) prefix ✓ —

Overtime is shown per officer, not per shift: the pay-period hours with the Under / Approaching / In overtime pill (threshold 80 h by default, P-01).

3.3 Typography, spacing, shape

3.4 Buttons (per the standard)

Variant Style Rule
Primary (yellow) bg #FBDD40, text #00558C; hover bg #00558C, text white One per screen, for the main action
White white bg, #00558C text and 1px border; hover bg #E8F1F8 Secondary actions
Danger outline white bg, #A30000 text, #C40000 border Emergency override only

4. Shared layout

5. Screens

5.1 Planning board (supervisor) — screens/Main.dc.html

5.2 My schedule (employee) — screens/MySchedule.dc.html

5.3 Overtime board (supervisor) — screens/Overtime.dc.html

5.4 Rules (rules admin / approver) — screens/Rules.dc.html

5.5 Reports — screens/Reports.dc.html

5.6 Wall display (TV) — screens/WallDisplay.dc.html

6. Screens not yet designed (build from the patterns above)

Build status (23 Nov 2026): Sign-in, Time & attendance and the tablet layouts are built. Shift types is built as the rule table SHIFT_LENGTHS (allowed lengths), not as a shift-template editor. Rule version review and My hours are placeholder pages (the Proposals inbox is built in v1.3 P4) that say they are not built yet (docs/10-testing.md §8).

Screen Route Notes
Shift types (setup) /rules/{version}/shift-types Grid of shift templates (code, label, start, length, regular/overtime-only, chip style, active, effective date). Edited in a rule-set draft and published through the same build → approve flow (ADR-015). Shows a warning if a change would alter rest outcomes on the published roster (dry run).
Sign-in (mock) /login List of demo users with roles; clear “mock sign-in, demo only” banner
Time & attendance /time?period= Pay-period picker; table of scheduled vs actual per officer per day; mark worked / adjust times / absence type; “Lock pay period” (yellow) with confirmation; unlock needs a reason
Proposals inbox /proposals Supervisor list of employee proposals; per-item accept/decline with rule results. As built (v1.3 P4): the Overtime board’s two-pane pattern; Waiting / All and Unit filters; each shift with rules when sent and now (changed results highlighted, “Was …, now …”), “Would be overtime: N h”, the open-shift match and overtime-order place; Approve / Decline radios, a comment (required to decline), the warning acknowledgement and a separate “outside the overtime order” acknowledgement; a 422 shows the fresh results inline; no Emergency override (owner Q3); own proposals read-only. “Proposals (n)” in the nav for SUPERVISOR (under Overtime) and PLANNER (under Quarter plan).
Rule version review /rules/{version}/review Approver’s before/after diff, build and dry-run report, Approve / Reject with comment
Tablet layouts — Same screens; nav stacks; verify roster scroll and 44px targets at 768px

7. Implementation guidance (React + TypeScript + MUI)