Day detail page: property picker for quick-add to day queue #237
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 (4 of 4). Depends on #234 (day detail page must exist).
Repo
ldraney/landscaping-assistantUser Story
As a crew lead or admin
I want to search and add properties to a day's queue from the day detail page
So that I can quickly plan work without navigating back to the Today view
Context
The day detail page (#234) shows queued properties but currently has no way to add new ones. This ticket adds a property picker -- the same search/autocomplete pattern used on the Today tab (
property_picker_controller.js). Selecting a property creates aWorkQueueItemfor the viewed date.This also serves as the mechanism to re-add properties that were excluded from the "Previously" list (#236) -- adding via the picker overrides any
DayExclusionand removes it.File Targets
Files to modify:
app/controllers/days_controller.rb-- addadd_to_queueaction (POST), loads@propertiesfor the picker dropdownconfig/routes.rb-- addpost "/days/:date/add", to: "days#add_to_queue", as: :day_addapp/views/days/show.html.erb-- add property picker form above or within the queued properties sectionFiles NOT to touch:
app/javascript/controllers/property_picker_controller.js-- reuse as-isapp/controllers/work_queue_items_controller.rb-- Today tab unchangedFeature Flag
Flag: none
Additive behavior on the new day detail page.
Acceptance Criteria
WorkQueueItemfor the viewed date and adds it to the queued listDayExclusionfor this weekday, the exclusion is removed (re-adds to "Previously" list)Test Expectations
/days/:date/addwith property_id creates a WorkQueueItem for that datebundle exec rspec spec/requests/days_spec.rbConstraints
property_picker_controller.js-- same Stimulus controller, same HTML structureWorkQueueItemsController#createfor the WorkQueueItem creationadd_to_queueaction should handle the case where #236 hasn't landed yet (no DayExclusion table) -- guard withdefined?(DayExclusion)orActiveRecord::Base.connection.table_exists?(:day_exclusions)Checklist
Related
project-landscaping-assistantScope Review: READY
Review note:
review-1475-2026-06-15Scope is solid. All template sections present, traceability complete (story:weekly-tracking verified on project page), file targets accurate (missing files correctly gated by #234 dependency), dependencies well-documented, and the ticket fits in a single agent pass (~3-4 min). No action needed.