Property comments: timestamped discussion for all roles #180
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
Part of Phase 3 (Property Features). Independent of the project/request workflow.
Repo
ldraney/landscaping-assistantUser Story
As any user (admin, lead, member, or client), I want to post comments on a property page with timestamps so the team and client have a shared record of communication about that property.
Context
The property detail page needs a comments section where anyone with access can leave notes. Examples: "Gate code is 1234", "Customer prefers we come before noon", "Sprinkler head broken near front walk — avoid". Comments are timestamped and show the author's name and role. All four roles can read and write comments on properties they have access to.
File Targets
db/migrate/*_create_property_comments.rb(new)app/models/property_comment.rb(new)app/models/property.rb(add has_many :property_comments)app/models/crew_member.rb(add has_many :property_comments)app/controllers/property_comments_controller.rb(new — create action)app/views/property_comments/_section.html.erb(new — comment list + form partial)app/views/properties/show.html.erb(render comments partial)app/assets/stylesheets/application.css(add comment styles)config/routes.rb(add property_comments nested under properties)spec/models/property_comment_spec.rb(new)spec/requests/property_comments_spec.rb(new)Acceptance Criteria
Test Expectations
spec/models/property_comment_spec.rb: validations, associationsspec/requests/property_comments_spec.rb: create, authorization, display on show pagebundle exec rspecConstraints
~/ror-css-guide.role-badge-*CSS classesFeature Flag
None
Checklist
Related