Person icon: route to My Profile / My Property views instead of root #137
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
Discovered during PR #136 review (implements #107). The Person icon was given a placeholder
root_pathlink because the destination views don't exist yet.Repo
ldraney/landscaping-assistantUser Story
As a logged-in user
I want the Person icon to open my profile and property views
So that I can manage my account settings and (if super admin) access platform settings
Context
PR #136 added the 5-slot role-based bottom nav with Person always centered in slot 3. Currently Person links to
root_path(work_queue_items#index) — the same destination as the Today tab.PR #144 (#130) already added the Platform sub-nav under Person for super_admin — a gear icon linking to
/platform/feature_flags(lines 69-74 of application.html.erb). That stays. This ticket adds the Person landing page itself.Current auth state:
current_useris a session hash with:username,:email,:roleskeys. Usecurrent_user_has_role?()for role checks — there is no ActiveRecord User model.Person views per
docs/user-stories-auth.md:/platform/feature_flags(PR #144). Just needs a link from the Person page.File Targets
Files to create:
app/controllers/person_controller.rb— index action showing profile/property/platform sectionsapp/views/person/index.html.erb— Person landing page with role-conditional sectionsspec/requests/person_spec.rb— route and role visibility specsFiles to modify:
app/views/layouts/application.html.erb— update Person icon link fromroot_pathtoperson_index_path(line 64)config/routes.rb— addresources :person, only: [:index]app/assets/stylesheets/application.css— Person view styles (per ~/ror-css-guide)Files NOT to touch:
app/controllers/platform/feature_flags_controller.rb— already exists and workingapp/views/platform/feature_flags/index.html.erb— already existsapp/controllers/sessions_controller.rb— auth flow is settledapp/controllers/application_controller.rb— role helpers already in placeAcceptance Criteria
/person, not root_path/platform/feature_flagsOut of Scope
Test Expectations
bundle exec rspec spec/requests/person_spec.rbConstraints
~/ror-css-guide(design tokens, component comments, no Tailwind, no inline styles)!important, no#idselectors in CSScurrent_useris a session hash, NOT ActiveRecordChecklist
Related
docs/user-stories-auth.md— Person icon views specIssue body rewritten to reflect current codebase state:
Scope Review: READY
Review note:
review-1363-2026-06-06Ticket is well-scoped with all template sections complete, all file targets verified, and no blockers. Dependencies (#107, #130) are done. 6 file targets in a single repo, 7 AC -- fits within a single agent pass.
Two known systemic gaps (missing story:auth user story entry, missing arch-rails-app note) are deferred and not blocking.
ldraney referenced this issue2026-06-07 03:24:39 +00:00
ldraney referenced this issue2026-06-07 03:28:38 +00:00