Onboarding flow, solo-to-business transition, and activity feed #118
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
Child of #107 (Auth + Roles + Audit Trail). Expands the user model beyond the original three-role system.
Repo
ldraney/landscaping-assistantUser Story
As a new user, I want to download the app, create an account, and immediately start managing properties so the app is useful from day one -- and later I can request to join an existing business if I work for one.
Context
The onboarding flow:
Solo vs business affiliation -- two dimensions:
A solo user is effectively their own admin. When they join a business, they subordinate to that business's admin and their role determines access.
Property transition on business join:
Activity feed / "Recently Updated" for admin:
Crew members CAN contribute to properties (revised from read-only):
Tab layout updated:
File Targets
TBD -- this is a large feature that will be broken into sub-tickets during implementation planning. Key areas:
app/controllers/registrations_controller.rb(new) -- self-registrationapp/controllers/business_requests_controller.rb(new) -- join request flowapp/models/business.rb(new) -- tenant/business entityapp/models/property.rb-- add business_id (multi-tenancy)app/models/user_business.rb(new) -- join table: user ↔ business with roleapp/views/sessions/new.html.erb-- add create account + reset password buttonsapp/controllers/activity_feed_controller.rb(new) -- recent updates for adminapp/models/property_comment.rb(new) -- crew questions + admin responses per propertyAcceptance Criteria
Test Expectations
bundle exec rspecConstraints
keycloak.pyhas the pattern)Checklist
Related
docs/user-stories-auth.md-- extends the original role model