Show last week's same-day queue on the Today tab #98
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 — discovered during feature planning session.
Repo
ldraney/landscaping-assistantUser Story
As a landscaper
I want to see what properties I serviced on the same weekday last week
So that I can quickly re-queue my regular rotation without navigating back 7 days manually
Context
Most landscaping crews run roughly weekly rotations — the same properties get serviced on the same weekday each week. Currently, to see what was done last week you have to tap the back arrow 7 times or switch to the week view and navigate. A "Last week" reference section on the today tab eliminates that friction and makes re-queuing a one-tap operation.
File Targets
Files the agent should modify or create:
app/controllers/work_queue_items_controller.rb— add@last_week_itemsquery inindexactionapp/views/work_queue_items/index.html.erb— render last-week section below current queueapp/views/work_queue_items/_last_week_item.html.erb— new partial for each last-week itemFiles the agent should NOT touch:
app/controllers/weeks_controller.rb— week view is a separate featureapp/models/work_queue_item.rb— no model changes needed, existing scopes sufficeAcceptance Criteria
@date - 7.days, with property name and addressTest Expectations
indexassigns@last_week_itemswith items from 7 days agobin/rails testConstraints
Checklist
Related
project-landscaping-assistant