Commit Graph

9 Commits

Author SHA1 Message Date
Bernt 8cb26cdb15 feat(agent): add Projects + Compliance agents, webhook notifications
BOC CI/CD / Test (push) Failing after 2s
BOC CI/CD / Security Scan (push) Has been skipped
BOC CI/CD / Build & Push (push) Has been skipped
BOC CI/CD / Deploy to Staging (push) Has been skipped
BOC CI/CD / Deploy to Production (push) Has been skipped
- Add AgentFAB to ProjectsPage and CompliancePage
- Add AgentWebhookNotifier for agent events (activated, message, escalation, error)
- Webhook URL configurable via AGENT_WEBHOOK_URL env var
- Build fresh web-v2 dist
2026-08-12 09:42:37 +00:00
Bernt f259610f8c feat(agent): connect agents to real BOC data
BOC CI/CD / Test (push) Failing after 17s
BOC CI/CD / Security Scan (push) Has been skipped
BOC CI/CD / Build & Push (push) Has been skipped
BOC CI/CD / Deploy to Staging (push) Has been skipped
BOC CI/CD / Deploy to Production (push) Has been skipped
- Add AgentDataProvider with real DB queries for finance, CRM, sales, HR
- Inject live data into Anthropic prompts for context-aware responses
- Reuse existing ledgerDB connection for agent data access
- Agents now respond with actual numbers from the system
2026-08-12 09:24:47 +00:00
Bernt 0831a49c71 feat(agent): fix API routes to /api/v1/agents, update model to claude-sonnet-4-6
BOC CI/CD / Test (push) Failing after 2s
BOC CI/CD / Security Scan (push) Has been skipped
BOC CI/CD / Build & Push (push) Has been skipped
BOC CI/CD / Deploy to Staging (push) Has been skipped
BOC CI/CD / Deploy to Production (push) Has been skipped
2026-08-12 08:52:29 +00:00
Bernt 0b416b0f13 feat(agent): activate BOC agent layer
BOC CI/CD / Test (push) Failing after 2s
BOC CI/CD / Security Scan (push) Has been skipped
BOC CI/CD / Build & Push (push) Has been skipped
BOC CI/CD / Deploy to Staging (push) Has been skipped
BOC CI/CD / Deploy to Production (push) Has been skipped
- Add agent orchestrator API (/api/v1/agents/*)
- Connect frontend AgentContext to real backend
- Add AgentLayerPage with full agent management
- Implement specialist agents: finance, sales, hr, crm, legal, marketing, dashboard
- Add authentication, RBAC, tenant isolation on agent endpoints
- Add rate limiting and audit logging
- Update sidebar with Agent Layer navigation
- Build fresh web-v2 dist
2026-08-12 07:50:12 +00:00
Bernt 78b57273e2 security: Add proper authentication, RBAC, and tenant isolation
- Add password hashing with bcrypt
- Add AuthService with proper login
- Add password strength validation
- Add RBAC middleware (AdminOnly, ManagerOrAdmin)
- Add tenant isolation middleware
- Update CRM handler with tenant filtering
- Add JWT fallback for development mode
- Add user context helpers
- Build successful
2026-08-10 12:52:48 +00:00
Bernt f793fc46a4 feat: Add Income Statement to DashboardPage + fix account types
- Add Income Statement section with Revenue and Expenses tables
- Color-code revenue (green) and expenses (red)
- Show Net Income prominently at bottom
- Fix SQL query to use LOWER() for case-insensitive matching
- Update account types in DB (asset/liability/revenue/expense/equity)
- Balance Sheet and Income Statement now work correctly
2026-07-29 20:11:13 +00:00
Bernt bd28b60338 feat: BOC ledger-integration frontend + backend fixes
- Uppdatera robust_client.go med rätt tabellnamn (boc_chart_of_accounts, boc_journal_lines, boc_journal_entries)
- Uppdatera kolumnnamn (entry_id istället för journal_entry_id, account_code istället för code)
- Hantera både stora och små bokstäver för account_type
- Lägg till ledgerApi i frontend med BalanceSheet, IncomeStatement, MomsReport
- Uppdatera DashboardPage med Ledger KPI-kort
- Lägg till LEDGER_DB_URL i docker-compose.yml
- Uppdatera Dockerfile till golang:1.25-alpine
2026-07-29 19:53:39 +00:00
Bernt e5623d2f84 feat: integrate Grafana dashboards into BOC DashboardPage
- Add Infrastructure Health section with CPU/Memory/Disk panels
- Add Service Status section with PM2/Docker panels
- Create GrafanaPanel component for iframe embedding
- Build passes successfully
2026-07-29 19:03:06 +00:00
Bernt af874040ca BOC v1.0: RS256 auth, Ledger integration, Prometheus metrics, CI/CD, backup 2026-07-28 23:08:32 +00:00