Profile UX rework: inline property toggle, owner_sub, section reorder #171
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 live-use session observing Profile page UX issues.
Repo
ldraney/landscaping-assistantUser Story
As a client
I want an inline toggle on my Profile page to activate/deactivate my property
So that I can manage my property status without navigating away
Context
The Profile page (renamed from Person in PR #169) had My Property at the bottom, used
owner_usernamefor linkage (fragile — usernames can change), and required navigating to a separate page to create a property. Real-use testing showed: (1) property should be the top section since it's the primary action for clients, (2) a toggle switch is more intuitive than a separate creation page, (3) KeycloaksubUUID is the correct stable identifier.File Targets
Files modified:
app/controllers/sessions_controller.rb-- storesubin sessionapp/controllers/profile_controller.rb-- look up by owner_subapp/controllers/properties_controller.rb-- owner_sub linkage, redirect to profileapp/models/property.rb-- owned_by scope uses owner_subapp/views/profile/index.html.erb-- reorder sections, inline toggle + formapp/assets/stylesheets/application.css-- toggle switch, property card stylesapp/javascript/controllers/property_toggle_controller.js-- Stimulus toggledb/migrate/20260608012402_rename_owner_username_to_owner_sub.rbspec/requests/profile_spec.rb-- update assertionsFeature Flag
none — this is a UX restructure of an existing page, not a new workflow.
Acceptance Criteria
Test Expectations
bin/rails specConstraints
Checklist
Related
project-landscaping-assistant— main project