Objective
Implement staff profile management, role-based permissions, and full profile
lifecycle including deactivation via soft delete, administrative purge, and
filtered list navigation with search.
MVP Metadata
- MVP Phase: Core Platform
- Module: users
- Priority: High
- Type: Feature
- FR: FR-02, FR-16
- Branch Target: features
Problem
The schema and session model include profiles and roles, but the app does not yet
let administrators manage staff profiles or enforce role-based access in UI
actions/routes.
Additionally, staff members may leave or be reassigned, requiring a deactivation
mechanism that revokes system access while preserving their historical records
(task assignments, housekeeping logs, maintenance tickets). Soft delete covers
deactivation; hard delete (purge) is available only when no historical records
reference the profile.
Acceptance Criteria
Soft Delete & Lifecycle
Hard Delete (Purge — Administrator Only)
Filtering & Search
Evidence Expected
- Link related commits and PRs.
- Include screenshots for UI changes when applicable.
- Include test/build evidence when implementation touches app/runtime code.
Objective
Implement staff profile management, role-based permissions, and full profile
lifecycle including deactivation via soft delete, administrative purge, and
filtered list navigation with search.
MVP Metadata
Problem
The schema and session model include profiles and roles, but the app does not yet
let administrators manage staff profiles or enforce role-based access in UI
actions/routes.
Additionally, staff members may leave or be reassigned, requiring a deactivation
mechanism that revokes system access while preserving their historical records
(task assignments, housekeeping logs, maintenance tickets). Soft delete covers
deactivation; hard delete (purge) is available only when no historical records
reference the profile.
Acceptance Criteria
Soft Delete & Lifecycle
deleted_at). Active list only shows records wheredeleted_at IS NULL.administratorrole can soft-delete staff profiles.Hard Delete (Purge — Administrator Only)
Filtering & Search
role(administrator, manager, receptionist, housekeeping, maintenance).Evidence Expected