Files
evig/scripts
g-butandClaude Sonnet 4.6 0184238649 refactor: split god components + fix remaining hardcoded strings
## 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>
2026-04-14 16:33:43 +02:00
..
2026-01-07 19:57:05 +01:00