mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-05 21:51:43 +01:00
## VotingPanel split (615 → ~160 lines) Extract 6 voting method sections into focused components: - voting/ConsentVote.tsx — consent response + rationale - voting/ApprovalVote.tsx — approval (gallery + list modes) - voting/DotVote.tsx — dot allocation (gallery + list modes) - voting/ScoreVote.tsx — star scoring (gallery + list modes) - voting/RankedChoiceVote.tsx — drag-to-rank ordering - voting/SimpleMajorityVote.tsx — yes/no/abstain - voting/DeadlineCountdown.tsx — countdown timer - voting/OptionCard.tsx — shared gallery card VotingPanel.tsx is now a pure orchestrator (~160 lines) ## DecisionFormClient split (746 → ~190 lines) Extract form state and UI sections: - useDecisionForm.ts — all state, handlers, API submit logic - DecisionTypeSelector.tsx — decision type card grid - DecisionOptionsEditor.tsx — option add/edit/remove - ParticipantSelector.tsx — scope selector + invite list - AdvancedSettings.tsx — voting method, quorum, blind voting DecisionFormClient.tsx composes the above cleanly ## API route fixes - locations/route.ts: migrate from manual auth() to withAuth middleware (GET + POST) - listings/[id]/duplicate: use LISTING_STATUS.REMOVED constant (was 'removed') - admin/listings/[id]/verify: use LISTING_STATUS.REMOVED constant (was 'removed') ## Lint - scripts/lint-umlauts.sh: exclude 'statutenaenderung' (known DB slug, legitimate false positive) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>