Skip to content

rebase#96

Merged
kevbang merged 14 commits intocc-101/inventory-catalogfrom
main
Feb 18, 2026
Merged

rebase#96
kevbang merged 14 commits intocc-101/inventory-catalogfrom
main

Conversation

@kevbang
Copy link
Copy Markdown
Collaborator

@kevbang kevbang commented Feb 18, 2026

No description provided.

wyatthunter2102-wq and others added 14 commits February 7, 2026 10:24
Still need to update the design for buttons
Landing Page is now starting page when starting out. Added fake information for now and could possibly change in the future. Plan to add scrolling animations and more once logo comes in.
Cognito merge
Cognito Authentication + Location-Based Refactor
Summary
This PR integrates AWS Cognito authentication and finalizes our location-scoped multi-tenant structure.

The app now:
Uses Cognito for login/logout
Hydrates DB user after login
Persists active location
Scopes data to selected location
Implements invite-based onboarding

Authentication:

Cognito Integration:
Replaced legacy login logic
Added PostLogin bootstrap page
Hydrates user + accessible locations
Redirects based on role and access

Invite Flow:
Admin/Manager can invite a user for a specific location
Token-based activation link:/account/setup?token=...
Invitee sets password and activates account
Redirects to login after activation

Location State:
Implemented centralized LocationState service:
Stores accessible locations
Persists active location in localStorage
Triggers refresh on location change
Pages subscribe to OnChange

Location-Scoped Data:
Implemented pattern (same as RecipeList):
RecipeList loads by active location
Page refreshes automatically when location changes

UI / Layout Updates:
Updated layouts for public vs authenticated views
Added Location selector
Updated Profile dropdown + logout
Role-based navigation
No-access handling

Major Areas Touched

Services:
LocationState
UserContextService
CognitoProvisioningService
AuthService
UserService

Routing / Layout:
App
Routes
MainLayout
NavMenu
PublicLayout

Pages:
SignIn
PostLogin
InviteSignUp
AccountSetup
RecipeList
UserList
Settings pages
Admin / Manager views

Security Note:
No secrets committed.
Cognito credentials and DB credentials are stored via environment variables or local secrets.
@kevbang kevbang merged commit 224b531 into cc-101/inventory-catalog Feb 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants