video-accessibility/frontend/src
Vadym Samoilenko 6f1be645ce feat(saas): Phase 0+1 — Organization/Membership entities and dev branch
Introduces the multi-tenant SaaS foundation alongside the existing
client/team/project model (zero-downtime shim period):

Backend:
- app/models/organization.py — Organization + OrgRole enum (OWNER/ADMIN/MANAGER/MEMBER/VIEWER)
- app/models/membership.py — Membership model with MemberDetail for enriched responses
- app/services/membership_service.py — upsert/remove/list/has_org_role helpers
- app/api/v1/routes_organizations.py — /organizations CRUD + /members sub-resource + /me/memberships
- main.py — registers organizations router
- migrations: create memberships collection (unique index) + backfill from pm_client_ids/team members

Frontend:
- types/api.ts — Organization, OrgRole, Membership, OrganizationCreateRequest types; Client marked @deprecated
- hooks/useClients.ts — useOrganizations, useOrganization, useOrgMembers, useAddOrgMember,
  useUpdateOrgMember, useRemoveOrgMember, useMyMemberships
- lib/api.ts — listOrganizations, getOrganization, createOrganization, updateOrganization,
  listOrgMembers, addOrgMember, updateOrgMember, removeOrgMember, getMyMemberships

Reads fall back to the clients collection during transition; all writes go to organizations.
Existing /clients endpoints and hooks are untouched.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 16:46:24 +01:00
..
__tests__ initial commit 2025-08-24 16:28:33 -05:00
assets initial commit 2025-08-24 16:28:33 -05:00
components feat: Client → Team → Project isolation system with Project Manager role 2026-04-27 15:11:13 +01:00
contexts bug fixes for frontend when trying to npm run build 2025-10-08 16:47:14 -05:00
hooks feat(saas): Phase 0+1 — Organization/Membership entities and dev branch 2026-04-27 16:46:24 +01:00
lib feat(saas): Phase 0+1 — Organization/Membership entities and dev branch 2026-04-27 16:46:24 +01:00
routes feat: add Project Manager role + client/team assignment panel in admin user editor 2026-04-27 15:58:55 +01:00
styles initial commit 2025-08-24 16:28:33 -05:00
test bug fixes for frontend when trying to npm run build 2025-10-08 16:47:14 -05:00
types feat(saas): Phase 0+1 — Organization/Membership entities and dev branch 2026-04-27 16:46:24 +01:00
utils feat: DCMP compliance, descriptive transcript, new languages, QA bug fixes 2026-03-27 11:50:43 +00:00
App.css initial commit 2025-08-24 16:28:33 -05:00
App.tsx feat: Client → Team → Project isolation system with Project Manager role 2026-04-27 15:11:13 +01:00
index.css initial commit 2025-08-24 16:28:33 -05:00
main.tsx added MSAL microsoft authentication 2025-10-10 09:19:39 -05:00
vite-env.d.ts initial commit 2025-08-24 16:28:33 -05:00