Files
g-butandClaude Opus 4.7 2a0829efc3 docs: clean repo presentation — README rewrite + archive 42 stale doc files
Repo cleanup pass focused on what visitors (engineers evaluating the
codebase, prospective contributors, allied non-profits, donors) see when
they land on the GitHub page.

README.md:
- Reframe lede around the one-line value prop ("Used computers repaired
  and rehomed — not landfilled") so the mission is immediately legible.
- Add a "What this platform does" surface table (storefront, P2P
  marketplace, IT-Hilfe, workshops, erfassung, member services, HIRN AI).
- Add a "How a non-profit funds this kind of platform" section laying
  out the five revenue + sustenance streams (storefront margin, paid
  services, donations, membership, grants) so the economic model is
  transparent. Explicit "not VC-backed" framing so VC visitors don't
  bounce confused — we're built for adoption by other circular-economy
  orgs, not for an exit.

docs/:
- 42 dated/one-time files (PHASE_*, PROGRESS_*, AUDIT_REPORT, INCIDENT_*,
  HANDOFF_*, *_COMPLETE, DATABASE_CONNECTION_ISSUE_RESOLUTION, all the
  email-solution-comparisons whose decisions long since shipped, etc.)
  moved to docs/archive/ via `git mv` so history is preserved but the
  index isn't drowning in work logs.
- docs/README.md rewritten as a real index — six sections (Getting
  started, Architecture, Product surfaces, Design, Operations, Mission)
  pointing at the 24 curated reference docs that remain at docs/ root.
- The stale "Current Status (2025-12-02)" block in docs/README.md is gone.

Also (separate, prior in this session): 5 stale remote branches deleted
on origin — merged/closed/abandoned `claude/loop-bugfixes-2026-05`,
`claude/audit-ssot-dry-violations-k4aVl`, `snyk-fix-*` (x2),
`claude/improve-partnerships-page-ELMcD`. Remaining 11 origin branches
all correspond to open PRs (10 dependabot + 1 active feature).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 08:12:16 +02:00

1.9 KiB

Codebase Bug List

Created: 2026-03-19 Last Updated: 2026-03-19


Critical — ALL FIXED

# Bug File Status
1 ANY() with JS array — inventory route src/app/api/admin/inventory/route.ts FIXED (prior branch)
2 Double-wrapped apiSuccess on AI extract src/app/api/ai/extract/route.ts FIXED (prior branch)
3 ANY() with array literal in dashboard stats src/components/admin/dashboard/getDashboardStats.ts FIXED
4 Double apiSuccess({ success: true }) in inventory DELETE src/app/api/admin/inventory/[id]/route.ts FIXED
5 Double apiSuccess({ success: true, ... }) in inventory PUT src/app/api/admin/inventory/[id]/route.ts FIXED
6 Double apiSuccess({ success: true }) in products PUT src/app/api/admin/products/[id]/route.ts FIXED
7 Double apiSuccess({ success: true }) in products DELETE src/app/api/admin/products/[id]/route.ts FIXED

Also fixed: Double apiSuccess({ success: true }) in inventory PATCH (same file as #4/#5).


Medium — ALL FIXED

ANY() with JS arrays converted to IN (${sql.join(...)}) pattern.

# File Status
8 src/lib/services/decisions-voting.ts FIXED
9 src/lib/services/decisions-core.ts FIXED
10 src/lib/services/order-service.ts FIXED
11 src/lib/services/inventory-service.ts FIXED
12 src/lib/hirn/retrieval.ts FIXED

Low — Won't Fix

# Issue Reason
13 Products GET nests as { product: ... } Frontend consumers (factsheet/page.tsx, useSmartEntry.ts) depend on data.data.product shape — changing would break them
14 Legacy raw SQL in erfassung create-product Uses getTableName() from Drizzle (safe constant from schema), in a legacy PoolClient path marked for future removal