Admin Panel
The Admin Panel lets administrators manage the team roster and review a tamper-proof audit trail of every administrative action.
Tabs
The panel has two tabs: Team and Audit Log.
Team Management
The Team tab displays a table with columns: Name, Email, Role, Status, Monitored, and Actions.
Inviting Members
Click Invite User to open the invite dialog. Fields:
| Field | Type | Notes |
|---|---|---|
| Name | text | required |
| required | ||
| Role | select | Developer, Designer, Manager, Product Manager, QA Engineer, DevOps, Data Analyst |
New members are created with location: Remote and a pending confirmation status.
Editing Members
Click the edit icon on any row to update Name, Role, and Location. Email cannot be changed after creation.
Monitoring Toggle
The Monitored column shows a clickable chip (Yes/No). Clicking it toggles the isMonitored flag immediately via the employee update endpoint.
Removing Members
Click the delete icon to open a confirmation dialog. Removal is keyed by email.
Status Indicators
| Status | Chip Color |
|---|---|
| Confirmed | green |
| Pending | yellow |
| Other | default |
Audit Log
Switch to the Audit Log tab to see a chronological table of administrative events. The log is fetched from the Go backend via goSvc.getAuditLog().
| Column | Content |
|---|---|
| When | relative timestamp (e.g. "3 hours ago") via dayjs |
| Action | color-coded chip — Invited (green), Updated (default), Removed (red) |
| Target | the affected employee's email |
| Details | name, role change, or truncated JSON (60 char max) |
The audit log is append-only and cannot be deleted.
Access Control
The Admin Panel is visible only to users whose brand configuration has showAdmin enabled (admin/manager roles).