Add weekly tracking view and property active/inactive status #8
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 — extends work queue from #5 with tracking and property lifecycle.
Repo
ldraney/landscaping-assistantUser Story
As a landscaper
I want to see which properties I completed each week and mark houses I no longer service
So that I can track my weekly progress and keep my property list clean
Context
The app assumes every recorded property needs weekly service. We need a way to mark properties inactive (no longer serviced) and a weekly completion view. The current schema already supports weekly tracking —
work_queue_itemshaswork_date+property_id+completed. Only migration needed isactiveboolean onproperties. Navigation expands from two tabs to four: Today, Week, New, Properties.File Targets
Files to modify or create:
db/migrate/xxx_add_active_to_properties.rb— addactiveboolean (default true)app/models/property.rb—scope :active, default scope considerationsapp/controllers/weeks_controller.rb— new controller for weekly viewapp/views/weeks/index.html.erb— weekly completion gridapp/controllers/properties_controller.rb— add update action for active toggleapp/views/properties/manage.html.erb— properties management view (or new index)app/views/layouts/application.html.erb— four-tab nav (Today, Week, New, Properties)app/views/work_queue_items/index.html.erb— filter "All Properties" to active onlyconfig/routes.rb— add weeks resource, properties manage routeapp/assets/stylesheets/application.css— week grid styles, inactive property stylesFiles NOT to touch:
app/javascript/controllers/location_controller.js— GPS flow unchangedAcceptance Criteria
activecolumn on properties, defaults to trueTest Expectations
Property.activescope returns only activebundle exec rspecConstraints
work_queue_itemsChecklist
Related
project-landscaping-assistantScope Review: NEEDS_REFINEMENT
Review note:
review-1250-2026-05-24Ticket template is complete and file targets all verified against codebase, but two issues require resolution before this moves to next_up:
weekly-trackingmissing from project-landscaping-assistant user-stories table — needs creationarch-rails-appdoes not exist in pal-e-docs — needs creationskill-decompose-ticketfor sub-board creation. Suggested 4-phase split: (1) migration + model scope, (2) week controller + view, (3) properties management + toggle, (4) nav expansion + active filtering