shared/backend/auth (the mediaauth merge) imports github.com/go-chi/chi/v5
directly now; go.sum needs an entry for it even though this project never
uses chi itself.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The previous commit's edit tool wrote these two files with CRLF endings,
turning a 4-line content change into a full-file diff. Convert back to
LF to match the rest of the codebase; no content change.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The local shadcn-style button (default h-9, sm h-8, icon h-9) and select
trigger (h-9) rendered shorter than the search input elsewhere, and
shorter than the shared design system's 2.5rem controls. Collapse all
size variants to h-10 (2.5rem), keeping their padding/font-size
differences.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The select's value was coerced to a string via String(pageSize) while
the <option> values are numbers. Svelte 5 matches a non-bound <select>
value against each option's stored value with Object.is, so "24"
never matched 24 and the dropdown rendered with no option selected.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Swaps the custom paginator.svelte (used on the lists overview and list
detail pages) for the shared @gabriel20xx/web-ui Pagination component,
matching the workspace-wide pagination policy. Data fetching and
client-side slicing logic are unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The shared component library's --sc-primary/--sc-accent/--sc-ring tokens
were only remapped onto CollabTable's own brand color inside AppShell's
.collabtable-shell scope, so anything rendered outside it (the login/setup
AuthPage, the Settings/Profile dialogs) fell back to the shared library's
generic default blue instead of this project's own blue brand. Move that
bridge to app.css so it applies globally, with high-specificity `html`
selectors so it reliably wins over shared-styles.css regardless of import
order.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Background, surface, border, text, secondary, danger, success, and warning
tokens now reference the shared --sc-* custom properties (Core/shared's
design-tokens palette) instead of hardcoded hex, so this project's neutrals
stay consistent with the rest of the workspace. Primary/accent/ring keep
this project's own brand color, unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds the receiving end of ProjectConfigurator's core-services push
(PUT /api/core-services/internal, X-Internal-Auth-gated) via the shared
coreconfig package, so this service's AUTHGUARD_URL/CARRIERNODE_URL env
vars become just the bootstrap/fallback value instead of the permanent
source of truth. authclient.Client gains a concurrency-safe SetBaseURL
so a later push retargets it in place with no restart.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Updates the default PORT across backend, Dockerfile, README docs, the
Android client's fallback URLs/placeholders, and the frontend dev proxy.
Touched files also pick up line-ending normalization (CRLF->LF) with no
other content changes.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds a persisted per-browser preference to widen page content to full
browser width, alongside the existing theme switcher and language
selector reachable from the header profile dropdown's Settings entry.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The configured_central/main rename to CarrierNode only ran when both
lists were still empty, so an already-populated list kept the old
MediaServant entry and gained a duplicate CarrierNode one. Also
migrate the per-project JSON blobs (labels, login, mounts, tab meta)
keyed by the old name so their data isn't orphaned.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Shared web-ui package already dropped this in a prior sync; this app's
layout was still wiring up the removed onAdmin prop and AdminDialog.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
GET /api/info reports name/tabs/mount types (empty - state lives in Postgres,
no shared file mounts) so ProjectConfigurator's Projects workspace can
register this instance from just a URL.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Reformat the new scheme-detection test cases with `ruff format` (line
length) so `ruff format --check .` passes in consumers that lint the
whole repo, e.g. Heretic/HordeWorker's CI.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
A bare host:port (e.g. a LAN AuthGuard reachable only over plain HTTP)
was always defaulting to https, so a TLS handshake against a plain-HTTP
AuthGuard failed at the transport level. Now a loopback, RFC1918/RFC4193
private, or link-local host (or a .local name) defaults to http instead;
an explicit http:// or https:// is still always honored as-is.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Remove the outer horizontal padding insetting cards away from the
title card's edges on both pages, and wrap the overview page's
search/sort/view toolbar and paginator in cards to match the rest
of the app.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replaces locally-duplicated session-cookie handling, input
normalization, and AuthGuard-error translation with
shared/backend/authproxy, shared with Bitmagnet/GameStream/media-backend
and others doing the same AuthGuard-proxy pattern.
Accounts are centralized in AuthGuard now, so this project's own "first
launch, create the admin account" flow needs to know whether AuthGuard
already has one - not just whether *this* project's local setup has been
claimed. A fresh instance pointed at an AuthGuard that already has a
superadmin (created via AuthGuard's own web UI, or a sibling project's
setup) was incorrectly still showing its own create-account form.
Both the status check and the setup/registration handler now also consult
AuthGuard's GET /api/setup-status (via the vendored authclient's new
SetupStatus method) before deciding: if AuthGuard already has an account,
show the login screen instead, and reject a setup attempt that reaches the
handler anyway (e.g. a stale page) the same way an already-claimed local
setup is rejected.
Also updates the vendored shared/backend/authclient to add PublicUser's
totp_enabled field (AuthGuard has reported it for a while; the client
just hadn't picked it up).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This project's own "break glass" admin reset never actually touched the
centralized AuthGuard account - it only printed a local one-time code and,
on confirm, wiped this project's local "setup completed" flag so its own
setup screen reappeared, leaving the real AuthGuard account untouched and
orphaned from this project's perspective. AuthGuard now has its own proper
superadmin reset in its web UI, which is where this recovery path belongs
going forward - having every integrated project also show a "Reset admin
account" link that does something different and doesn't actually solve
"I forgot my AuthGuard password" was confusing and redundant.
Removes the backend reset handlers, their routes, the local ResetManager
field/init, any local cleanup method that only existed to serve them, and
the frontend API calls plus the onRequestReset/onConfirmReset wiring that
made the shared AuthPage component's reset link appear.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Brings this repo's README in line with a shared house style (Tech
Stack table, Repository Layout, Configuration table, Quick Start,
Development, Testing, CI/CD) and fixes staleness accumulated since it
was last written - outdated auth model descriptions, stale directory
names, dead references to removed code, and CI details that no longer
matched the actual workflow files.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same pattern as GameStream (commit 6a46007), adapted for CollabTable
being genuinely multi-user (not single-admin): admin user management
(list/create/update/delete, role reassignment, superadmin protection)
is fully proxied to AuthGuard, which already enforces the same rules
CollabTable checked locally. Cookie forwarding, no local session token,
AUTHGUARD_URL optional (unset = auth fully disabled), transport
failures always surface as errAuthGuardUnavailable rather than ever
letting a request through - proven with live tests against a closed
socket.
CollabTable's device-sync API token feature (separate from browser
sessions) is deliberately left local-only regardless of AUTHGUARD_URL,
keyed by a new currentUserID helper (AuthGuard's id when enabled, the
shared placeholder id 0 when disabled) - a real, functional token
either way, not faked data.
Real bug found and fixed: api_tokens.user_id had a hard FK into the
local auth_users table, which would reject new tokens once accounts
stop being written locally. Dropped the now-invalid FK.
Known, accepted gap (same as GameStream): self-service profile editing
for non-admin accounts is lost, since AuthGuard only exposes an admin
endpoint, no self-edit. TOTP QR issuer branding now comes from AuthGuard
rather than CollabTable.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Sync shared web-ui AdminDialog and header/profile/settings dialog updates
- Add a dedicated admin entry to the header profile dropdown, admin-only
- Move user-management settings from SettingsDialog/ProfileDialog into AdminDialog
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- The dashboard and list-detail page roots' own p-4 stacked on top of
the shared page title box's margin-bottom (padding never collapses
with margin) - drop the top half so there's a single, consistent gap.
- Remap the shared component library's --sc-* tokens onto this app's
own --color-* palette so the header, page title box, dialogs, and
buttons all render in-brand instead of the generic default theme.