Sharang Parnerkar
e07e1de6c9
refactor(admin): split api-client.ts (885 LOC) and endpoints.ts (1262 LOC) into focused modules
...
api-client.ts is now a thin delegating class (263 LOC) backed by:
- api-client-types.ts (84) — shared types, config, FetchContext
- api-client-state.ts (120) — state CRUD + export
- api-client-projects.ts (160) — project management
- api-client-wiki.ts (116) — wiki knowledge base
- api-client-operations.ts (299) — checkpoints, flow, modules, UCCA, import, screening
endpoints.ts is now a barrel (25 LOC) aggregating the 4 existing domain files
(endpoints-python-core, endpoints-python-gdpr, endpoints-python-ops, endpoints-go).
All files stay under the 500-line hard cap. Build verified with `npx next build`.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-10 19:17:38 +02:00
Sharang Parnerkar
58e95d5e8e
refactor(admin): split 9 more oversized lib/ files into focused modules
...
Files split by agents before rate limit:
- dsr/api.ts (669 → barrel + helpers)
- einwilligungen/context.tsx (669 → barrel + hooks/reducer)
- export.ts (753 → barrel + domain exporters)
- incidents/api.ts (845 → barrel + api-helpers)
- tom-generator/context.tsx (720 → barrel + hooks/reducer)
- vendor-compliance/context.tsx (1010 → 234 provider + hooks/reducer)
- api-docs/endpoints.ts — partially split (3 domain files created)
- academy/api.ts — partially split (helpers extracted)
- whistleblower/api.ts — partially split (helpers extracted)
next build passes. api-client.ts (885) deferred to next session.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-10 19:12:09 +02:00
Benjamin Admin
d53cf21b95
docs: Projekt-API in API-Docs, Developer Portal + MKDocs ergaenzen
...
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Failing after 38s
CI / test-python-backend-compliance (push) Successful in 1m0s
CI / test-python-document-crawler (push) Successful in 23s
CI / test-python-dsms-gateway (push) Successful in 20s
- endpoints.ts: Neues Modul "Projekte — Multi-Projekt-Verwaltung" (5 Endpoints)
- Developer Portal: projectId im Beispiel-Code, Multi-Projekt als Feature
- multi-tenancy.md: Verweis auf multi-project.md + neue Tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 15:59:27 +01:00
Benjamin Admin
6ff9f1f2f3
feat(api-docs): API-Exposure-Klassifikation — Intern vs. Oeffentlich
...
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Failing after 36s
CI / test-python-backend-compliance (push) Successful in 33s
CI / test-python-document-crawler (push) Successful in 20s
CI / test-python-dsms-gateway (push) Successful in 16s
Alle ~640 Endpoints nach Netzwerk-Exposition klassifiziert: public (5 Module, ~30 EP),
partner/Integration (6 Module, ~25 EP), internal (25+ Module, ~550 EP), admin/Wartung (4 EP).
Badges, Filter und Stats in API-Docs + Developer Portal.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 13:31:16 +01:00
Benjamin Admin
6509e64dd9
feat(sdk): API-Referenz Frontend + Backend-Konsolidierung (Shared Utilities, CRUD Factory)
...
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Successful in 32s
CI / test-python-backend-compliance (push) Successful in 30s
CI / test-python-document-crawler (push) Successful in 21s
CI / test-python-dsms-gateway (push) Successful in 18s
- API-Referenz Seite (/sdk/api-docs) mit ~690 Endpoints, Suche, Filter, Modul-Index
- Shared db_utils.py (row_to_dict) + tenant_utils Integration in 6 Route-Dateien
- CRUD Factory (crud_factory.py) fuer zukuenftige Module
- Version-Route Auto-Registration in versioning_utils.py
- 1338 Tests bestanden, -232 Zeilen Duplikat-Code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-07 17:07:43 +01:00