79c6c32a78
feat: store discord user ids on accounts
2026-04-04 20:16:22 +00:00
1c062ff4f1
BE-CAL-003: Add Agent model with status/heartbeat/exhausted fields
...
- New app/models/agent.py with Agent model, AgentStatus & ExhaustReason enums
- Agent has 1-to-1 FK to User, unique agent_id (OpenClaw $AGENT_ID),
claw_identifier (OpenClaw instance, convention-matches MonitoredServer.identifier)
- Status fields: status (idle/on_call/busy/exhausted/offline), last_heartbeat
- Exhausted tracking: exhausted_at, recovery_at, exhaust_reason (rate_limit/billing)
- User model: added 'agent' back-reference (uselist=False)
- Schemas: AgentResponse, AgentStatusUpdate, UserCreate now accepts agent_id+claw_identifier
- UserResponse: includes agent_id when agent is bound
- Users router: create_user creates Agent record when agent_id+claw_identifier provided
- Auto-migration: CREATE TABLE agents in _migrate_schema()
- Startup imports: agent and calendar models registered
2026-03-30 20:47:44 +00:00
271d5140e6
feat(users): switch account management to single-role model
...
- add users.role_id for one global role per account
- seed protected account-manager role with account.create permission
- default new accounts to guest role
- block admin role assignment through user management
- allow account-manager permission to create accounts
2026-03-21 08:44:19 +00:00
ec91a15f65
fix(P7.1): remove TaskType.TASK from models.py + fix milestone task defaults (issue/pending)
2026-03-17 23:01:02 +00:00
9e22c97ae8
refactor: update milestone/task status enums to new state machine values
...
Milestone: open/freeze/undergoing/completed/closed (was open/pending/deferred/progressing/closed)
Task: open/pending/undergoing/completed/closed (was open/pending/progressing/closed)
- Add MilestoneStatusEnum to schemas with typed validation
- Add started_at field to Milestone model
- Update all router/CLI references from progressing->undergoing
- Add completed status handling in task transition logic
2026-03-17 00:04:29 +00:00
214a9b109d
refactor: replace issues backend with milestone tasks
2026-03-16 13:22:14 +00:00
5a76f61692
fix: remove leftover code in get_issue
2026-03-12 22:01:55 +00:00
6fe5e5ddb3
feat: add task fields - task_code, estimated_effort, etc
2026-03-12 21:54:16 +00:00
c695ef903f
fix: rbac ProjectMember reference, add repo field to Project
2026-03-12 12:04:51 +00:00
74177915df
feat: add configurable role/permission system
2026-03-12 11:41:55 +00:00
1eb90cd61c
fix: project create schema - owner_name auto-fill from owner_id, sub/related projects as list
2026-03-12 10:52:46 +00:00
d5bf47f4fc
fix: quote enum values and csv export subtype
2026-03-12 09:37:19 +00:00
e5775bb9c8
feat: add project code generation + remove issues/milestones from nav
2026-03-12 09:25:26 +00:00
6b3e42195d
feat: add task type hierarchy with subtypes (issue/meeting/support/maintenance/research/review/story/test)
2026-03-11 23:55:52 +00:00
7485f29ada
feat: milestones, due dates, overdue filter, CSV export
2026-02-22 19:12:35 +00:00
root
fd980c0344
refactor: move all files to root (no nested backend/)
2026-02-21 08:25:37 +00:00