video-accessibility/backend/app
Vadym Samoilenko 269ab09fa6 fix: serialize Client/Team/Project with id not _id + guard undefined client hooks
Pydantic v2 + FastAPI serializes Field(alias="_id") as _id in JSON,
so client.id was always undefined on the frontend — causing option
values to fall back to text content ("3M") and firing /clients/3M/teams 404s.

- Remove Field(alias="_id") from Client/Team/Project models; id is now a
  plain string field populated explicitly in _client_from_doc etc.
- API now returns id not _id, matching the TypeScript Client interface
- Add clientId !== "undefined" guard to useTeams, usePMs, useProjects

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 16:18:28 +01:00
..
__pycache__ fixed middleware silent swallowing of exceptions FINALLY 2025-10-08 18:19:59 -05:00
api/v1 fix: serialize Client/Team/Project with id not _id + guard undefined client hooks 2026-04-27 16:18:28 +01:00
core feat: Client → Team → Project isolation system with Project Manager role 2026-04-27 15:11:13 +01:00
lib feat: DCMP compliance, descriptive transcript, new languages, QA bug fixes 2026-03-27 11:50:43 +00:00
middleware fixed overly aggressive security algorithm 2025-10-08 17:49:20 -05:00
migrations fix: add project_manager migration + add migration step to full-deploy.sh 2026-04-27 16:05:17 +01:00
models fix: serialize Client/Team/Project with id not _id + guard undefined client hooks 2026-04-27 16:18:28 +01:00
prompts feat: DCMP compliance, descriptive transcript, new languages, QA bug fixes 2026-03-27 11:50:43 +00:00
schemas feat: add Project Manager role + client/team assignment panel in admin user editor 2026-04-27 15:58:55 +01:00
services fix: correct cost tracker API field names and endpoint path 2026-04-27 13:42:29 +00:00
tasks feat: replace SDK with direct HTTP integration to centralized cost tracker 2026-04-27 13:36:15 +01:00
telemetry initial commit 2025-08-24 16:28:33 -05:00
main.py feat: Client → Team → Project isolation system with Project Manager role 2026-04-27 15:11:13 +01:00