• erio's avatar
    feat(groups): add rate multipliers management modal · d6488112
    erio authored
    Add a dedicated modal in group management for viewing, adding, editing,
    and deleting per-user rate multipliers within a group.
    
    Backend:
    - GET /admin/groups/:id/rate-multipliers - list entries with user details
    - PUT /admin/groups/:id/rate-multipliers - batch sync (full replace)
    - DELETE /admin/groups/:id/rate-multipliers - clear all entries
    - Repository: GetByGroupID, SyncGroupRateMultipliers methods on
      user_group_rate_multipliers table (same table as user-side rates)
    
    Frontend:
    - New GroupRateMultipliersModal component with:
      - User search and add with email autocomplete
      - Editable rate column with local edit mode (cancel/save)
      - Batch adjust: multiply all rates by a factor
      - Clear all (local operation, requires save to persist)
      - Pagination (10/20/50 per page)
      - Platform icon with brand colors in group info bar
      - Unsaved changes indicator with revert option
    - Unit tests for all three backend endpoints
    d6488112
groups.ts 5.78 KB