Schedule digest: feature flag gate + Week tab upload button #212
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
Follow-up to #204 (done). The digest feature works but is buried in the Photos tab and lacks a feature flag for admin control.
Repo
ldraney/landscaping-assistantUser Story
As a super admin
I want the schedule digest feature behind a toggleable feature flag with a prominent entry point on the Week tab
So that I can control when this feature is active and crew leads can actually find it
Context
PR #208 shipped the schedule digestion feature (Claude Vision OCR -> WorkQueueItems). Currently the flow is: Photos tab -> individual photo show page -> "Digest Schedule" button. This is not discoverable for the weekly planning workflow.
Two changes:
schedule_digestflag (default OFF). When OFF, the "Digest Schedule" button on upload show pages is hidden, and the Week tab upload button doesn't appear. Controlled from/platform/feature_flags.File Targets
Files the agent should modify:
lib/tasks/feature_flags.rake-- addschedule_digestflag (default: false)app/views/uploads/show.html.erb-- wrap "Digest Schedule" section infeature_enabled?(:schedule_digest)checkapp/views/weeks/index.html.erb-- add "Upload Schedule" button (gated behind flag + lead+ role)app/controllers/uploads_controller.rb-- gatedigestandconfirm_digestactions behind feature flag checkFiles the agent should NOT touch:
app/services/schedule_digester.rb-- the service is fine, just gating the entry pointsapp/models/upload.rb-- no model changesapp/views/uploads/digest.html.erb-- the confirmation UI is fineapp/controllers/work_queue_items_controller.rb-- unrelatedFeature Flag
Flag:
schedule_digestType: global
Default: disabled
Visibility: super_admin toggle at
/platform/feature_flagsRemoval: after 2 weeks stable in production
Acceptance Criteria
schedule_digestflag registered infeature_flags.rakesync task (default OFF)digestandconfirm_digestactions return redirect with "Feature not available" flashTest Expectations
bundle exec rspec spec/requests/uploads_spec.rb spec/requests/weeks_spec.rbConstraints
pending_completionflag usage inweeks/index.html.erb)week_startautomaticallyChecklist
Related
landscaping-assistant-- project this affectsScope Review: READY
Review note:
review-1453-2026-06-13All template sections present, all 4 file targets verified on origin/main, traceability complete (story:schedule-upload confirmed in project page). 7 ACs are testable, test spec files exist, follows established feature_enabled? pattern. Single-repo, fits single agent pass (~3-4 min).