Commit Graph

14 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
Georges-Antoine Assi
ac8b2684d2 chore: add security-audit skill for vetting diffs
Adds a reusable skill that encodes a two-speed workflow (fast direct
sweeps plus fanned-out parallel deep review) for auditing a release tag
range or PR diff for malicious changes or security regressions: supply
chain, egress/exfiltration, auth/injection/traversal, CI/infra, and
commit provenance. Registered in the CLAUDE.md skills table.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 22:32:12 -04:00
Georges-Antoine Assi
aa28e9054b refactor(v2): reuse platform random-ROM i18n keys and guard stale nav
Point the collection random-ROM button and error snackbar at the
existing platform.random-rom* keys and drop the duplicate keys from
collection.json across all locales. Bail out of onRandomGame's
navigation if the active collection changes while a request is in
flight, so a pick started in one collection can't open a ROM after the
user has moved on.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 22:30:41 -04:00
Georges-Antoine Assi
27692ae212 chore(i18n): add linter enforcing alphabetically sorted locale files
Add check_i18n_sorted.py, which fails when any locale JSON file's keys
are not sorted alphabetically (recursively, so nested objects are
covered). Supports --fix to sort in place. Wire it into the i18n CI
workflow alongside the existing parity check, and sort all existing
locale files.

Generated-By: PostHog Code
Task-Id: 7cbf74de-6bf1-45c0-9c8e-c45f94119edc
2026-07-15 22:07:35 -04:00
Georges-Antoine Assi
41970d641b docs(claude): add PR linking and template conventions
Generated-By: PostHog Code
2026-07-05 08:13:02 -04:00
Georges-Antoine Assi
183894c180 Document backend/tools in repo-wide rules
Move the backend/tools note into the repo-wide rules section so it reads
as a standing convention rather than a backend command.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 22:03:28 -04:00
Georges-Antoine Assi
a25ca20721 Move Python dev tools into backend/tools
Relocate generate_test_data.py (from backend/scripts) and
generate_supported_platforms.py (from backend/utils) into backend/tools,
alongside the existing xml_diagnostics.py. Update their run-command
references and document backend/tools in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 21:57:34 -04:00
Georges-Antoine Assi
995a01981b tweaks 2026-06-22 22:46:18 -04:00
Georges-Antoine Assi
dfdf44f74c cleanup 2026-06-22 22:10:48 -04:00
Claude
5a9eda9eeb docs: split v2 constitution into skills, make CLAUDE.md holistic
Reorient the repo for agentic development by outside contributors.

- Rewrite CLAUDE.md from a frontend-v2-only constitution into a lean,
  holistic guide covering both stacks, the v1/v2 split, repo-wide rules
  (English, AI disclosure, branch/PR flow, Trunk, verification), a skills
  index, and a quick command reference.
- Extract the v2 constitution and add backend guidance as seven focused
  skills under .claude/skills/:
  - frontend-v2-components (tiers, file/SFC conventions, anti-patterns)
  - frontend-v2-theming (tokens, dual theme, zero-hex-literal policy)
  - frontend-v2-input (universal input + responsive viewport)
  - frontend-v2-patterns (errors, loading, sockets, persistence, forms,
    permissions, confirmations)
  - frontend-i18n (locale parity rule + check script)
  - backend-development (FastAPI/SQLAlchemy layering, scopes, migrations,
    OpenAPI -> frontend type pipeline, uv/pytest/trunk workflow)
  - pre-pr-verification (per-stack pre-PR gate mirroring CI)
- Track shared skills in git while keeping personal/local Claude config
  ignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012EigwEL43km8mskHjT6sjr
2026-06-23 01:49:08 +00:00
zurdi
f29e6e0ba6 chore: update token consumption guidelines and clarify Vuetify theme usage in CLAUDE.md 2026-06-17 10:01:26 +02:00
zurdi
da0961281a Implement responsive navigation layout with BottomNav and BreakpointBadge components 2026-06-05 15:09:26 +02:00
zurdi
fff902bf54 Refactor code structure for improved readability and maintainability 2026-05-28 08:31:46 +00:00
zurdi
941e4bb297 chore: generated front new types 2026-05-05 09:12:52 +00:00