paperclip/server/src/services
Forgotten fb8a77a53b Upgrade Companies page: stats, delete, status badge, dropdown menu
Server:
- companyService.stats() returns per-company agent/issue counts in one query pair
- companyService.remove() cascades deletes across all child tables in dependency order
- GET /companies/stats endpoint (board-accessible)
- DELETE /companies/:companyId endpoint (board-only)

UI:
- Companies page shows agent count, issue count, spend/budget, and created-at per card
- Company status shown as a colored badge (active/paused/archived)
- Three-dot dropdown menu with Rename and Delete Company actions
- Inline delete confirmation to prevent accidental data loss
- 'New Company' button opens onboarding wizard instead of inline form

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-17 20:14:05 -06:00
..
activity-log.ts Implement agent runtime services and WebSocket realtime 2026-02-17 12:24:43 -06:00
activity.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
agents.ts Add chain-of-command API for agents 2026-02-17 20:07:02 -06:00
approvals.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
companies.ts Upgrade Companies page: stats, delete, status badge, dropdown menu 2026-02-17 20:14:05 -06:00
costs.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
dashboard.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
goals.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
heartbeat.ts Inject PAPERCLIP_* env vars into all adapter process runs 2026-02-17 20:07:19 -06:00
index.ts Implement agent runtime services and WebSocket realtime 2026-02-17 12:24:43 -06:00
issues.ts Add issue ancestors, @-mention wakeups on comments 2026-02-17 20:07:14 -06:00
live-events.ts Implement agent runtime services and WebSocket realtime 2026-02-17 12:24:43 -06:00
projects.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
run-log-store.ts Implement agent runtime services and WebSocket realtime 2026-02-17 12:24:43 -06:00