Replace first/last name with single Name field on profile edit #226
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 profile form review post-#217 merge.
Repo
ldraney/landscaping-assistantUser Story
As a landscaping client
I want to enter a single name instead of separate first/last name
So that I can use whatever name I want as a property reference label
Context
The profile edit form asks for separate "First Name" and "Last Name" fields. For a landscaping business, the name is just a reference label to identify whose property is being worked on — not a formal identity record. Clients should be able to enter whatever name they want (nickname, business name, full name, etc.). A single "Name" field is simpler and more appropriate.
File Targets
Files the agent should modify or create:
app/views/profile/edit.html.erb-- merge two name inputs into oneapp/controllers/profile_controller.rb-- change param from first_name/last_name to name, update validationspec/requests/profile_spec.rb-- update all param referencesFiles the agent should NOT touch:
app/services/keycloak_admin_service.rb-- still writes to firstName, no change neededapp/controllers/sessions_controller.rb-- reads given_name on login, unaffectedFeature Flag
none — simple form field change, no new workflow or external integration.
Acceptance Criteria
Test Expectations
bundle exec rspec spec/requests/profile_spec.rbConstraints
Checklist
Related
landscaping-assistant-- project this affects