Daily comments on today view #192
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 field use of today view.
Repo
ldraney/landscaping-assistantUser Story
As a crew member (any role)
I want to post comments on a specific day in the today view
So that I can leave notes about the day's work for the team
Context
The today view currently has no way to leave freeform notes about the day. Crew leads and members need a place to jot down day-level observations — weather delays, equipment issues, schedule changes, etc. Comments should display the poster's role alongside their name so readers know context. Latest comments appear at the top (reverse chronological).
File Targets
Files the agent should modify or create:
db/migrate/XXXX_create_daily_comments.rb-- new DailyComment model (date, body, crew_member_id)app/models/daily_comment.rb-- model with belongs_to :crew_member, validationsapp/controllers/daily_comments_controller.rb-- create action scoped to dateapp/views/work_queue_items/index.html.erb-- comments section below queue listapp/views/daily_comments/_comment.html.erb-- partial showing name, role badge, body, timestampconfig/routes.rb-- nested or standalone route for daily_commentsapp/assets/stylesheets/application.css-- comment stylingFiles the agent should NOT touch:
app/javascript/controllers/sortable_controller.js-- unrelatedFeature Flag
none
Acceptance Criteria
Test Expectations
bundle exec rspec spec/models/daily_comment_spec.rb spec/requests/daily_comments_spec.rbConstraints
.role-badgeCSS classesChecklist
Related
landscaping-assistant-- project this affects