Commit Graph

18 Commits

Author SHA1 Message Date
Georges-Antoine Assi
b037276bfc Add Playwright e2e cover for permission gating
The #3954 fix is about what a read-only user can SEE, which the Vitest
specs can't reach: visibility depends on grants the backend resolves and
`useCan` projects. These drive a real instance instead.

  frontend/e2e/rom-actions.spec.ts        ⋯ menu items + divider collapse
  frontend/e2e/profile-role.spec.ts       no self-editable role control
  frontend/e2e/game-media-files.spec.ts   Media/Files upload + delete

Every spec asserts both sides -- absent for `e2e_viewer`, present for
`e2e_admin` -- so it can't pass against a page that failed to render, and
notices a fix that over-hides. Verified by reverting the fix: 8 of 15 fail,
and the 6 admin-side guards stay green.

`backend/tools/seed_e2e_users.py` seeds the two fixture users idempotently.
Specs live in e2e/ so Vitest's src/** and test/** globs skip them, and
tsconfig now covers them so they're typechecked.

Not wired into CI: that needs a backend, a database and a library fixture
in the runner.
2026-07-26 09:07:14 -04:00
zurdi
9f6138d010 Merge branch 'master' into chore/frontend-v2
Adopt master's ROM schema design (sibling_roms + files, batched
get_files_for_roms / get_siblings_for_roms) while preserving the v2-branch
features master lacks: per-user is_main_sibling on siblings and audio_meta
on rom files.

Conflict resolution:
- responses/rom.py: keep master's sibling_roms/files fields; re-graft
  is_main_sibling via SiblingRomSchema.from_rom(rom, is_main_sibling=...);
  restore the eager-relationship fallback in
  SimpleRomSchema.from_orm_with_request (None sentinel) so the v2
  /{id}/simple endpoint still returns siblings/files.
- roms_handler.py: get_siblings_for_roms now left-joins RomUser and returns
  (Rom, is_main_sibling) tuples; keep both branch and master file helpers.
- drop the redundant branch-only sibling_ids field and
  get_sibling_data_for_roms.
- generated types resolved to match (sibling_roms + files; RomFileSchema
  keeps audio_meta and gains archive_members).
- update v2 components and the RelatedGameCard mock to read sibling_roms.
- fix stale exclude={"siblings"} -> "sibling_roms" in scan emit payloads.
- re-chain the audio_meta migration as 0083 (after master's 0082) to keep a
  single Alembic head.
- package.json: union of branch tooling + master dependency bumps; lock
  regenerated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 01:19:55 +02:00
Georges-Antoine Assi
96ac7ac5e8 only add new cores in nightly 2026-05-30 20:53:52 -04:00
zurdi
cc2556da7b Refactor code structure for improved readability and maintainability 2026-04-22 09:57:42 +00:00
Georges-Antoine Assi
11e383cdf5 update tsconfigf 2025-09-04 08:41:04 -04:00
Georges-Antoine Assi
e61a36b3bb use rdialog for lightbox 2025-08-25 18:38:06 -04:00
Spencer Kuzara
529b145a46 initial console view 2025-08-21 20:40:11 +09:00
Georges-Antoine Assi
a7a199ebc2 Remove old/unused packages 2025-01-26 21:49:27 -05:00
zurdi
ba329d54d5 fix: typescript check for locales index 2024-12-10 10:45:32 +00:00
Georges-Antoine Assi
c7878eea28 set more config options 2024-07-29 23:17:45 -04:00
zurdi
ac6975a58c fixed pinia router typed 2024-07-02 12:23:41 +02:00
Georges-Antoine Assi
7f8f8e6a58 fix most eslint errors 2024-06-02 11:25:59 -04:00
Georges-Antoine Assi
fd752ddf90 small cleanup fixes 2024-01-05 09:01:15 -05:00
Georges-Antoine Assi
cca2702ce3 get app working again 2024-01-02 21:03:37 -05:00
Georges-Antoine Assi
669190d2ba Complete components 2024-01-02 19:34:30 -05:00
Georges-Antoine Assi
10554adbba Start migrationt to ts frontend 2024-01-02 18:23:36 -05:00
zurdi zurdo
6a69530b45 roms gallery mock added 2023-03-09 18:14:32 +01:00
zurdi zurdo
03aac67f45 added vuetify to frontend 2023-03-09 01:56:22 +01:00