8 Commits

Author SHA1 Message Date
05123e6c8f feat(auth): persist roles and support multi-role in ProtectedRoute
- Persist `roles` array in localStorage on login and session restore.
- Reconcile `userType` from roles returned by the `user-info` function.
- `ProtectedRoute` now accepts `requiredUserType?: UserType[]` and `requiredRoles?: string[]` and evaluates multi-role permission (OR semantics).
- Minor adjustments in `useAuth` and debug logs to ensure consistent `profile` and `roles` restoration.
- Main files changed: `hooks/useAuth.tsx`, `components/ProtectedRoute.tsx`, `types/auth.ts.
2025-10-13 02:18:49 -03:00
João Gustavo
40bf3e0e6f fix-report-page 2025-10-07 00:16:39 -03:00
6585187efd feat: Melhorias na UI e consolidação de
ações para formulários de agendamento

  - calendar-registration-form.tsx:
      - Otimizadas importações de ícones e
  adicionadas novas caixas de seleção para
  reembolso e impressão de etiquetas.
      - Introduzido campo 'Profissional
  solicitante' com funcionalidade de busca.
      - Removido botão 'Cancelar' interno.
  - FooterAgenda.tsx:
      - Consolidado botões de ação,
  removendo 'Cancelar' e 'Salvar as
  alterações' redundantes.
2025-10-03 17:53:54 -03:00
João Gustavo
8d1473a148 add-doctor-id 2025-10-02 01:49:54 -03:00
João Gustavo
a6ae27876e add-login-and-logout-endpoints 2025-09-28 04:10:40 -03:00
João Gustavo
af7de1dd0c add login-screen 2025-09-23 01:23:41 -03:00
945c6eafb6 fix: Calendar and sidebar 2025-09-17 22:51:30 -03:00
0ba1590c10 feat: add initial project files and patient list 2025-09-03 01:58:42 -03:00