Files
social-media/docs/TASKS/workspace-invites/003-frontend-invite-acceptance.md
Jonathan Bourdon 237b1a4242
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
docs: adds workspace-invites feature and tasks
2026-04-30 15:46:06 -04:00

1.1 KiB

Task: Frontend Invite Acceptance

Goal

Build the invite acceptance route and connect it to registration or sign-in.

Feature Spec

  • docs/FEATURES/workspace-invites.md

Scope

  • Add a public route for invite acceptance links.
  • Load display-safe invite details from the token.
  • If the user is signed in with the invited email, allow direct acceptance.
  • If the user is signed in with a different email, show a clear mismatch state.
  • If the user is signed out, route them to sign in or register and resume acceptance afterward.
  • Refresh the current user profile after acceptance so the new workspace appears.

Constraints

  • Frontend runtime config must flow through frontend/src/config.js.
  • Feature-owned code belongs under frontend/src/features/workspaces.
  • Do not add a marketing-style landing page for invite acceptance.

Likely Files

  • frontend/src/router/router.js
  • frontend/src/features/workspaces/
  • frontend/src/features/workspaces/stores/workspaceStore.js
  • frontend/src/locales/en.json
  • frontend/src/locales/fr.json

Validation

cd frontend
npm run build