Skip to content

feat: Company page (department/agent management)#888

Merged
Aureliolo merged 17 commits intomainfrom
feat/company-page
Mar 28, 2026
Merged

feat: Company page (department/agent management)#888
Aureliolo merged 17 commits intomainfrom
feat/company-page

Conversation

@Aureliolo
Copy link
Copy Markdown
Owner

Summary

  • Replace OrgEditPage placeholder with full organization editor at /org/edit
  • Three-tab interface (General, Agents, Departments) with Radix UI Tabs synced to URL params
  • CRUD for departments and agents via Drawer (edit/delete) and Dialog (create) components
  • Drag-drop reordering for departments (grid) and agents within departments (list) via @dnd-kit
  • Optimistic updates with rollback on failure for reorder operations
  • GUI/YAML editor toggle with js-yaml serialize/parse/validate
  • Company settings form: name, autonomy level, monthly budget (EUR), communication pattern
  • Zustand store extended with 9 mutation actions + 2 optimistic helpers
  • API endpoint stubs ready for backend implementation (mutation endpoints return 404 until backend is built)
  • Shared component reuse: AgentCard, DeptHealthBar, SectionCard, ConfirmDialog, Drawer, InputField, SelectField, etc.
  • Loading skeleton, empty states, error boundaries on all tabs
  • Data composition hook with polling (30s) + WebSocket real-time updates

Test plan

  • 1213 Vitest tests pass (24 new tests for this feature)
  • TypeScript type-check clean
  • ESLint clean (no errors)
  • Storybook builds successfully (6 new stories)
  • Pre-commit hooks pass
  • Visual verification at http://localhost:5173/org/edit
  • Tab switching updates URL params
  • Drag-drop reorders departments and agents
  • YAML toggle round-trips config correctly
  • Create/edit/delete dialogs open and close properly

Review coverage

Pre-reviewed by 5 agents (frontend-reviewer, api-contract-drift, issue-resolution-verifier, docs-consistency, test-quality-reviewer). 16 findings identified and addressed in second commit.

Closes #786

🤖 Generated with Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Company page (department/agent management, consistent cards)

1 participant