Add Person page with profile, property, and platform sections #145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "137-person-icon"
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?
Summary
Routes the Person nav icon (slot 3) to
/personinstead ofroot_path. The Person page shows My Profile (all users), a crew join request placeholder (all users), My Property (client only), and a Platform link (super_admin only).Changes
app/controllers/person_controller.rb-- new controller with index action, no role restriction (all authenticated users)app/views/person/index.html.erb-- Person landing page with role-conditional sections (My Profile, Join a Crew, My Property, Platform)config/routes.rb-- addedresources :person, only: [:index]app/views/layouts/application.html.erb-- updated Person icon link fromroot_pathtoperson_index_path, simplifiedis-activelogic tocontroller_name == 'person'app/assets/stylesheets/application.css-- Person component styles (profile grid, role badges, section headings, placeholder form) following design token conventionsspec/requests/person_spec.rb-- 23 request specs covering all 5 roles, dev mode, unauthenticated redirect, My Property visibility (client only), Platform visibility (super_admin only)Test Plan
bundle exec rspec-- 196 examples, 0 failures (173 existing + 23 new)/personand see My ProfileReview Checklist
!important, no#idselectors)current_usertreated as session hash, not ActiveRecordRelated Notes
Closes #137
Related