Skip to content

v0.10.0 - Team Management

Choose a tag to compare

@yacNLP yacNLP released this 29 May 20:07
· 13 commits to main since this release

This release adds workspace team management.

Admins can now manage members inside their tenant/workspace from a dedicated Team page.

Added

  • Added Team Management backend module.
  • Added protected team endpoints:
    • GET /team/members
    • POST /team/members
    • PATCH /team/members/:id/role
    • DELETE /team/members/:id
  • Added /team frontend page.
  • Added Workspace > Team navigation.
  • Added team members list.
  • Added create member drawer.
  • Added role badges for ADMIN and USER.
  • Added role update with confirmation.
  • Added member deletion with confirmation.
  • Added audit logs for team actions:
    • team.member_created
    • team.member_role_updated
    • team.member_deleted

Security

  • Team routes are ADMIN only.
  • Team actions are tenant-scoped.
  • Passwords are hashed with bcrypt.
  • Passwords are never returned in API responses.
  • Duplicate emails return 409 Conflict.
  • Last ADMIN cannot be deleted.
  • Last ADMIN cannot be demoted to USER.
  • Admin self-delete is blocked.
  • Cross-tenant update/delete attempts are blocked.

Frontend

  • Added /team page.
  • Added team API integration with RTK Query.
  • Added create member flow.
  • Added role update flow.
  • Added delete member flow.
  • Added business error handling for:
    • email already used
    • last admin protection
    • self-delete protection

Validation

  • Backend lint OK.
  • Backend build OK.
  • Backend e2e OK: 189 tests passed.
  • Frontend lint OK.
  • Frontend build OK.

Known limitations

  • User emails are globally unique, so the same email cannot belong to multiple tenants yet.
  • No email invitation flow yet.
  • No password reset flow yet.
  • New members are created directly with a temporary password.
  • USER role does not yet have a dedicated read-only dashboard experience.