Day detail page: controller, route, and basic show view #234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Feature
Lineage
Decomposed from #233 (1 of 4). Must land first -- other tickets depend on this page existing.
Repo
ldraney/landscaping-assistantUser Story
As an admin or super admin
I want to click a day on the Week tab and see a dedicated day detail page
So that I have a planning-oriented view for any day of the week, separate from the Today operational view
Context
Currently, clicking a day label on the Week tab routes to
/today?date=X, which shows the full Today view with accordion sections designed for "what am I doing right now." Days need their own pages for planning. This ticket creates the foundation: a newDaysController#showwith a basic view showing the day name, date, and any properties currently queued for that date. The Week tab day labels are updated to point to the new route.The Today tab (
/today) remains completely unchanged.Role gating:
DaysControlleris gated toadmin, super_adminonly, matching the Week tab. Day pages are sub-pages of the Week tab planning portal -- if a role can't see the Week tab, they shouldn't reach day pages either. Broadening to crew leads would be a separate ticket that opens both the Week tab and day pages together.File Targets
Files to create:
app/controllers/days_controller.rb--showaction withrequire_role :admin, :super_admin, loads@datefrom params, queriesWorkQueueItem.where(work_date: @date)with associated propertiesapp/views/days/show.html.erb-- page heading with day name (e.g., "Tuesday, June 17"), back link to Week tab, list of queued properties for this datespec/requests/days_spec.rb-- request specs for the show actionFiles to modify:
config/routes.rb-- addget "/days/:date", to: "days#show", as: :dayapp/views/weeks/index.html.erb-- line 81: changework_queue_items_path(date: day)today_path(date: day)Files NOT to touch:
app/controllers/work_queue_items_controller.rb-- Today tab stays as-isapp/views/work_queue_items/-- Today view unchangedFeature Flag
Flag: none
New route/page, not a toggle on existing behavior.
Acceptance Criteria
GET /days/2026-06-17returns 200 with "Tuesday" in the headingwork_queue_itemstable)/days/:dateinstead of/today?date=Test Expectations
/days/:datereturns 200 for adminbundle exec rspec spec/requests/days_spec.rbConstraints
authenticate_user!, role gating viarequire_role :admin, :super_admin)Checklist
Related
project-landscaping-assistantScope Review: NEEDS_REFINEMENT
Review note:
review-1472-2026-06-15Template is complete and file targets all verified against the codebase. Two body fixes and one scope item needed before this is READY.
#234-2, #234-3, #234-4are not valid Forgejo issue references. Replace with#235, #236, #237.:admin, :super_adminonly — crew leads cannot see the Week tab. Specify which rolesDaysControllershould allow.arch-rails-appin pal-e-docs. This label is used across 30+ board items with no backing note.Scope refinement applied (review-1472-2026-06-15):
admin, super_adminonly, matching Week tab. Day pages are sub-pages of the Week tab planning portal. Broadening to crew leads would be a separate ticket.Scope Review: READY
Review note:
review-1472-2026-06-16Re-review passed. Both previously flagged issues (invalid issue references, ambiguous role gating) are now resolved. Template complete, all file targets verified against codebase, traceability intact, dependencies documented and confirmed. Ready for implementation.