Commit graph

5 commits

Author SHA1 Message Date
cf0b78893c fix: API-Endpoint in Setup aus Browser-URL statt DOL_MAIN_URL_ROOT [deploy]
All checks were successful
Deploy Eplan / deploy (push) Successful in 9s
DOL_MAIN_URL_ROOT ist in Docker-Setups oft die interne Container-URL
(z.B. 192.168.155.1:8090), die externe Clients nicht erreichen. Stattdessen
Scheme + Host aus dem aktuellen Request verwenden — genau die URL die der
User gerade im Browser hat, die garantiert auch von außen erreichbar ist.

Zusätzlich Hinweistext unter dem Endpoint wie die URL in der PWA einzutragen
ist (ohne den /custom/…-Suffix).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 11:24:48 +02:00
593c93f377 feat: PWA-Token-Auth statt Dolibarr-REST-API-Key [deploy]
All checks were successful
Deploy Eplan / deploy (push) Successful in 9s
Das ElektroPlan-Backend spricht nicht mehr die Dolibarr-REST-API an
(API-Key-Flow kaputt, REST-Modul nicht zuverlässig), sondern einen
eigenen NOLOGIN-Endpoint im Eplan-Modul.

- ajax/pwa_api.php: NOLOGIN-Endpoint, Auth via X-Eplan-Token-Header
  gegen EPLAN_PWA_SECRET (hash_equals, timing-safe)
  Actions: ping, auftraege_listen, auftrag_details, kunden_suchen,
  dokument_upload (multipart POST)
- lib/eplan_token.lib.php: Lazy-init Token, Rotation, Verifikation
- admin/setup.php: Token-Feld (readonly, anklickbar zum Markieren),
  Endpoint-URL zum Kopieren, Button "Neuen Token erzeugen"
- de/en-Sprachdateien: EplanApiToken* Keys

Muster aus KB #354 (Bericht/Baustelle-PWA).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 11:02:27 +02:00
0286e6c7ec fix: Horizontalen Scrollbalken entfernt [deploy]
All checks were successful
Deploy Eplan / deploy (push) Successful in 1s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 18:29:05 +02:00
ff86888766 fix: Standard Dolibarr Include-Pattern für setup.php [deploy]
All checks were successful
Deploy Eplan / deploy (push) Successful in 1s
require main.inc.php funktioniert nicht bei Volume-Mounts.
Jetzt Standard-Pattern mit CONTEXT_DOCUMENT_ROOT + Fallbacks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 18:26:45 +02:00
3f36379265 feat: Dolibarr-Modul Eplan — Initial [deploy]
Some checks failed
Deploy Eplan / deploy (push) Failing after 0s
Verknüpfung zur ElektroPlan PWA (Raumaufmaß mit Bluetooth-Laser).
- Setup-Seite mit PWA-URL + großem Öffnen-Button
- Menü-Eintrag unter Werkzeuge
- Modul-Nr. 500037, Rechte: read + admin
- Lang: de_DE + en_US

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 18:23:46 +02:00