Commit Graph

31 Commits

Author SHA1 Message Date
beo3000 479bfe4ba5 Add ExpenseState Fluxor (D3)
- ExpenseState.cs: state record with Expenses, SelectedExpense, IsLoading, Error
- ExpenseActions.cs: Load/Create/Update/Delete actions + Select/ClearError
- ExpenseReducers.cs: pure state transformations
- ExpenseEffects.cs: async service calls with logging

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 15:53:39 +01:00
beo3000 c3839d2363 fix permissions;
Summary of all fixes

  3 files changed:

  1. src/Koogle.Application/Services/UserService.cs:140-171
    - GetByIdentityUserIdAsync now includes .Include(p => p.Clubs) and maps ClubMemberships
  2. src/Koogle.Web/Store/AuthState/AuthEffects.cs:53-73
    - Merges club-specific roles from ClubMemberships into AuthState roles
  3. src/Koogle.Infrastructure/Security/ClubRoleRequirement.cs:17-114
    - Changed ClubRoleHandler to extend AuthorizationHandler<ClubRoleRequirement> (no resource)
    - Reads current_club_id from claims to determine club context
    - Added ClubRoleResourceHandler for resource-based auth (explicit clubId)
  4. src/Koogle.Infrastructure/DependencyInjection.cs:72
    - Registered ClubRoleResourceHandler

  The [Authorize(Policy = "ClubViewer")] attribute now uses current_club_id claim set during login to check club roles.
2025-12-24 15:44:52 +01:00
beo3000 d74cdb678d mod AuthTest 2025-12-24 15:15:33 +01:00
beo3000 2d6a49309f Add Person Pages (D2)
- Persons.razor: MudTable with search/filter, CRUD dialogs
- PersonEditDialog.razor: Create/Edit form for persons

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 15:06:37 +01:00
beo3000 d8ca8ed0a9 Add PersonState Fluxor state management (Phase D1)
- PersonState.cs: State record with Persons, SelectedPerson, IsLoading, Error
- PersonActions.cs: Load/Create/Update/Delete actions with success/failure variants
- PersonReducers.cs: Pure reducers for all person actions
- PersonEffects.cs: Async effects calling IPersonService

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 14:59:44 +01:00
beo3000 93b55a11e6 Add Club admin page with CRUD (Phase C2)
- Clubs.razor: MudTable with search, create/edit/delete
- ClubEditDialog.razor: Form for club name + expense calculation
- ConfirmDialog.razor: Reusable confirmation dialog

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 14:46:37 +01:00
beo3000 716ae6a604 added test-framework 2025-12-24 14:11:31 +01:00
beo3000 33fc3323e2 add fluxor club states 2025-12-23 18:26:01 +01:00
beo3000 0bc0de2215 edit users 2025-12-23 17:57:16 +01:00
beo3000 d26a2cb1c5 add profile page 2025-12-23 17:28:14 +01:00
beo3000 ad3ac3185c add password reset 2025-12-23 17:09:24 +01:00
beo3000 fa7f1300d8 add registration
planning extend registration and club memberships
2025-12-23 16:58:32 +01:00
beo3000 b4818efc1a added club relations to datamodel
mod UserService
2025-12-23 15:05:22 +01:00
beo3000 5c6860a4ad mod DI Containers 2025-12-23 11:20:18 +01:00
beo3000 be0fa19371 add Mapping-Profiles 2025-12-23 11:13:48 +01:00
beo3000 76c5d302ac added app Services 2025-12-23 11:04:16 +01:00
beo3000 f05ee0a662 add Application.Interfaces 2025-12-22 22:00:49 +01:00
beo3000 57146a382a add comments 2025-12-22 21:42:25 +01:00
beo3000 7cab8642d5 add DTOs 2025-12-22 21:36:28 +01:00
beo3000 9fa6958933 Repository Implementation 2025-12-22 21:30:20 +01:00
beo3000 bb1d08f32c mod Repository Interfaces 2025-12-22 21:21:46 +01:00
beo3000 b9dd2b2af0 added claude planning 2025-12-22 21:14:54 +01:00
beo3000 9491ff26d8 mod layout 2025-12-21 23:01:56 +01:00
beo3000 d8c41ad712 add fluxor AuthState 2025-12-21 22:14:00 +01:00
beo3000 8a92555ce9 add authorizazion und authentication 2025-12-21 19:31:54 +01:00
beo3000 b8e18a52b3 seed super-admin 2025-12-21 14:58:46 +01:00
beo3000 db0a4b7c00 dev authorization 2025-12-21 14:42:26 +01:00
beo3000 32757a7668 fix db model and create initial db 2025-12-21 12:25:47 +01:00
beo3000 3024ed85d2 fix db model 2025-12-21 12:03:46 +01:00
beo3000 d653225c5f fix datamodel 2025-12-21 11:42:59 +01:00
beo3000 6c43c85cb4 mod project structure
ef migrations
2025-12-21 09:59:40 +01:00