241 Commits

Author SHA1 Message Date
f1541478ad Bereinige und vereinfache Installations-Skripte
- Entferne alle überflüssigen Installations- und Konfigurationsskripte
- Erstelle zwei vereinfachte Docker-Installationsskripte:
  - install-frontend.sh für Frontend-Installation
  - install-backend.sh für Backend-Installation
- Verbessere Frontend Dockerfile mit besserer Unterstützung für native Dependencies
- Aktualisiere Backend Dockerfile für automatische DB-Initialisierung
- Korrigiere TypeScript-Fehler in personalized-cards.tsx
- Erstelle env.ts für Umgebungsvariablen-Verwaltung
- Füge ausführliche Installationsanleitung in INSTALL.md hinzu
- Konfiguriere Docker-Compose für Host-Netzwerkmodus
- Erweitere Dockerfiles mit Healthchecks für bessere Zuverlässigkeit

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-31 14:22:07 +02:00
fc62086a50 Erstelle separate Startskripte für Frontend und Backend
- Erstelle start-frontend.sh für den Frontend-Rechner
- Erstelle start-backend.sh für den Backend-Rechner
- Beide Skripte enthalten vollständige Installation und Konfiguration
- Reduziere Verwirrung durch zu viele Startskripte

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-31 11:13:06 +02:00
951473d1ec Erstelle Docker-Setup mit Installationsskripten für Frontend und Backend
- Füge Docker-Compose-Konfiguration mit Host-Netzwerk für Frontend und Backend hinzu
- Erstelle Dockerfile für das Frontend mit automatischer Datenbankmigration
- Aktualisiere Backend-Docker-Compose mit korrekten Umgebungsvariablen
- Implementiere Installationsskripte:
  - install-myp.sh: Vollständige Installation beider Komponenten
  - start-myp.sh: Starten der installierten Container
  - stop-myp.sh: Stoppen der Container
  - setup-backend-env.sh: Einrichten der Backend-Umgebungsvariablen
- Korrigiere SQLite-Datenbankprobleme im Frontend

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-31 10:36:16 +02:00
4db5512b57 Erstelle Skripte zur Wiederherstellung und Installation des Frontends von Torben 2025-03-31 09:55:17 +02:00
347cc931ed Füge Backend-Autostart-Skript hinzu 2025-03-31 09:45:42 +02:00
a082a81c87 Passe Testumgebung für externes Backend auf 192.168.0.105 an
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 12:51:20 +01:00
7f0991e517 Korrigiere start-server-and-test Version auf verfügbare 2.0.11
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 10:51:17 +01:00
621833766d Aktualisiere README mit Informationen zu Cypress Tests
- Fügt Anleitung zum Ausführen von Tests hinzu
- Beschreibt Test-Features und Kommandos
- Ergänzt Informationen zum headless Testmodus

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 10:40:27 +01:00
27e1b2d82c Füge Cypress Konfiguration und Testumgebung hinzu
- Fügt cypress.config.ts für E2E und Komponenten Tests hinzu
- Fügt Cypress Testskripte und Docker-Compose Konfiguration hinzu
- Ermöglicht automatische E2E-Tests mit separater Testumgebung

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 10:40:15 +01:00
4e0fa33dee Verbessere docker test-integration.sh für lokales Testen
- Verbessert die Erkennung von Docker/Docker Compose
- Vereinfacht die Tests mit fokus auf die Front-Backend Verbindung
- Verbessert Lesbarkeit durch bessere Formatierung

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 10:40:02 +01:00
Till Tomczak / Torben via Frontend
37f2519140 fehler 2025-03-26 16:05:58 +01:00
f26759ec24 Verbessere Frontend-Installationsskript für robustere Installation
- Füge --no-sudo Option für Installation ohne Root-Rechte hinzu
- Verbessere Node.js Installation mit NVM Fallback für Benutzer-Level
- Implementiere mehrere Fallback-Mechanismen für pnpm-Installation
- Füge automatische PATH-Konfiguration in .bashrc hinzu
- Erstelle zusätzliches Start-Skript für einfache manuelle Ausführung
- Verbessere Fehlerbehandlung und Diagnoseinformationen
- Füge expliziten Abhängigkeitsinstallationsschritt hinzu

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 10:06:36 +01:00
Till Tomczak / Torben via Frontend
3ffde06e6e logs 2025-03-26 15:46:33 +01:00
3e08a09d87 Add frontend test environment with real backend integration
This commit introduces a proper integration test environment for the frontend:

- Creates a test environment option in the frontend installer
- Uses the real backend in Docker containers
- Binds frontend to 127.0.0.1 for local testing only
- Adds automatic verification testing of backend-frontend communication
- Provides scripts to easily start and stop the test environment

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-28 09:33:59 +01:00
8c3c80fb5c Add localhost to Caddyfile domains for local development access
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-26 13:47:21 +01:00
fa3a2209ad Merge branch 'main' of https://git.cnull.net/core/Projektarbeit-MYP 2025-03-26 13:28:36 +01:00
2ab4c4c3e2 Improve frontend installation script for robust installation process
- Add non-interactive installation mode with command-line options
- Implement robust error handling and recovery mechanisms
- Fix pnpm installation with fallback methods and PATH configuration
- Add CORS headers to allow communication with backend
- Improve Docker build and compose process with verification steps
- Add colored log output for better readability
- Add dependency installation retry mechanism for better reliability

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-26 13:23:18 +01:00
8366a9295e Enhance frontend installation script with improved system packages and static backend URL
- Add essential system packages and networking tools
- Install official Docker CE with proper configuration
- Configure backend connection to static IP 192.168.0.105
- Generate secure random AUTH_SECRET during installation
- Add environment example file for version control
- Improve post-installation information and helpful commands

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-26 13:20:44 +01:00
8db9a93507 Add Bootstrap assets and download script for offline support
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-24 11:11:05 +01:00
d496dec773 bootstrap test 2 2025-03-24 10:58:07 +01:00
37ab57c455 revert aad1be90ee9fb107d58ef3bbf8c4ff884414abda
revert bootstrap offline
2025-03-24 10:55:08 +01:00
aad1be90ee bootstrap offline 2025-03-24 10:11:35 +01:00
Raspberry PI TBA
4fda1139d1 feedback 2025-03-24 09:41:04 +01:00
7a34f7581c Add installation shell scripts for frontend and backend deployment
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-24 09:03:46 +01:00
8ba0f9e55a Merge branch 'main' of https://git.i.mercedes-benz.com/TBA-Berlin-FI/MYP 2025-03-24 07:15:54 +01:00
38d1a90dc2 Merge branch 'main' of https://git.cnull.net/core/Projektarbeit-MYP 2025-03-24 07:13:31 +01:00
84a3f45d2f production readyness 2025-03-24 07:13:26 +01:00
5c9de8becc dokumentation 2025-03-16 19:16:28 +01:00
root
9502a9b3af steckdose timeout 2025-03-13 09:56:03 +01:00
root
2ab091b90c Behebe Fehler im Hintergrund-Thread durch Hinzufügen fehlender Datenbankfelder
- Erweitere init_db Funktion, um fehlende connection_status und last_seen Spalten in der socket Tabelle zu prüfen
- Füge Spalten dynamisch hinzu, falls sie nicht existieren
- Verhindert den Fehler 'no such column: connection_status' im background_job_checker

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-13 09:46:18 +01:00
root
9ffa70aad1 Frontend an Backend angebunden mit API-Wrapper und Datenmapping 2025-03-13 09:17:22 +01:00
root
b0d8d4f915 Verbessere Passwort-Sicherheit mit stärkerem Salting und Hashing 2025-03-13 08:59:58 +01:00
root
52a336a788 Implementiere Uptime-Überwachung für Steckdosen mit Dashboard-Anzeige 2025-03-13 08:56:22 +01:00
root
63b04c4dea Merge branch 'main' of https://git.cnull.net/core/Projektarbeit-MYP 2025-03-13 08:39:24 +01:00
be0067ab06 getestet, credentials aktualisiert 2025-03-13 08:38:13 +01:00
root
f58c85c8f0 Update CLAUDE.md with system architecture and work guidelines 2025-03-13 08:02:34 +01:00
TILL TOMCZAK
84ddfefaea env vars 2025-03-12 14:13:57 +01:00
4a2782734a env vars geändert / berichtigt 2025-03-12 14:10:13 +01:00
root
190794b2c1 Claude 2025-03-12 13:58:24 +01:00
root
ad5bd4367e Verbesserte Dashboard-Ansicht mit Echtzeit-Informationen
- Neue übersichtliche Dashboard-Ansicht für aktive und wartende Jobs
- Fortschrittsbalken für laufende Druckaufträge mit verbleibender Zeit
- Liste der verfügbaren Drucker mit schnellem Zugriff auf Auftragserstellung
- Freischaltungs-Funktionalität für wartende Jobs direkt vom Dashboard
- Automatische Aktualisierung der Daten alle 60 Sekunden

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 13:33:57 +01:00
root
097934ac18 Verbesserte Druckeransicht mit Warteschlange und verbleibender Zeit
- Anzeige der verbleibenden Zeit für aktuelle Druckaufträge in der Druckeransicht
- Neue Spalte für wartende Jobs in der Druckerliste
- Übersichtliche Anzeige der Warteschlange mit Job-Informationen

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 13:28:37 +01:00
root
a7b8d470e4 Verbesserte Frontend-Unterstützung für Wartejobs und verbleibende Zeit
- Anzeige der verbleibenden Zeit für Druckaufträge im Frontend
- Neue UI-Komponenten für Wartejobs und deren Freischaltung
- Freischaltungs-Modal für wartende Jobs implementiert
- Drucker-Status wird beim Erstellen eines Auftrags angezeigt
- Checkbox für Warteschlangen-Option beim Erstellen eines Auftrags

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 13:27:14 +01:00
root
3f2be5b17d Automatisches Ausschalten der Drucker nach Ablauf der Auftragszeit
- Verbesserte Funktion check-jobs für automatische Abschaltung
- Implentierung von Warteschlange für besetzte Drucker
- Neues Datenbank-Feld 'waiting_approval' für Druckaufträge
- Neuer API-Endpunkt '/api/jobs/<job_id>/approve' zur Freischaltung
- Verbessertes Logging für Debugging-Zwecke

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 13:24:26 +01:00
7bf9d7e5ae dinge getan 2025-03-12 13:14:36 +01:00
a651257b3b app py korrigiert, env vars, git ignore 2025-03-12 12:39:03 +01:00
root
3972860be8 env vars 2025-03-12 12:33:05 +01:00
root
6cdc437d3e Update API documentation to reflect PyP100 migration
- Updated printer (socket) API endpoints to use the new data structure
- Updated job API endpoints to match the current implementation
- Added documentation for new endpoints: job status, abort, finish, and extend
- Updated field names to match the camelCase convention used in the backend

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 12:22:55 +01:00
root
7c1d0069c6 Update documentation for PyP100 migration
- Updated environment variable section to use PRINTERS instead of TAPO_DEVICES
- Added JSON format example for the PRINTERS variable
- Updated technology stack to mention PyP100 instead of Tapo library
- Fixed database path reference from DATABASE_URL to DATABASE_PATH

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 12:20:31 +01:00
root
575325e838 Add environment example file for PyP100 configuration
- Created .env.example file for backend configuration
- Updated environment variable format for smart plugs
- PRINTERS variable now uses the new JSON format required by the PyP100 library

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 12:19:05 +01:00
root
faf0736dbd Automatische Initialisierung der Tapo-Steckdosen implementiert
- Steckdosen werden automatisch aus SOCKET_DEVICES Umgebungsvariable initialisiert
- Drucker werden als "Printer X" benannt, wobei X die Nummer der Steckdose ist
- Alle Steckdosen werden beim Start in den AUS-Zustand versetzt
- Verbesserte Fehlerbehandlung beim Ausschalten der Steckdosen mit mehreren Versuchen

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 11:23:06 +01:00