Commit graph

16 commits

Author SHA1 Message Date
1f75c5d791 Add all backend domain, commands, repositories, and tests
This commit includes all previously untracked backend files:

Domain:
- Accounts, Attachments, BankConnections, Customers
- FiscalYears, Invoices, JournalEntryDrafts
- Orders, Products, UserAccess

Commands & Handlers:
- Full CQRS command structure for all domains

Repositories:
- PostgreSQL repositories for all read models
- Bank transaction and ledger repositories

GraphQL:
- Input types, scalars, and types for all entities
- Mutations and queries

Infrastructure:
- Banking integration (Enable Banking client)
- File storage, Invoicing, Reporting, SAF-T export
- Database migrations (003-029)

Tests:
- Integration tests for GraphQL endpoints
- Domain tests
- Invoicing and reporting tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 22:19:42 +01:00
b552a6e29f Close books-cdf (skipped - vague description)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 17:45:10 +01:00
1d0ea32452 Close tasks books-8lo, books-ced, books-1rp
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:47:57 +01:00
8bf3141ba3 Improve Kontooversigt UX and add missing CVR validation
UX improvements (books-8lo):
- Use PageHeader component for consistent header with breadcrumbs
- Add responsive mobile breakpoints
- Improve accessibility with aria-labels
- Better information hierarchy

Fixes (books-1rp):
- Add missing validateCVRModulus11 function to formatters
- Fixes TypeScript errors in Kunder.tsx and CompanySetupWizard.tsx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:47:45 +01:00
49971b3265 Close tasks books-wzq and books-byl
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:40:50 +01:00
b450c94a7e Add demo data disclaimers to Dashboard and Loenforstaelse pages
Uses the DemoDataDisclaimer component to inform users that data
shown on these pages is for demonstration purposes only.

Closes books-wzq

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:40:40 +01:00
846711de04 Close completed tasks (books-hzt, books-5tg)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:37:16 +01:00
6e78028f98 Add BankReconciliationJob for Hangfire
Creates a recurring Hangfire job that compares bank account balances
from Enable Banking with the corresponding ledger accounts:

- Runs daily via Hangfire recurring schedule
- Supports manual trigger per company via GraphQL
- Flags discrepancies > 1 cent with detailed logging
- Includes retry logic for transient failures

Closes books-5tg

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:37:05 +01:00
9b5ed27776 Fix encoding bug and add role helpers for user management
- Add decodeHtmlEntities function to formatters.ts for handling HTML entity decoding
- Add CompanyRole type and role helper functions (getRoleLabel, getRoleColor)
- Add useActiveCompanyRole hook for getting current user's company role
- Add Ledger.Core and QuestPDF project references to backend
- Add additional fields to CompanyReadModelDto

Closes books-hzt

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:36:27 +01:00
b60f26a449 Close task books-8ea: Remove username from profile icon
The username text next to the profile icon in the header was already
removed in a previous commit.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:24:27 +01:00
f1bbccbf52 Remove username text from header profile icon
The user's name/email is no longer displayed next to the profile avatar
in the header. The avatar dropdown menu remains functional for accessing
user settings and logout.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:22:44 +01:00
f826794990 Remove Hurtig Bogforing feature
Delete the quick booking page, components, and store:
- HurtigBogforing.tsx page
- simple-booking/ components (AccountQuickPicker, BankTransactionCard, QuickBookModal, SplitBookModal)
- simpleBookingStore.ts

Remove related navigation and shortcuts:
- Route from routes.tsx
- Menu item from Sidebar
- goToHurtigBogforing shortcut and navigation route
- Command palette icon reference

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:18:05 +01:00
1bacbea33b Rename app title from Bogfoering to Books in sidebar
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:12:35 +01:00
926085eeab Add OpenID Connect + API Key authentication
Backend:
- Cookie + OIDC + API Key authentication schemes
- ApiKeyAuthenticationHandler with SHA-256 validation and 24h cache
- AuthController with login/logout/profile endpoints
- API Key domain model (EventFlow aggregate, events, commands)
- ApiKeyReadModel and repository for key validation
- Database migration 002_ApiKeys.sql
- CORS configuration for frontend

Frontend:
- authService.ts for login/logout/profile API calls
- authStore.ts (Zustand) for user context state
- ProtectedRoute component for route guards
- Header updated with user display and logout
- GraphQL client with credentials: include

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 11:49:29 +01:00
c4a27f0bac Add frontend environment configuration for API URL injection
- .env.example: Documentation template
- .env.development: Local dev defaults (localhost:5000)
- .env.production: Production defaults (relative /graphql path)
- Updated .gitignore to track non-secret env files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:12:45 +01:00
66f6fa138d Initial commit: Books accounting system with EventFlow CQRS
Backend (.NET 10):
- EventFlow CQRS/Event Sourcing with PostgreSQL
- GraphQL.NET API with mutations and queries
- Custom ReadModelSqlGenerator for snake_case PostgreSQL columns
- Hangfire for background job processing
- Integration tests with isolated test databases

Frontend (React/Vite):
- Initial project structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:52:30 +01:00