Commit Graph
13 Commits
Author SHA1 Message Date
GandClaude Opus 5 a21d8906af chore: add a formatter, and close a CSS comment that was never closed (#419)
* chore: add a formatter, matching the style this repo already writes

singleQuote=true was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier, and close a comment that was never closed

The formatter refused this repo outright, which turned out to be a real defect
rather than a tooling complaint. kivitendo-intake.css opens a header comment,
and line 17 contains an inner /* ⚠ PRÜFEN */ — CSS comments do not nest, so
that inner terminator CLOSES the header. Everything after it is parsed as CSS
until the stray */ on line 20. A browser mis-parses it the same way.

The file exists in two places (public/presentations/ and deliverables/), both
carrying the same defect; fixing one still failed the gate, which is how the
duplicate surfaced at all.

Mechanical otherwise. This SHA is listed in .git-blame-ignore-revs.

* chore: teach git blame to skip the reformat

* fix: undo a 3-way merge duplication in AdminSidebar.tsx

Merging main with -X theirs duplicated a 30-line block: main's currency-sweep
commit and this branch's prettier reformat both touched overlapping lines in
the single-destination-group render path, and the -X theirs strategy inserted
rather than replaced, leaving two near-identical copies and a dangling closing
brace — SyntaxError: ',' expected at line 298.

The branch has no legitimate change to this file's logic, only formatting, so
main's content is correct outright. Took it wholesale rather than hand-editing
the merge result.

* fix(lint): reattach 5 directives the reformat detached

Four eslint-disable-next-line sites for react-hooks/set-state-in-effect and one
@ts-expect-error, all the same defect: the directive sat above useEffect( (or
above a JSX element), while the statement that actually errors is 1-2 lines
further down inside the block. eslint/tsc report at the real statement; the
directive, still bound to its original line number, protects nothing there.

TimecardReviewDrawer.tsx (x2), DataEntryTabs.tsx, AppointmentBookingForm.tsx,
CreatePoolModal.tsx. Same root cause documented for hirnli, fleetcrown and
ivy-portal earlier today — a positional directive is a hidden dependency on
formatting, and this is the fourth distinct shape it's taken.

* fix(i18n): restore a same-line audit-exemption marker

Fifth shape of today's positional-directive defect, this time the repo's own
i18n-hardcoded-audit convention rather than eslint or tsc: a // i18n-ok comment
exempts a hardcoded string only when it trails the SAME line. prettier wrapped
this one if-statement's long condition onto its own line, leaving the marker
on the return statement below — the exact sibling one line down
('fortgeschrittene bis experten') stayed on one line because it was short
enough not to wrap, and it alone kept passing.

Restored the one-line form and added // prettier-ignore so a future reformat
cannot re-split it. Verified against the real audit script locally: 0 new
violations.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 13:35:50 +00:00
g-butandClaude Opus 4.6 b21a680a4b refactor: remove Medusa e-commerce backend and all related infrastructure
Remove the entire Medusa integration that was replaced by native database
queries for product management. This includes the medusa-backend directory,
all Medusa API routes (cart, orders, products, regions, health), Medusa
client library and React hooks, StripeCheckout component, publish service,
Docker services (medusa, medusa_db, medusa_redis), CI/CD workflow, and
all Medusa references from config files, scripts, and docker-compose.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:43:11 +01:00
g-butandClaude Opus 4.6 370ad47f8b perf: add paginatedQuery utility and Docker transcription service
- Create paginatedQuery() using COUNT(*) OVER() window function to
  combine data + count into a single DB round-trip
- Migrate 9 high-traffic API routes from 2-query to 1-query pagination
  (listings, it-hilfe/requests, repairers, reviews, admin/users,
  admin/donations, admin/reviews, admin/inventory, admin/workshops)
- Add Dockerfile and docker-compose entry for voice transcription
  service (faster-whisper Flask server on port 5111)
- Update test mocks for paginatedQuery in IT-Hilfe tests
- Mark Phase 5 as complete in development plan

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 23:05:20 +01:00
g-butandClaude Opus 4.5 aaff2ad83d fix(auth): resolve database schema conflict and add staff email templates
- Fix Listmonk/CMS users table conflict by using separate listmonk_db database
- Fix migration errors: index column names, conditional index creation,
  seller_profiles missing columns, immutable function in unique index
- Add staffVerificationCode and staffWelcome email templates for @revamp-it.ch
- Update registerUser() to select template based on staff status
- Add Listmonk service to docker-compose with Mailpit for local testing
- Add email provider abstraction supporting both Listmonk and direct SMTP

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 13:24:34 +01:00
g-butandClaude Opus 4.5 db4a949278 chore(infra): add medusa backend Dockerfile and admin API key script
- Add Dockerfile for medusa-backend container
- Add script to create admin API keys
- Update docker-compose with new services
- Update package-lock.json

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 15:32:37 +01:00
g-butandClaude Opus 4.5 ba9970d23c feat: Add HIRN AI RAG system with multi-provider support
Implements a complete RAG (Retrieval-Augmented Generation) system for
the admin dashboard with:

Core RAG Engine:
- Document ingestion with smart chunking (preserves complete functions/classes)
- pgvector-based semantic search with HNSW index
- Ollama embeddings (nomic-embed-text, 768 dimensions)
- Automatic content hashing for change detection

Multi-Provider AI Support:
- Ollama (local, default)
- Groq, OpenAI, Anthropic, Google, xAI, OpenRouter
- Per-user provider preferences stored in database
- Fallback chain for reliability

Auto-Documentation:
- Database schema extraction and indexing (62 tables)
- API route auto-documentation (116 endpoints)
- Generated docs stored in docs/ for reference

Admin Interface:
- Chat UI with context display
- Provider selector with API key management
- Document browser and stats
- Conversation history

Scripts:
- hirn-ingest.ts: Main document ingestion
- hirn-ingest-schema.ts: Database schema ingestion
- hirn-ingest-api-routes.ts: API documentation generator
- test-hirn-retrieval.ts: Retrieval testing
- test-hirn-chat.ts: Chat pipeline testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 01:50:20 +01:00
Your Name 7974d5c61f feat: deploy latest frontend (auth, admin, shop); docs + CI updates 2025-12-14 16:06:55 +01:00
Your NameandClaude 40d85d9a37 chore: complete Strapi removal and codebase cleanup
Major cleanup removing all Strapi-related code and migrating to static content:
- Remove all Strapi integration files (strapi.ts, types)
- Delete legacy Strapi pages and components
- Remove migration scripts and Strapi tooling
- Update Docker compose to remove Strapi services
- Reorganize documentation files into docs/ directory
- Remove obsolete test components and legacy API routes
- Add new responsive design components and utilities
- Update service pages to use static content
- Simplify blog pages to use hardcoded content
- Remove package dependency on Strapi

This cleanup reduces codebase complexity and prepares for production deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 17:56:06 +01:00
Your Name 53caf6c3aa feat: implement complete admin interface for Reboot Content
- Add Next.js admin routes (/admin, /admin/login, /admin/pages, /admin/pages/new, /admin/pages/[id])
- Create admin layout with navigation and authentication
- Build login page with email/password form
- Implement pages list with search and create functionality
- Add WYSIWYG editor for content creation/editing
- Create API routes for admin authentication and content management
- Add middleware for route protection
- Include sample data population script
- Add comprehensive admin interface documentation for non-technical users
- Create test page for validating admin functionality
- Update environment configuration for JWT secret

Admin interface is now super easy and intuitive for non-technical team members to:
- Login with email/password
- View all pages with search
- Create new pages
- Edit existing pages with rich text editor
- Save as draft or publish immediately
- Preview content before publishing

All code follows best practices with proper error handling, security, and accessibility.
2025-09-08 13:18:07 +02:00
Your NameandClaude 78f344c08e Fix English text in German services pages
- Translate service descriptions and features to German
- Fix "Our Services" to "Unsere Dienstleistungen"
- Translate process steps in data recovery service
- Fix "Contact Us" and "Browse Inventory" buttons
- Translate "This service is coming soon" message
- Ensure consistent German language throughout services

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 10:56:32 +02:00
Your Name 52b32e6427 fix: resolve package-lock.json merge conflict and update lockfile 2025-07-13 19:10:49 +02:00
Your Name 1aa617bd95 Auto-deploy: Updates from 2025-07-01 14:03:07 2025-07-01 14:03:07 +02:00
Your NameandClaude 5cd0da968f feat: update site with strapi integration and navigation improvements
- Add Strapi integration for blog functionality
- Update navigation with sectioned dropdown structure
- Add new service pages and build-your-computer service
- Update sitemap with new routes
- Add required dependencies (qs)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 11:04:53 +02:00