Commit Graph
96 Commits
Author SHA1 Message Date
Claude Code 5745995a34 feat(web-ui): pass the media error to MediaPlayer onError
onError now receives the element's MediaError, so an app can tell an unsupported source (code 4,
MEDIA_ERR_SRC_NOT_SUPPORTED, as with AVI, WMV or ASF) from other failures. Handlers that take no
argument are unaffected.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-21 15:14:35 +01:00
Gabriel20xx 8701874efb feat(logshipper): support dynamic OmniLogger credentials
- Add per-service OmniLogger credentials to core config and update subscriptions.
- Follow config pushes and enforce entry and request size limits.
- Requeue batches after transient send failures.
2026-11-20 21:45:45 +01:00
Gabriel20xxandClaude Haiku 5.5 76bf5916fe fix(web-ui): fade MediaPlayer controls when the pointer is over the picture
Pointer movement and presses now count as activity anywhere inside the
player's box. The picture can sit on a canvas stacked above the frame,
where the pointer never reaches the frame's own elements, so the
controls did not fade back in. The autoHideControls doc comment now
describes the real default.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-20 21:24:40 +01:00
Gabriel20xx a8dce33dc5 feat: support controlled and customizable media playback 2026-11-19 00:03:37 +01:00
Gabriel20xx ba171a74a9 fix: omit empty video poster attribute 2026-11-18 20:09:24 +01:00
Gabriel20xx fc01c93aeb feat: expand media playback and security scan options
- Add resume, speed selection, and controls-free media mode
- Run Trivy daily and secrets/code scans weekly
- Document new MediaPlayer options in README
2026-11-15 19:24:19 +01:00
GabrielandClaude Haiku 5.5 60befcd883 feat(media): port MediaViewer ratings and visible-only tag counts
MediaViewer committed these changes to its vendored shared copy
(e83afad, ca8a89e) without upstreaming them, so the next shared sync
would have removed them from MediaViewer and broken its build.

Ported here as a three-way merge against 74942e5, the snapshot
MediaViewer last synced from:

- media.MediaRecord.Rating, read in FindMedia and returned by ToJSON,
  with the rating column added in migrate.go
- tagSuggestions counts media items through the library's visibility
  rules instead of raw media_tags rows
- MediaPlayer autoplayMuted prop (defaults to false, so existing
  callers are unaffected)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-13 17:46:55 +01:00
GabrielandClaude Haiku 5.5 74942e55f9 test(python-backend): restore test typing fixes and formatting
A later vendored sync reverted the test typing fixes from 23bd5b2 and the
line-length formatting from 50461c0, which fails the ty check in consumers
that run `ty check --error-on-warning`. Restore them:

- assert the narrowed upgraded/found values before use
- suppress the intentional _FakeDatabase argument mismatches with
  `# ty: ignore[invalid-argument-type]`
- reformat the long lines to the package's line-length of 100

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 14:38:14 +01:00
Gabriel20xx 75c08beec6 refactor(backend): rename mediacore package to media 2026-11-01 21:50:47 +01:00
Gabriel20xx b776bacd70 fix: overlay mobile navigation without shifting page content 2026-10-27 09:22:51 +00:00
Gabriel20xx 37a4a8e2ca fix: center mobile menu button in header row 2026-10-27 07:40:04 +00:00
Gabriel20xx 8ec0d89437 chore: update dependencies and exclude test fixtures from scans
- Bump Go, npm, and Jackson dependencies
- Configure Gitleaks and Semgrep to ignore test fixtures
2026-10-27 07:16:37 +00:00
Gabriel20xx b9c2365bca fix: hide lone nav items and improve primary text contrast 2026-10-26 14:12:39 +00:00
Gabriel20xx cb7a899c77 fix: keep the header full width in wide layouts
- Remove the wide-layout width override for `.sc-header`
- Add a patch changeset for `@gabriel20xx/web-ui`
2026-10-26 12:57:59 +00:00
Gabriel20xx add64ff180 refactor(auth): remove obsolete project restriction APIs
- Remove legacy project restriction schema and helpers
- Install Python test extras in CI
- Update the quality report status
2026-10-20 19:32:45 +00:00
Gabriel20xx f7819904b9 docs: record auth hash alignment and validation results 2026-10-20 15:26:58 +00:00
Gabriel20xx 22887fef03 ci: expand CI checks and make consumer sync opt-in
- Add Go, npm, Python, and Java validation to CI
- Run Go tests against PostgreSQL
- Record performance fixes in the report
2026-10-19 21:14:31 +00:00
Gabriel20xxandClaude Haiku 5.5 199a5efaef Fix high audit findings and port the hidden-media rule
Fixed findings from the audit reports (SECURITY, QUALITY, PERFORMANCE):
- P-001 · Unbounded per-session timing maps and no connection cap in the sync hub
- S-001 · Anonymous `PUT /access` switches off login for every guarded route
- S-002 · Malformed cookies crash the Node middleware and fail requests in Java
- S-004 · Anonymous `PUT /sync` writes unvalidated JSON into shared session state

Also includes the pre-existing uncommitted changes in web-ui, README, shared-styles and the .changeset files, as the owner asked.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-19 07:47:10 +00:00
Gabriel20xx 7fd2f14f91 refactor!: remove UserManagement and internalize media controls 2026-10-16 16:27:34 +00:00
Gabriel20xx 6be3f90afa chore: remove legacy assets package and CSS enforcement script 2026-10-15 13:52:39 +00:00
Gabriel20xx 0783b74da7 feat: assign custom roles in user management 2026-10-13 18:08:42 +00:00
Gabriel20xx e1805c8fc3 fix: remove excess top padding on small screens 2026-10-09 14:29:31 +00:00
Gabriel20xx 52316e99a2 refactor(web-ui)!: remove PageHeader and AppShell integration 2026-10-08 12:57:31 +00:00
Gabriel20xx c7a3796f26 fix: improve notification stacking and text wrapping 2026-10-03 10:39:08 +00:00
Gabriel20xx 58b40fa340 style: stack section titles and tighten subtitle spacing 2026-10-02 08:43:16 +00:00
Gabriel20xx 64607f7e7a Fix ty suppression for auth router 2026-09-28 22:28:53 +02:00
Gabriel20xx db14c02558 Adjust shared media player controls 2026-09-25 11:28:19 +02:00
Gabriel20xx 44518b955e Fix shared media controls auto-hide 2026-09-24 20:14:21 +02:00
Gabriel20xx 356b43b59e Share custom media player controls 2026-09-23 06:00:15 +02:00
Gabriel20xx 764593254e feat: add shared media player components 2026-09-23 05:35:28 +02:00
Gabriel20xx b85601ae32 fix: standardize startup database retries 2026-09-23 04:56:32 +02:00
Gabriel20xx c743ee7f5b fix-wide-header 2026-09-23 15:41:46 +02:00
Gabriel20xx 8bbaf3c70b Format Python backend sources 2026-09-18 13:11:49 +02:00
Gabriel20xx 87cb39c04c feat: allow project selection when creating users 2026-09-17 00:15:19 +02:00
Gabriel20xx 51eef30971 feat: honor project login requirement in shared auth 2026-09-17 00:14:56 +02:00
Gabriel20xx 78067cc890 feat: use dropdown for primary color setting 2026-09-16 23:58:00 +02:00
Gabriel20xx 94a5c0b9ae fix: make wide page preference affect shared shell 2026-09-16 23:38:03 +02:00
Gabriel20xx ddcf2fd78d Show missing SECRET in auth status 2026-09-15 23:26:02 +02:00
Gabriel20xx 0e450d53de feat: migrate project secrets and user-scoped colors 2026-09-15 13:23:17 +02:00
Gabriel20xxandClaude Sonnet 5 dcfdb3d7af Make AuthGuard integration decouple from knowing the URL at startup
Every language's AuthGuard client/service used "no URL at construction"
to mean "auth disabled forever" - a live SetBaseUrl/setBaseUrl push from
ProjectConfigurator could only ever retarget an *already-enabled* client,
never turn one on for the first time. That made AUTHGUARD_URL a de-facto
required env var everywhere, even though ProjectConfigurator can push it
live after startup.

- Go: shared/backend/auth's New/NewWithStore now default to a "pending"
  Service (still enabled, fails closed until a URL arrives) instead of
  disabled when authGuardURL is empty; add an explicit Disabled() option
  for the genuine standalone/local-dev opt-out.
- Python/Node/Java: add setBaseUrl/set_base_url to each AuthClient so a
  client built with an empty base URL can be retargeted in place once a
  URL is pushed, the same as the Go client already supported.
- Python/Node: add a coreconfig module (Info/Store), the framework-agnostic
  equivalent of shared/backend/coreconfig (Go), for services in those
  languages to receive ProjectConfigurator's core-services push at all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 09:35:45 +02:00
Gabriel20xxandClaude Sonnet 5 c09957189f Add shared_backend.authproxy: FastAPI AuthGuard-proxy engine
Extracted from three near-identical bespoke implementations (Heretic,
HordeWorker, InfiniteVideo), each ~800-1000 lines hand-rolling the same
status/setup/login/logout/TOTP/admin-user-CRUD proxy around AuthClient.
build_auth_router(get_client, get_store) returns a ready-to-mount
APIRouter matching shared/backend/auth (Go)'s Service response shapes.
Gated behind an optional `fastapi` extra so the rest of this
framework-agnostic package is unaffected. 18 new tests, including a
regression test for a real bug this had (request models nested inside
build_auth_router silently broke under `from __future__ import
annotations`, misrouting every JSON body as a missing query param).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 21:27:54 +02:00
Gabriel20xxandClaude Sonnet 5 f58579290d Add project-key support to Python/Node/Java AuthClient equivalents
Mirrors Go's authclient.WithProjectKey: each client now accepts a
project_key/projectKey and sends it as X-Project-Key on every request,
so AuthGuard can enforce per-user project-access restriction for
consumers written in these languages too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 21:08:49 +02:00
Gabriel20xxandClaude Sonnet 5 663d498a03 Add per-user project-access restriction; generalize mediaauth into a unified auth proxy
shared/backend/auth: adds SchemaOptions.ProjectScoping and Store methods
(SetUserProjects/UserProjects/UserProjectsByUser/IsProjectAllowed,
SetKnownProjects/KnownProjects) backing AuthGuard's new per-user
project-access restriction.

shared/backend/authclient: Client can now identify its calling project to
AuthServer via WithProjectKey (sent as X-Project-Key on every request), so
AuthServer can enforce the restriction above per project.

shared/backend/mediaauth: generalized from a media-family-only package
into the one shared auth-proxy engine every AuthGuard-integrated project
should use. New accepts a projectKey; the login-required/setup-claim
storage it needs is now expressed as a small Store interface
(NewWithStore lets any project's own storage satisfy it, not just the
media family's shared `settings` table, which pgSettingsStore still backs
for existing callers). ManagedUpdateUser/ManagedDeleteUser now resolve
their {id} path param via chi.URLParam OR the stdlib 1.22+ ServeMux's
PathValue, so non-chi consumers work unchanged.

packages/web-ui: UserManagement gains an optional `projects` prop (a
per-account project-access picker), used only by AuthGuard's own admin UI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 12:16:17 +02:00
Gabriel20xx 6ac2fcefeb Normalize all button/input/select/dropdown heights to 2.5rem
Button size variants (sm 2rem, lg 2.875rem), sc-input/sc-select (2.6rem),
and the pagination controls (2.1rem/2.25rem) each rendered at a different
height, so any row mixing them (a select next to a button, a page-size
dropdown next to pagination buttons) was visibly misaligned. Textarea
keeps its own min-height since it's multi-line by design.
2026-09-13 10:47:00 +02:00
Gabriel20xxandClaude Sonnet 5 d4d2c49538 Fix mobile header menu button jumping position on toggle
The button's top offset was unset, so its absolute-position static
position was recomputed from the flex-wrap layout whenever .sc-nav
wrapped onto its own row on open, causing a visible vertical jump.
Pinning top to the header's mobile padding keeps it stationary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 23:03:36 +02:00
Gabriel20xxandClaude Sonnet 5 9f64bdc591 Fix pagination page-size dropdown showing blank on load
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>
2026-09-12 16:29:25 +02:00
Gabriel20xxandClaude Sonnet 5 a998844c11 Add missing sc-pagination styles for the shared Pagination component
The component's markup used sc-pagination* classes that had no
matching rules anywhere in the shared stylesheet, so it rendered
unstyled in every consumer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 23:40:08 +02:00
Gabriel20xxandClaude Sonnet 5 965910eecc Add pagination controls to UserManagement
Uses the shared Pagination component instead of rendering every
fetched user in one unpaginated list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 23:25:25 +02:00
Gabriel20xxandClaude Sonnet 5 87ac5ed25a Fix header profile dropdown About link showing default anchor color
The About item falls back to an <a> when no onAbout handler is wired.
The :visited fix only covered post-click state; the unvisited a:link
pseudo-class still beat the .sc-profile-menu-item class in specificity,
making the item look lighter/whiter than the button-based items until
clicked once.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 09:16:11 +02:00
Gabriel20xxandClaude Sonnet 5 8d7d6ee35b Add a 32-color curated brand palette reference
Documents the hue-spaced palette used to give every project in the
workspace a unique webui primary color: which colors are claimed by
which project, and which remain reserved for future projects.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 20:48:52 +02:00