
Mao NakamotoandClaude Opus 4.7
8b82b35691
refactor(it-hilfe): SSOT cleanup pass — TTLs, pagination, budget tiers, routes (MMM.1)
Five SSOT/DRY fixes derived from an end-to-end IT-Hilfe code-health
audit:
1. REQUEST_EXPIRY_DAYS = 30 (config/it-hilfe.ts) + comment in migration
010 referencing it. Previously: 30-day TTL hardcoded in SQL only —
tuning required touching the migration.
2. CLAIM_TOKEN_TTL_DAYS = 7 / CLAIM_TOKEN_TTL_MS (config). Previously:
`const CLAIM_TOKEN_TTL_MS = 7 * 24 * 60 * 60 * 1000` inlined at
api/it-hilfe/requests/route.ts:304 with a wall of comments
explaining the magic number.
3. IT_HILFE_PAGINATION { defaultLimit: 20, maxLimit: 50 } (config).
Replaced object-literal at five API routes:
- /api/it-hilfe/requests
- /api/it-hilfe/my-requests
- /api/it-hilfe/my-offers
- /api/it-hilfe/helper/my-offers
- /api/it-hilfe/helper/matching-requests
Single edit-point for paging policy.
4. getBudgetTierById(id) helper + named lookup in HelperCard.tsx.
Previously: BUDGET_TIERS[0].badgeClass (gratis) and BUDGET_TIERS[1]
.badgeClass (kulturlegi) — positional indexing breaks the moment
anyone reorders the BUDGET_TIERS array.
5. IT_HILFE.routes.createForTechnician(id) builder. Replaced three
inline template literals `/it-hilfe/create?technician=${...}` in
/techniker/[id]/page.tsx (lines 149, 154, 253).
Out-of-scope (separate commits needed):
- Rename helper/technician/repairer to one canonical term
- Add composite (status, expires_at) index on it_hilfe_requests
- Remove unused serviceCategory column from itHilfe schema
- Implement Professional-tier write-path (currently dead code)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-07 14:42:11 +02:00
..
2026-05-11 10:31:49 +02:00
2026-06-07 14:42:11 +02:00
2026-02-25 11:44:25 +01:00
2026-01-19 18:24:14 +01:00
2026-01-07 19:57:05 +01:00
2026-01-07 19:57:05 +01:00
2026-02-25 11:43:11 +01:00
2025-07-13 19:10:49 +02:00
2026-01-19 18:24:14 +01:00
2026-02-25 11:43:11 +01:00
2025-10-29 08:31:17 +01:00
2026-01-05 15:21:38 +01:00
2026-01-23 10:41:39 +01:00
2026-01-21 01:50:20 +01:00
2026-01-21 01:50:20 +01:00
2026-01-21 01:50:20 +01:00
2026-06-03 16:18:55 +02:00
2026-05-11 10:31:49 +02:00
2026-06-03 16:39:02 +02:00
feat(audit): land Phase A-I single-session audit fixes — security (npm audit fix), a11y (nested-main, modal focus, mega-menu keyboard), perf (10 MB image compression), credibility (CO2 methodology page + sourced numbers + badge on cards), projects feature (apply migration 082 to Neon; 1 project + 7 needs seeded), production safety (Zod env validation + Husky pre-commit), and the public-projects ↔ task-projects bridge (projects/project_needs/project_contributions schema + APIs + public+admin UI + email templates); resolves CVE-2024-7305 (tmp HIGH) and the documented email-swallow regressions in repairers/book + appointments; fixes ThemeToggle hydration mismatch, homepage tablet card grid, Über-uns nav wrap, duplicate newsletter signup, MARKETPLACE_STATUS.SOLD reference, DeviceJourney type errors + missing i18n keys, umlaut-linter false-positive exclusions; adds JA+KO legal partials so the page renders; updates AUDIT_REPORT.md with execution log
2026-06-03 14:30:02 +02:00
2026-04-15 12:32:31 +02:00
2026-01-07 19:57:05 +01:00
2026-02-25 11:43:11 +01:00
2026-02-25 11:43:11 +01:00
2026-01-07 19:57:05 +01:00
2025-09-08 13:18:07 +02:00
2026-02-11 21:23:39 +01:00
2026-02-25 11:43:11 +01:00
2026-01-05 15:21:38 +01:00
2025-12-16 16:11:35 +01:00
2026-05-13 22:18:38 +02:00
2025-07-13 19:10:49 +02:00
2025-07-13 19:10:49 +02:00
2026-02-05 13:24:34 +01:00
2025-12-16 15:58:59 +01:00
2026-05-11 10:31:49 +02:00
2026-05-11 10:31:49 +02:00
2026-03-08 15:16:46 +01:00
2025-07-13 19:10:49 +02:00
2026-02-25 11:43:11 +01:00
2026-02-05 14:20:56 +01:00
2026-02-16 21:38:45 +01:00
2026-01-21 01:50:20 +01:00
2026-05-13 22:18:38 +02:00