Commit Graph
12 Commits
Author SHA1 Message Date
Gabriel20xxandClaude Sonnet 5 d1a02a8c4d Extract shared media backend library; remove dead multi-flavor app/binary
Adds mediaauth/mediacore/carriernodeclient/syncsocket packages under
backend/, extracting everything genuinely cross-service (auth, shared
media/tags/playlists/sync/profile routes, the CarrierNode HTTP client,
the playback-sync websocket hub) out of the old media-backend monolith.

The 7 media-family services (CarrierNode, ContentScanner, CraftStudio,
MediaViewer, MediaKiosk, ModerationHub, ProjectConfigurator) each now
have their own independent frontend and backend built on this library,
instead of sharing one generic multi-flavor webui/media-backend
selected by a MEDIA_SERVICE/VITE_MEDIA_APP flag. That generic app and
binary (webui/, media-backend/) are now dead and removed here, along
with their dedicated CI workflows. sync-consumers.ps1 and README.md
updated to describe the new architecture.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 15:06:06 +02:00
Gabriel20xxandClaude Sonnet 5 2e6baaa70c Add wide-page layout toggle; rename MediaAnalyzer/MediaTools/LoggingServer
Adds a new persisted "wide page" preference (theme/language-style store,
settings-dialog checkbox, main-content width override) alongside the
existing theme switcher and language selector.

Also completes three project renames throughout the shared source:
MediaAnalyzer -> ContentScanner, MediaTools -> CraftStudio, and
LoggingServer -> OmniLogger, across the Go media-backend service enum,
webui AppId/app-config/project-icons, renamed feature components, and
the sync-consumers.ps1 consumer list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 22:50:38 +02:00
Gabriel20xxandClaude Sonnet 5 ee59571552 Rename ProjectConfigurator, restructure Projects workspace, retire MediaCollection naming
- Rename MediaConfig -> ProjectConfigurator throughout; drop the Parameters
  tab/page; rename the Mounts tab to Projects and restructure it into three
  sections: Central services, Main services, Third-party services
- Add a self-describe contract (GET /api/info returning name/tabs/mountTypes)
  and a server-side discovery proxy (POST /api/discover-service) so adding a
  main service only requires a URL
- Add ProjectConfigurator HA: multiple instances now sync their settings with
  each other (GET /api/settings/export, POST /api/settings/sync, a periodic
  background puller), last-write-wins per key by updated_at
- Add a generic, project-agnostic file-storage API on CarrierNode
  (GET/POST/DELETE /api/mount/{project}/{type}[/*]) driven by the same
  configured_mounts data the Projects workspace already writes, usable by any
  registered project, not just the media family
- Add last_login_at tracking to the shared auth Store/User (schema, queries,
  UpdateLastLogin) and surface it through the shared web-ui ManagedUser type
  and UserManagement component
- Retire the "MediaCollection" name: Go module -> repos.gfranz.ch/Gabriel20xx/shared/media-backend,
  binary -> mediabackend, session cookie default -> "session", media-webui
  merged into webui, media-shared-assets renamed to legacy-assets and pruned
  to the one file MediaDesktop still uses

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-04 15:02:16 +02:00
Gabriel20xxandClaude Sonnet 5 bdcdfc2dbe Add Central/AuthGuard to sync-consumers.ps1
AuthGuard grew its own web UI (@gabriel20xx/web-ui-based admin dashboard),
so it now vendors the full shared snapshot the same way every other
consumer with a frontend does, not just shared/backend.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 17:38:22 +02:00
Gabriel20xxandClaude Sonnet 5 170076ef4d Support a per-project destination folder in sync-consumers.ps1
The engine/media-backend family (KioskDisplay, MediaAnalyzer,
MediaTools, MediaViewer, MediaServant, ModerationHub,
ProjectConfigurator) mounted this same snapshot via a git submodule at
'engine' instead of 'shared' - which broke in CI, since Gitea Actions'
injected token doesn't cover cross-repo submodule auth for a private
repo. Converting them to the same vendored-copy pattern every other
consumer already uses needed the destination folder name to be
per-project instead of hardcoded to 'shared'.

Also adds MediaDesktop, which previously tried to check out this repo
as a sibling directory in CI (outside the job's workspace root - Gitea
Actions rejects that outright) instead of vendoring a copy.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 11:21:21 +02:00
Gabriel20xxandClaude Sonnet 5 7c813cce9e Remove deleted MediaCollection from sync-consumers.ps1's consumer list
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 22:32:10 +02:00
Gabriel20xxandClaude Sonnet 5 acde180086 Fold MediaEngine (media-backend, media-webui) into this repo
Per owner decision: MediaEngine (the Media product family's Go backend
and SvelteKit frontend, previously its own repo referenced by 7 thin
service repos via git submodule) is folded directly into shared/ as
media-backend/ and media-webui/, rather than staying separate.

media-backend/go.mod's replace directive now points at ../backend (a
true sibling within this repo) instead of a vendored ../shared/backend
copy, since there's no more nested vendoring - it's the real thing.

Also moved MediaEngine's own CI (media-backend-lint.yml,
media-backend-tests.yml) and dev tooling scripts (scripts/media/*,
audit/lint/enforce scripts for the media-backend+media-webui content),
fixing their path assumptions for the new layout, and dropped
scripts/media/sync-shared.mjs (confirmed dead code, and now doubly
obsolete since there's no more vendored shared/ subfolder for it to
check). Added media:* script aliases to package.json for the moved
tooling, namespaced to avoid colliding with this repo's own scripts.

Also fixed sync-consumers.ps1's workspace-root resolution to walk up
until it finds a directory containing both Original/ and Forks/,
instead of assuming shared/ is always a direct child of the workspace
root - it broke when shared/ moved from Web/shared to Web/Central/shared
earlier in this same restructuring. Removed the now-obsolete
Original/MediaEngine entry from its consumer list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-31 22:06:29 +02:00
Gabriel20xx 91f372612a Fix stale consumer project path for HordeWorker
The folder was renamed from HordeWorkerReGen to HordeWorker; the sync
script's project list still pointed at the old name, so that consumer
silently stopped receiving shared-package syncs.
2026-08-29 12:42:48 +02:00
Gabriel20xx fc0e376df8 feat: add NotificationStack component and notify API for toast notifications 2026-08-27 13:32:13 +02:00
Gabriel20xx 61bed33c8a Reading additional input from stdin...
OpenAI Codex v0.147.0
--------
workdir: /workspace/Personal/Web/shared
model: gpt-5.6-luna
provider: openai
approval: never
sandbox: read-only
reasoning effort: xhigh
reasoning summaries: none
session id: 019febcc-0ed6-7d22-87cb-e6ad13926ec6
--------
user
Write a concise git commit message for the following diff. Use the Conventional Commits style (e.g. "feat: ...", "fix: ..."), a summary line under 72 characters, optionally followed by a blank line and up to 3 short bullet points for notable details. Output only the commit message itself - no preamble, no explanation, no markdown fences.

diff --git a/scripts/sync-consumers.ps1 b/scripts/sync-consumers.ps1
index fd6591f..1895c21 100644
--- a/scripts/sync-consumers.ps1
+++ b/scripts/sync-consumers.ps1
@@ -103,7 +103,12 @@ function Convert-ToConsumerWebUiPackage {

     $manifest = Get-Content -LiteralPath $PackagePath -Raw | ConvertFrom-Json
     $manifest.files = @('src', 'README.md')
-    $manifest.dependencies = [pscustomobject]@{}
+    if ($null -ne $manifest.dependencies) {
+        $designTokensDependency = $manifest.dependencies.PSObject.Properties['@gabriel20xx/design-tokens']
+        if ($null -ne $designTokensDependency) {
+            $manifest.dependencies.PSObject.Properties.Remove('@gabriel20xx/design-tokens')
+        }
+    }
     $manifest.svelte = './src/index.ts'
     $manifest.types = './src/index.ts'

@@ -133,6 +138,7 @@ function Convert-ToConsumerWebUiSources {
     if (Test-Path -LiteralPath $stylesPath) {
         $styles = Get-Content -LiteralPath $stylesPath -Raw
         $styles = $styles.Replace("@import '@gabriel20xx/design-tokens/theme.css';", "@import '../../../design-tokens/theme.css';")
+        $styles = $styles.Replace('@import "@gabriel20xx/design-tokens/theme.css";', "@import '../../../design-tokens/theme.css';")
         Write-Utf8NoBom -Path $stylesPath -Content $styles
     }

warning: Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager. See the sandbox prerequisites: https://developers.openai.com/codex/concepts/sandboxing#prerequisites. Codex will use the bundled bubblewrap in the meantime.
codex
fix: preserve consumer dependencies and rewrite token imports

- Remove only the design-tokens dependency
- Support single- and double-quoted CSS imports
tokens used
10,345
fix: preserve consumer dependencies and rewrite token imports

- Remove only the design-tokens dependency
- Support single- and double-quoted CSS imports
2026-08-10 13:10:54 +00:00
Gabriel20xx da1cdca3b2 Rename shared code references 2026-08-06 16:55:51 +02:00
Gabriel20xx 9a79e6f649 Add automatic SharedCode consumer synchronization 2026-08-06 16:09:41 +02:00