From 460736ad1e337faa91f0f04547f4120b1a5f6e25 Mon Sep 17 00:00:00 2001 From: m Date: Thu, 30 Apr 2026 16:46:31 +0200 Subject: [PATCH] =?UTF-8?q?refactor(t-paliad-092):=20rename=20Go=20module?= =?UTF-8?q?=20path=20patholo=20=E2=86=92=20paliad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit F-6 from t-paliad-074 architecture audit. The Gitea repo was renamed m/patholo → mAi/paliad → m/paliad, but go.mod still declared `mgit.msbls.de/m/patholo` and every internal import echoed the pre-rebrand name. Sweep: - go.mod: module path → mgit.msbls.de/m/paliad - All *.go files: imports rewritten via sed - README.md, docs/design-kanzlai-integration.md: mAi/paliad → m/paliad - Frontend issue-reference comments (mAi/paliad#N → m/paliad#N) in i18n.ts, theme.ts, sidebar.ts, app.ts, Sidebar.tsx, PWAHead.tsx, global.css Verified: go build/vet/test ./... clean, bun run build clean, no remaining mgit.msbls.de/m/patholo or mAi/paliad references outside docs that intentionally describe the rename history. --- README.md | 2 +- cmd/server/main.go | 10 +++++----- docs/design-kanzlai-integration.md | 2 +- frontend/src/client/app.ts | 2 +- frontend/src/client/i18n.ts | 4 ++-- frontend/src/client/sidebar.ts | 2 +- frontend/src/client/theme.ts | 2 +- frontend/src/components/PWAHead.tsx | 2 +- frontend/src/components/Sidebar.tsx | 2 +- frontend/src/styles/global.css | 4 ++-- go.mod | 2 +- internal/handlers/admin_event_types.go | 2 +- internal/handlers/admin_users.go | 4 ++-- internal/handlers/agenda.go | 4 ++-- internal/handlers/appointments.go | 2 +- internal/handlers/audit.go | 2 +- internal/handlers/auth.go | 4 ++-- internal/handlers/changelog.go | 2 +- internal/handlers/checklist_instances.go | 2 +- internal/handlers/checklists.go | 4 ++-- internal/handlers/courts.go | 2 +- internal/handlers/dashboard.go | 2 +- internal/handlers/deadlines.go | 2 +- internal/handlers/email_templates.go | 2 +- internal/handlers/event_types.go | 2 +- internal/handlers/files.go | 2 +- internal/handlers/fristenrechner.go | 2 +- internal/handlers/gebuehrentabellen.go | 4 ++-- internal/handlers/glossary.go | 2 +- internal/handlers/handlers.go | 4 ++-- internal/handlers/invite.go | 4 ++-- internal/handlers/kostenrechner.go | 2 +- internal/handlers/links.go | 4 ++-- internal/handlers/notes.go | 2 +- internal/handlers/offices.go | 2 +- internal/handlers/onboarding.go | 4 ++-- internal/handlers/onboarding_gate.go | 2 +- internal/handlers/partner_units.go | 2 +- internal/handlers/projects.go | 4 ++-- internal/handlers/search.go | 6 +++--- internal/handlers/users.go | 4 ++-- internal/services/appointment_service.go | 2 +- internal/services/audit_service_test.go | 2 +- internal/services/caldav_ical.go | 2 +- internal/services/caldav_service.go | 2 +- internal/services/cansee_test.go | 2 +- internal/services/checklist_instance_service.go | 4 ++-- internal/services/dashboard_service.go | 2 +- internal/services/deadline_calculator.go | 2 +- internal/services/deadline_calculator_test.go | 2 +- internal/services/deadline_rule_service.go | 2 +- internal/services/deadline_service.go | 2 +- internal/services/deadline_service_test.go | 2 +- internal/services/email_template_service.go | 2 +- internal/services/event_type_service.go | 2 +- internal/services/mail_service.go | 2 +- internal/services/note_service.go | 2 +- internal/services/partner_unit_service.go | 4 ++-- internal/services/party_service.go | 2 +- internal/services/project_service.go | 2 +- internal/services/reminder_service.go | 2 +- internal/services/reminder_service_test.go | 4 ++-- internal/services/team_service.go | 2 +- internal/services/user_service.go | 4 ++-- internal/services/user_service_test.go | 2 +- internal/services/visibility_test.go | 2 +- 66 files changed, 89 insertions(+), 89 deletions(-) diff --git a/README.md b/README.md index 67b0170..28d5dfb 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Paliad — all-in-one patent practice platform for HLC (formerly Hogan Lovells). - **Knowledge tools**: Prozesskostenrechner (DE / UPC / EPA), Fristenrechner, Gebührentabellen, Patentglossar, Gerichtsverzeichnis, Checklisten, Link Hub, Downloads. Domain: `paliad.de` (legacy: `patholo.de`, `patholo.msbls.de`). -Repo: `mAi/paliad` on `mgit.msbls.de`. +Repo: `m/paliad` on `mgit.msbls.de`. ## Stack diff --git a/cmd/server/main.go b/cmd/server/main.go index 7c5acc7..70908c2 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -15,11 +15,11 @@ import ( // user's chosen tz (t-paliad-064 root cause). Adds ~450KB to the binary. _ "time/tzdata" - "mgit.msbls.de/m/patholo/internal/auth" - "mgit.msbls.de/m/patholo/internal/branding" - "mgit.msbls.de/m/patholo/internal/db" - "mgit.msbls.de/m/patholo/internal/handlers" - "mgit.msbls.de/m/patholo/internal/services" + "mgit.msbls.de/m/paliad/internal/auth" + "mgit.msbls.de/m/paliad/internal/branding" + "mgit.msbls.de/m/paliad/internal/db" + "mgit.msbls.de/m/paliad/internal/handlers" + "mgit.msbls.de/m/paliad/internal/services" ) func main() { diff --git a/docs/design-kanzlai-integration.md b/docs/design-kanzlai-integration.md index e7fc81c..8226c0d 100644 --- a/docs/design-kanzlai-integration.md +++ b/docs/design-kanzlai-integration.md @@ -429,7 +429,7 @@ No react-query, no Tailwind v4. Use existing `global.css` patterns. ### Build and deploy -- Existing flow stays: push to `main` on `mAi/paliad` → Gitea webhook → Dokploy auto-deploy. +- Existing flow stays: push to `main` on `m/paliad` → Gitea webhook → Dokploy auto-deploy. - Dockerfile changes: add migration step to entrypoint (run `migrate up` against `DATABASE_URL` before starting the HTTP server). - New env vars in Dokploy: - `DATABASE_URL` (youpc Supabase Postgres conn string) diff --git a/frontend/src/client/app.ts b/frontend/src/client/app.ts index 8503995..b62029c 100644 --- a/frontend/src/client/app.ts +++ b/frontend/src/client/app.ts @@ -4,7 +4,7 @@ // 2. Register the service worker so the site qualifies for PWA install. // 3. Surface the install prompt (Chromium banner / iOS share-sheet hint). // 4. Init the theme listener so the OS-level prefers-color-scheme change -// flips the page when the user's pref is "auto" (mAi/paliad#2). +// flips the page when the user's pref is "auto" (m/paliad#2). // // Per-page bundles still register their own behaviour; this script is // orthogonal and only touches DOM nodes it owns. diff --git a/frontend/src/client/i18n.ts b/frontend/src/client/i18n.ts index 01fcf23..fd37b89 100644 --- a/frontend/src/client/i18n.ts +++ b/frontend/src/client/i18n.ts @@ -43,7 +43,7 @@ const translations: Record> = { "nav.neuigkeiten": "Neuigkeiten", "nav.soon.tooltip": "Bald verf\u00fcgbar", - // Theme toggle (mAi/paliad#2). The button cycles auto \u2192 light \u2192 dark + // Theme toggle (m/paliad#2). The button cycles auto \u2192 light \u2192 dark // \u2192 auto. The "toggle." keys show the *current* pref next to // the icon; the "cycle." keys describe WHAT the next click will // do (read by aria-label / tooltip). @@ -1497,7 +1497,7 @@ const translations: Record> = { "nav.neuigkeiten": "What's New", "nav.soon.tooltip": "Coming soon", - // Theme toggle (mAi/paliad#2) + // Theme toggle (m/paliad#2) "theme.toggle.auto": "Auto", "theme.toggle.light": "Light", "theme.toggle.dark": "Dark", diff --git a/frontend/src/client/sidebar.ts b/frontend/src/client/sidebar.ts index 379bc47..eb27d9c 100644 --- a/frontend/src/client/sidebar.ts +++ b/frontend/src/client/sidebar.ts @@ -315,7 +315,7 @@ function initChangelogBadge(): void { } // initThemeToggle wires the sun/moon button at the bottom of the sidebar -// (mAi/paliad#2). The pre-paint inline script in PWAHead.tsx already set +// (m/paliad#2). The pre-paint inline script in PWAHead.tsx already set // the data-theme attribute on ; this function only owns the post- // hydration UI: cycling on click, swapping the icon/label to match the // current preference, and re-rendering when the OS-level scheme flips diff --git a/frontend/src/client/theme.ts b/frontend/src/client/theme.ts index 1a44e85..d175b8d 100644 --- a/frontend/src/client/theme.ts +++ b/frontend/src/client/theme.ts @@ -2,7 +2,7 @@ // // The pre-paint inline