feat(ios): surface shift tags on schedule and dashboard #334
No reviewers
Labels
No labels
agent:hermes
bug
chore
dependency
feature
status:blocked
status:in-progress
status:needs-info
status:needs-review
status:ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
owlburtoe/Shiftd!334
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ios-shift-tags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
iOS counterpart to #330 (web) and #332 (Android). Renders shift tags (
call,hot,preceptor, …) at a glance on the staff member's own shift display so they can see what type of shift they're working. A shift with no tags is a regular shift (nothing rendered).Tags were already decoded from the generated
Components.Schemas.Shiftand already rendered on coworker rows (CoworkerGroupCard). This PR closes the remaining gap: the staff member's own shifts on the Schedule screen and the Dashboard next-shift hero.No backend dependency
iOS sources shifts from the schedule-detail endpoint (
GET /schedules/{id}), which already carriestagson every shift (the generated Swift types already decode them). So this is a self-contained, iOS-only change offmain— it does not depend on #330's backend change.Changes
Schedule/Models/ScheduleModels.swifttags: [ScheduleCoworkerTag]toScheduleShiftSummary(defaulted init param)Schedule/Models/ScheduleDerivation.swiftshift.tagsinto the own-shift summarySchedule/ScheduleView.swiftConfiguredPill) onScheduleShiftTileContent— covers day, week, and selected-day surfacesDashboard/Models/NextShiftSummary.swifttags: [ScheduleCoworkerTag](defaulted)Dashboard/DashboardViewModel.swiftAssignedShift→NextShiftSummaryDashboard/Components/NextShiftHero.swifttags" noteReuses the existing
ConfiguredPillcomponent andScheduleColor-resolved colors, and the sameScheduleCoworkerTagmodel +shift.tagssource already used for coworker tags — no new component, no new color parsing, no networking/DTO changes.Test plan
xcodegen generate+xcodebuild ... -destination 'iPhone 17' test— 154 tests, 0 failures (TEST SUCCEEDED), incl.ScheduleDerivationTests