Make location/address optional when adding properties #26
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 daily workflow usage.
Repo
ldraney/landscaping-assistantUser Story
As a landscaper
I want to add properties by name without requiring an address
So that I can quickly save names my boss gives me at the start of the day and add locations later when I arrive
Context
The boss gives property names at the beginning of the day that need to go into the queue immediately. These may not have addresses yet — the landscaper adds the address when they arrive on site. Currently
address_linehasvalidates :address_line, presence: truewhich blocks saving without a location. The Today page is the primary entry point for adding new properties to the daily queue.File Targets
Files the agent should modify or create:
app/models/property.rb— removevalidates :address_line, presence: trueapp/views/properties/show.html.erb— handle nil address display gracefullyapp/views/properties/edit.html.erb— ensure address field is editable (add/update)requiredattribute on address inputFiles the agent should NOT touch:
Acceptance Criteria
Test Expectations
bin/rails testConstraints
Checklist
Related
landscaping-assistant— project this affects