
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-02-05 13:24:34 +01:00
2025-12-16 16:11:35 +01:00
2026-04-04 21:02:36 +02:00
2026-01-20 14:32:52 +01:00
2026-05-02 17:14:37 +02:00
2026-01-20 14:57:32 +01:00
2026-04-04 21:02:36 +02:00
2026-05-02 17:14:37 +02:00
2026-01-21 01:50:20 +01:00
2026-04-04 21:02:36 +02:00
2026-04-04 21:02:36 +02:00
2026-02-05 13:24:34 +01:00
2026-01-05 15:21:38 +01:00
2026-01-07 19:57:05 +01:00
2026-04-04 21:02:36 +02:00
2026-01-14 10:02:31 +01:00
2026-06-07 14:42:11 +02:00
2026-01-20 01:56:59 +01:00
2026-01-21 00:53:34 +01:00
2026-01-27 18:30:38 +01:00
2026-01-27 18:30:38 +01:00
2026-01-28 20:24:44 +01:00
2026-02-05 13:24:34 +01:00
2026-02-02 12:29:35 +01:00
2026-02-02 14:11:00 +01:00
2026-02-02 14:18:05 +01:00
2026-02-05 07:42:44 +01:00
2026-04-04 21:02:36 +02:00
2026-02-05 13:58:26 +01:00
2026-02-05 16:59:32 +01:00
2026-02-10 06:21:58 +01:00
2026-02-10 14:36:20 +01:00
2026-02-10 14:36:20 +01:00
2026-02-10 17:11:42 +01:00
2026-04-04 21:02:36 +02:00
2026-02-11 11:46:04 +01:00
2026-02-11 11:46:04 +01:00
2026-02-11 11:46:04 +01:00
2026-02-11 21:23:39 +01:00
2026-02-11 21:23:39 +01:00
2026-02-13 13:41:39 +01:00
2026-02-13 12:42:03 +01:00
2026-02-16 17:33:26 +01:00
2026-02-17 22:38:36 +01:00
2026-02-18 10:05:45 +01:00
2026-02-18 14:53:31 +01:00
2026-02-18 22:08:42 +01:00
2026-02-19 08:41:19 +01:00
2026-04-04 21:02:36 +02:00
2026-02-24 08:51:12 +01:00
2026-02-24 08:51:12 +01:00
2026-02-25 14:18:22 +01:00
2026-02-25 15:32:38 +01:00
2026-03-04 18:56:42 +01:00
2026-03-04 18:56:42 +01:00
2026-03-04 18:56:42 +01:00
2026-03-09 16:30:01 +01:00
2026-03-16 14:22:56 +01:00
2026-03-23 13:12:59 +01:00
2026-03-23 14:09:46 +01:00
2026-04-01 16:08:12 +02:00
2026-04-02 11:22:50 +02:00
2026-04-02 12:58:52 +02:00
2026-04-04 21:02:36 +02:00
2026-04-05 00:18:26 +02:00
2026-04-05 00:59:04 +02:00
2026-04-05 10:40:02 +02:00
2026-04-05 10:40:02 +02:00
2026-04-05 10:40:02 +02:00
2026-04-09 13:09:13 +02:00
2026-04-10 17:12:35 +02:00
2026-04-14 15:29:18 +02:00
2026-04-21 13:26:00 +02:00
2026-04-23 08:55:10 +02:00
2026-05-04 08:48:32 +02:00
2026-05-13 22:18:38 +02:00
2026-05-15 14:28:45 +02:00
2026-05-15 14:28:45 +02:00
2026-05-18 17:07:51 +02:00
2026-05-25 01:39:55 +02:00
2026-05-26 09:35:16 +02:00
2026-05-26 10:03:44 +02:00
2026-05-28 12:31:05 +02:00
2026-05-28 12:37:42 +02:00
2026-05-28 12:38:25 +02:00
2026-05-28 12:39:02 +02:00
2026-05-28 12:54:52 +02:00
2026-05-28 12:54:52 +02:00
2026-05-28 16:09:22 +02:00
2026-05-29 10:57:39 +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-06-03 18:07:42 +02:00
2026-06-03 18:07:42 +02:00
2026-06-03 18:07:42 +02:00
2026-06-05 09:24:17 +02:00
2026-06-05 09:44:48 +02:00