Files
evig/src
g-butandClaude Sonnet 4.6 779de136ee refactor: SSOT/DRY overhaul — config-driven, god-file split, no hardcoded strings
## Schema god-file split (misc.ts → domain files)
- applications.ts: applications, membershipApplications
- org-numbers.ts: orgNumbers
- locations.ts: locations, locationApprovals, locationBookings
- tasks.ts: taskProjects, tasks, taskCompletions, taskAttentionFlags, taskRequests
- decisions.ts: decisions, decisionVotes, decisionComments
- protocols.ts: meetingProtocols, protocolActionLinks, protocolDecisionVotes, protocolDecisionOutcomes
- subscriptions.ts: subscriptionPools, poolMemberships, poolContributions, poolVotes
- misc.ts converted to backward-compat barrel (zero breaking changes)
- schema/index.ts updated to own canonical exports

## AI prompts god-file split (prompts.ts → subdirectory)
- prompts/shared.ts, erfassung.ts, content.ts, decisions.ts — prompts.ts is now a barrel

## New SSOT config files
- config/pagination.ts: named page-size constants (DEFAULT/PUBLIC/DENSE/SEARCH/FEED/INTAKE)
- config/map.ts: Leaflet tile URLs, marker icon options, map defaults
- config/membership-status.ts: MEMBERSHIP_APPLICATION_STATUS, MEMBERSHIP_TYPE constants
- config/repairer-status.ts: REPAIRER_STATUS, REPAIRER_APPLICATION_STATUS constants

## API route hardening
- membership approve/reject: use MEMBERSHIP_APPLICATION_STATUS constants in parameterized queries
- technicians, technician-profile: use REPAIRER_STATUS constants
- sellers, listings/report: use LISTING_STATUS.ACTIVE constant
- stats/community: parameterized status query (was string literal)
- invoices: add Zod validation schema (LineItemSchema + CreateInvoiceSchema)
- preferences: use validateBody + apiSuccess/apiError helpers
- search-index: use apiSuccess/apiError helpers
- payrexx-webhook: tighten dev-mode bypass (require no PAYREXX_INSTANCE)

## Map config SSOT
- LeafletMapInner imports tile URL, marker icons, and default center from config/map.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 16:13:23 +02:00
..