All hardcoded German strings replaced with t() calls. Fixed JSX parse
errors where Python replacement script had stripped closing > from
Heading opening tags.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Checkout [listingId]/page.tsx and success/page.tsx had entirely hardcoded
German. Both are now wired to useTranslations('marketplace.checkout') and
'marketplace.checkout.success' respectively.
Translation keys added to marketplace.checkout.{delivery,address,payment,
summary,ownListing,success} across all 7 locales. Removes the last major
German-only flow from the critical purchase path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
getCompactMetrics() required a labels object instead of using hardcoded
German strings. Callers on homepage and transparenz page now supply labels
from translations using the new home.impact.compactMetrics.* keys (added
to all 7 locales). Metrics were displaying in German even for EN/FR/etc.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Footer: gray-400/gray-500 → gray-300 on bg-gray-900 (was ≈2.5:1, now
≈11:1). Fixes icons, legal nav links, extra address text, copyright.
Hover states updated to text-white for consistent visual feedback.
Homepage: adds "Unsere Wirkung" h2 heading to the social proof section
using existing impact.title/subtitle translation keys — fixes missing
section heading identified in design audit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Footer: bump text-gray-400/500/600 → gray-300/400/500 (WCAG AA on dark bg)
- Skip link: fix focus color blue → green (brand consistency)
- PageHero: add variant="site" so h1 uses marketing type scale
- Homepage: add variant="site" to section h2s; wire action cards and
community cards to DESIGN_TOKENS.iconBadges/buttons (SSOT); add
underline to impact link (accessibility)
- NewsletterSignup: add sr-only <label> elements for name/email inputs
- AsSeenInLogos: replace hardcoded "Bekannt aus" with useTranslations;
add home.asSeenIn.{heading,allCoverage} to all 7 locale files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Both pages were hardcoded German. Translations already existed in all 7
locale message files — pages just weren't reading them.
- FAQ: reads groups from t.raw('groups'), metadata from t('meta.*')
- Support: reads pillars, promise items, CTAs from support namespace
- FAQSchema structured data now uses translated content
- Both get proper generateMetadata with locale-aware title/description
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- New /shop/product/[uuid] page: image, price, condition badge,
customer profiles, availability, trust badge, CTA to Shopware,
related products grid
- Added getInventoryProductByUuid() to inventory-service
- Shop category and search pages now link to real product pages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Search results now fetch from the inventory service instead of
showing a 'coming soon' placeholder. Empty-state CTA preserved
when no products match the query.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Category pages now fetch and display actual products from the
inventory service instead of showing a 'coming soon' placeholder.
Shows product grid with image, brand, price, condition, quantity badge.
Falls back to empty-state CTA if no products in that category.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements the mission-critical subscription sharing feature:
- GET/POST /api/pools — browse and create pools
- GET /api/pools/[id] — pool detail
- POST /api/pools/[id]/join — join a pool
- POST /api/pools/[id]/leave — leave a pool
- DELETE /api/pools/[id] — close pool (owner/superadmin)
- GET /api/pools/my — user's active memberships
- /[locale]/abos — browse/create UI with category filter,
real-time join/leave, create modal with cost preview
- Added to navigation (Marktplatz section) with i18n across 7 locales
- Fix: useCallback missing 't' dep in it-hilfe page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Migration 064 adds the missing `canton` column to `repairer_profiles` (omitted
in 061 when helper_profiles was merged in), backfills from helper_profiles, and
rebuilds helper_profiles_v to expose the real column instead of NULL.
The canton filter in /api/technicians was silently ignored since 061 — any
frontend filter by Swiss canton returned all results. Now wired up.
Legacy routes /api/repairers and /api/it-hilfe/helpers reduced from 150-230
lines of duplicated query logic each to 30-line thin proxies that delegate to
/api/technicians and remap the response shape for backwards compatibility.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Added nameKey to all ~30 navigation sub-items and updated
MegaMenuContent to use useTranslations for locale-aware labels.
Added 35 new nav keys to de/en/fr/it/es/ja/ko message files.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The homepage was crashing with "Functions are not valid as a child of
Client Components" because proServices.text used {link} (simple
interpolation) while the component called t.rich(), which expects
XML-style <link>label</link> tags and passes a render function.
next-intl returned the function itself as the replacement value,
causing React to throw.
Fix: convert {link} → <link>label</link> in all 7 locale files,
embedding the localized link label directly in the tag.
Also wire up nav label translations: add nameKey to all 6 top-level
nav items in navigation.tsx, add missing 'learn' key to all 7 locales,
and update NavItem to use useTranslations('nav') when nameKey is set.
The nav menu now shows translated labels (About, Services, Marketplace,
Learn, Get Involved, Contact) when switching locales.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Footer: wrap Öffnungszeiten, Mo/Di-Fr hours, and Transparenz link in t() calls
— these appeared on every page in every locale as hardcoded German
- space/page.tsx: use OPENING_HOURS from org.ts instead of hardcoded '9-12 | 13-17'
(SSOT fix — the hardcoded times also didn't match the actual org hours)
- MobileMenu: add LocaleSwitcher to footer so mobile users can switch locale
(previously locale switching was desktop-only)
- Add footer.openingHours, openingHoursMonday, openingHoursTueFri, transparency,
and nav.language keys to all 7 locale files (de/fr/en/it/es/ja/ko)
- ImpactStatsSection: fetch live stats from DB at render time instead of static
estimates; falls back to org-numbers defaults if DB is unavailable
- New /api/stats/impact route: computes real device counts and CO2 savings
by category using co2-impact.ts Fraunhofer IZM methodology
- AUDIT_REPORT.md: full 6-phase audit report (8.3/10 overall)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add Inter font via next/font/google (was missing — browser fallback)
- Remove nuclear !important CSS block that overrode all letter-spacing,
text-transform, white-space across entire site (was causing ugliness)
- LocaleSwitcher: replace 7 inline buttons with compact dropdown (shows
current locale code + chevron, expands to labeled list)
- Footer: use useTranslations for all hardcoded German strings; nav items
now use nameKey for proper locale switching
- error.tsx: use useTranslations instead of hardcoded German error text
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add next-intl v4.9.1 with App Router [locale] directory pattern
- German is SSOT; other locales fall back to German for missing keys
- All public pages moved to src/app/[locale]/ for locale-aware routing
- Non-locale routes (admin, auth, dashboard, profil) use AppShell for providers
- Root layout stripped to html/body shell; locale layout owns providers
- Middleware merges next-intl locale routing with existing CSRF/auth logic
- LocaleSwitcher added to desktop header; MobileMenu updated
- CommunityStats, NewsletterSignup, Header, MobileMenu use useTranslations
- 57 partial message files merged into de/fr/en locale JSONs
- Fix react-hooks/immutability in DecisionFormClient (setInitialStatus)
- TypeScript: 0 errors — ESLint: 0 errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Eliminates magic string literals throughout API routes and services.
Every status comparison now uses the canonical constant from config/.
- WORKSHOP_INSTANCE_STATUS.SCHEDULED in workshops/register, send-reminders, proposals/approve
- REPAIRER_STATUS.ACTIVE in repairers/route, availability/route, book/route
- DECISION_STATUS.VOTING/CLOSED in cron/close-decisions, decisions/transition
- MEMBERSHIP_APPLICATION_STATUS.APPROVED in membership/apply
- DONATION_STATUSES.RECORDED in admin/donations
- PAYREXX_TRANSACTION_STATUS (new) in payrexx-client, payment-webhook, mock-redirect
Defines all external Payrexx transaction status strings in one place
- WORKSHOP_PAYMENT_STATUS (new) in workshop-registration-status.ts
Defines workshop-specific payment dimension status (not_required/pending/paid/refunded)
- PAYMENT_STATUS.REFUNDED/DISPUTED added to complete the enum
- WORKSHOP_REGISTRATION_STATUS.CONFIRMED replaces hardcoded 'confirmed' in webhook
- WORKSHOP_PAYMENT_STATUS.PAID/NOT_REQUIRED replace hardcoded strings in webhook
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- it-hilfe/helper/matching-requests: use REQUEST_STATUS.OPEN
- admin/workshops/instances: use WORKSHOP_INSTANCE_STATUS.SCHEDULED
- workshops/register-with-payment: use WORKSHOP_INSTANCE_STATUS.SCHEDULED
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- stats/community route: replace NextResponse.json with apiSuccess/apiError
- dashboard/membership page: use MEMBERSHIP_TYPE_LABELS from config/membership-status
instead of locally-defined duplicate mapping
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ChecklistGroup: inline notes editor per checklist item (add/edit/preview)
Shows note preview when collapsed, expands textarea on click
- useIntakeDetail: pass notes through to PATCH API; add markAllRequired()
that batch-completes all uncompleted required items in parallel
- IntakeDetailView: "Alles in Ordnung" button in progress bar header
visible only when checklist < 100%, marks all required items done in one click
- Wire markAllRequired through IntakeClient prop chain
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Five modals had fixed overlays without onClick={onClose} on the backdrop,
meaning users had to find the X button to close them. Added backdrop click
handler + stopPropagation on inner content to match the base Modal component
pattern already used everywhere else.
Affected: InstanceFormModal, RequestChangesModal, RejectModal,
EditSubmissionModal, EditProposalModal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add server actions (approve blog, verify listing, approve repairer) in admin/actions/index.ts
- Add InlineActionButton client component with useTransition pending state
- Render inline action buttons in UnifiedQueue rows where applicable
- Extend DashboardStats with top-item queries to populate inline action targets
- Extend ActionItem type with optional inlineAction field
- Wire logActivity() fire-and-forget into approvals, IT-Hilfe, and erfassung routes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- MobileBottomNav: fixed bottom bar (lg:hidden) with Heute/Aufgaben/Entscheide/Mehr
tabs; Mehr opens the full sidebar; min-h-[56px] touch targets; aria-current
- AdminLayoutClient: mount MobileBottomNav, pb-20 on mobile to avoid content overlap
- Migration 0005: job_runs table for system health monitoring
- jobRuns Drizzle schema in misc.ts
- SystemHealthBar server component: shows amber notice when any job has failures
in last 24h; silently returns null if table absent or all healthy
- SystemHealthBar wired into MonatsueberblickSection (always shown when expanded)
- UnifiedQueue aria-label already covers urgency+label+age+count (no change needed)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Greeting renders at 0ms (no data dependency)
- VotingBanner and PersonalSection stream independently with their own queries
- UnifiedQueue, PermissionRequests, and Monatsüberblick share a single
getDashboardStats() Promise — DB queried once, sections stream when resolved
- Skeleton fallbacks: BannerSkeleton, PersonalSectionSkeleton, UnifiedQueueSkeleton
- Collapsed sections (Monatsüberblick) use fallback={null} — no skeleton needed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add CommandBar client component with Cmd+K/Ctrl+K global shortcut
- Native <dialog> element for accessibility (backdrop, focus trap, Esc)
- Fuzzy substring search across sections, users, decisions, and listings
- Hardcoded action commands: Gerät erfassen, Entscheidung, Protokoll, Dashboard
- Keyboard navigation: ↑↓ to move, Enter to navigate, Esc to close
- Search trigger button in top bar with ⌘K hint
- /api/admin/search-index endpoint (withAdmin, Promise.allSettled)
- Mount CommandBar in AdminLayoutClient between search and NotificationBell
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Restructures the admin dashboard to prioritize task clarity:
- Merged ActionItems + FulfillActions into a single "Wartet auf Bearbeitung" queue
(no more seeing the same item twice in two different formats)
- Demoted "Erstellen" to a compact pill strip with no card wrapper
- Wrapped MissionMetrics + WeeklyActivity in a collapsible "Monatsüberblick"
(collapsed by default, preference persisted in localStorage)
- Renamed sidebar zones: Angebot→Betrieb, Betrieb→Organisation, Übersicht→Heute
New components: UnifiedQueue, CreateStrip, Monatsueberblick, buildUnifiedQueue
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
P3 — quick actions split into two rows:
- "Erledigen" (green, with count badge): Inserate prüfen, Blog-Einreichungen,
IT-Hilfe zuweisen, Termine bestätigen, Techniker-Bewerbungen — only shown
when count > 0, hidden entirely when queue is clear
- "Erstellen" (existing colour-coded buttons, lighter visual weight): kept below
P4 — StatsOverview replaced with MissionMetrics:
- 4 impact cards: Geräte erfasst / verkauft, IT-Hilfen abgeschlossen,
Workshop-Teilnahmen — all scoped to current month, all linked to their section
- Reference stats (users, staff, technicians, listings) demoted to a compact
single-line footer row so the data is still accessible without dominating
4 new parallel queries added to getDashboardStats (inventory processed/sold,
IT-Hilfe completed, workshop attended) — all within the existing Promise.allSettled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
P0 — backend: collapse 12 sequential DB round-trips into parallel Promise.allSettled;
add MIN(created_at) per category for oldest-item age; replace silent catch{} with
logger.warn so failures are visible; listings uses FILTER in single query
P1 — noise removal: drop "X Bereiche" from greeting (impl detail, not orientation);
remove "Keine offenen Berechtigungsanfragen" bottom banner (zero-state nobody reads);
hide WeeklyActivity section entirely when both values are zero (zeroes without trend
context are uninterpretable)
P2 — age context on action items: each row now shows how old the oldest unresolved
item is ("ältestes: vor 8 Tagen") in urgency-coloured text; urgency dots get
aria-hidden + link gets aria-label with urgency word ("Dringend"/"Ausstehend") for
screen readers; action list uses semantic <ul>/<li>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Typography & hierarchy (cascades to all pages via admin-ui.ts SSOT):
- pageTitle: text-xl → text-2xl font-bold (stronger H1 anchor)
- meta/description: text-xs → text-sm (14px min per WCAG for body text)
- stat: add font-mono (consistent digit widths with tabular-nums)
- adminBtn: add disabled:cursor-not-allowed to action/warning/danger/ghost variants
- adminBtn.icon: w-8 h-8 → min-w/h-[2.75rem] for 44px WCAG touch targets
Pagination (used on every list page):
- Buttons: min-w/h-[2.75rem] for 44×44px WCAG 2.5.5 touch targets
- Mobile: hide page number buttons on xs, show "N / total" text instead
- Outer container: flex-wrap + gap-y-2 prevents overflow on narrow screens
- Ellipsis: proper aria-label="weitere Seiten", use … not ...
AdminFilterBar (used on every filterable page):
- Layout: flex-wrap → flex-col sm:flex-row — stacks properly on mobile
- Field widths: flex-1 min-w-48 → bounded flex-[0_1_220px] — dropdowns no
longer stretch to 300px+ on desktop
- Labels: add htmlFor + matching id on every input/select (a11y: programmatic
label association was missing)
- Focus states: add focus:border-blue-500 for better focus visibility
AdminSidebar:
- <nav>: add aria-label="Admin-Navigation" (landmark for screen readers)
- Group toggle buttons: add aria-expanded={isExpanded}
- Group labels: remove uppercase + tracking-widest → tracking-wide (more readable)
- Collapsed icons: w-4 h-4 → w-5 h-5 for easier recognition and touch
Responsive tables (protocols, tasks) — critical on mobile/small laptop:
- protocols: hide Teilnehmer + Workflow on mobile (md:table-cell)
- protocols: hide Typ on mobile (sm:table-cell)
- tasks: hide Typ + Zugewiesen on mobile/tablet (md:table-cell)
- tasks: hide Kategorie + Fällig + Erledigungen on mobile (sm:table-cell)
- All columns: whitespace-nowrap on date/status cells, max-w + truncate on title
- th headers: text-sm → text-xs font-semibold uppercase (standardised)
- Error-state "Seite neu laden": <a href=""> → <Link href="..."> (valid HTML)
Action button groups (workshops, locations):
- Row: flex → flex-col sm:flex-row with gap-4 — buttons stack below content
on mobile instead of being squeezed into the same line
- Button wrapper: flex-wrap so buttons wrap rather than overflow
Reviews:
- Modal textarea border: border-gray-300 → border-gray-400 (WCAG AA contrast)
- Flag buttons: add min-h-[2.75rem] for 44px touch target
- Flag buttons: add aria-label (was title-only, invisible to screen readers)
AdminLayoutClient:
- Mobile overlay: bg-black/20 → bg-black/30 dark:bg-black/50 (visible in dark mode)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Open vote API to authenticated members (withAuth), eligibility enforced in service
- Dashboard voting pages: /dashboard/decisions + /dashboard/decisions/[id]
- Type-aware email dispatch: decision_voting → decisionVotingOpened template, etc.
- Email deep links point to /dashboard/decisions/:id (not admin list)
- decisionClosed email template added; deadline reminder cron fires 24h before expiry
- background field (DB migration + schema + CRUD + API + forms): separates "what we're deciding" from "why" — shown as collapsible Begründung section before the ballot
- Type picker redesigned: icons, mechanic description on select, responsive 1→2→3 col grid
- Voter page: participation progress bar vs quorum, time remaining, creator, scope badges
- Admin detail: background shown as collapsible <details> panel
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>