Fix multiple UI/UX issues and invite token migration

Fixes:
- Round edit: Add cache invalidation for voting dates
- Criteria weights: Replace number input with visual slider
- Member invite: Per-member expertise tags with suggestions
  - Tags now added per member, not globally
  - Comma key support for quick tag entry
  - Suggested tags based on ocean/business expertise
- Accept-invite: Add Suspense boundary for useSearchParams
- Add missing inviteToken columns migration

The invite token columns were accidentally skipped in prototype1
migration. This adds them with IF NOT EXISTS checks.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 15:25:28 +01:00
parent 3986da172f
commit 8be740a4fb
5 changed files with 272 additions and 133 deletions

View File

@@ -90,9 +90,14 @@ function EditRoundContent({ roundId }: { roundId: string }) {
roundId,
})
const utils = trpc.useUtils()
// Mutations
const updateRound = trpc.round.update.useMutation({
onSuccess: () => {
// Invalidate cache to ensure fresh data
utils.round.get.invalidate({ id: roundId })
utils.round.list.invalidate()
router.push(`/admin/rounds/${roundId}`)
},
})