[DECOMPOSED] Day detail page: planning view with "Previously [Day]s" accordion #233
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
Standalone -- evolved from discussion about separating the Today operational view from weekly planning. Related to the Week tab planning grid (#28, #31).
Repo
ldraney/landscaping-assistantUser Story
As a crew lead or admin
I want to click a day on the Week tab and see a dedicated day detail page with historical patterns for that weekday
So that I can plan which properties to assign by seeing what's historically been done on that day, without cluttering 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 all its accordion sections (still undone, recent, last week, unqueued this week). Those sections are designed for "what am I doing right now" and don't make sense when planning a future Tuesday from the Week tab.Days need their own pages -- like properties have
/properties/:id. The Week tab becomes the planning portal for navigating to day detail pages (past and future). The Today tab stays simple and operational.The first feature on the day detail page is a "Previously Tuesdays" accordion that shows every property historically assigned on that weekday, sorted by frequency. This leverages the existing
compute_unqueued_this_weekquery pattern (historical DOW frequency fromwork_queue_items).File Targets
Files to create:
app/controllers/days_controller.rb-- new controller withshowaction, historical frequency queryapp/views/days/show.html.erb-- day detail page with queued items list + "Previously [Day]s" accordionapp/views/days/_previously_section.html.erb-- accordion partial for historical weekday propertiesspec/requests/days_spec.rb-- request specsFiles to modify:
config/routes.rb-- add/days/:daterouteapp/views/weeks/index.html.erb-- change day label links fromwork_queue_items_path(date:)today_path(date:)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
This is a new route/page, not a toggle on existing behavior. The Week tab day links will point to the new page immediately.
Acceptance Criteria
/days/2026-06-17renders a day detail page for that Tuesdayday_exclusionstable or similar)/days/:dateinstead of/today?date=/today) remains unchanged for the current day's operational useTest Expectations
/days/:datereturns 200 with day name in headingbundle exec rspec spec/requests/days_spec.rbConstraints
<details>+accordionStimulus controller with localStorage persistence)compute_unqueued_this_weekChecklist
Related
project-landscaping-assistantScope Review: NEEDS_REFINEMENT
Review note:
review-1471-2026-06-15Well-structured feature ticket with all template sections present, but exceeds decomposition thresholds and has a missing file target.
day_exclusionsmigration + model referenced in AC #4day_exclusionstable schema (property_id, dow, created_by)arch-rails-appdoes not exist in pal-e-docsskill-decompose-ticket. Suggested sub-tickets: (1) Days controller + route + basic show page, (2) "Previously [Day]s" accordion with historical query, (3) DayExclusion model + remove button, (4) Property picker integrationDay detail page: planning view with "Previously [Day]s" accordionto [DECOMPOSED] Day detail page: planning view with "Previously [Day]s" accordion