Commit Graph

12640 Commits

Author SHA1 Message Date
Georges-Antoine Assi
ca18cdcd3a refactor(v2): simplify the RChip ellipses story frame
pr-ready step 3 (simplify): bind the cell frame as a style object and
drop the outline that doubled the dashed border.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 16:08:29 -04:00
Georges-Antoine Assi
678fa80cdd fix(v2): address code-review findings on RChip truncation
pr-ready step 2 (code-review xhigh --fix): keep chips from shrinking in
non-wrapping flex rows, keep the close button its full size, and tidy
the typography stories.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 16:05:54 -04:00
Stuart Anderson
87f16c852c bug/4674 comment explains function 2026-09-22 08:41:30 -05:00
Stuart Anderson
08675888c8 bug/4673 improve storybook coverage for RChip.vue 2026-09-22 08:36:30 -05:00
Stuart Anderson
fc07fc1db7 bug/4674 direct comments and extra constrained story 2026-09-22 08:36:26 -05:00
Stuart Anderson
cbaf9afb9e bug/4673 descenders in chips are displayed 2026-09-22 08:36:22 -05:00
Georges-Antoine Assi
763d600bf6 Merge pull request #4643 from andest01/chore/dpdm-circular-deps
fix(frontend): eliminate import cycles and gate them with eslint
2026-09-22 09:33:51 -04:00
Georges-Antoine Assi
e4b341d233 Merge remote-tracking branch 'origin/master' into chore/dpdm-circular-deps
# Conflicts:
#	docs/FRONTEND_ARCHITECTURE.md
2026-09-22 08:59:05 -04:00
Georges-Antoine Assi
728354c157 Merge pull request #4609 from rommapp/claude/css-prefixing-dev-and-prod
build(frontend): prefix CSS in dev as well as production
2026-09-22 08:52:20 -04:00
Georges-Antoine Assi
2d2a8108d5 Merge pull request #4602 from rommapp/claude/njs-vm-init-notice-c4d538
fix(docker): move the bases to Alpine 3.24 and nginx 1.30.5
2026-09-22 08:40:10 -04:00
Georges-Antoine Assi
9a7680778a test(nginx): guard the njs startup notice with a version floor
Addresses Greptile's review: nothing stopped a later NGINX_VERSION pin from
reintroducing the "js vm init njs" notice this PR removes.

njs 0.9.7 dropped the notice, but the njs build is not a function of the nginx
version alone: nginx's apk repo published 1.30.0 against njs 0.9.6 before
rebuilding it against 0.9.7 and 0.9.8, so 1.30.1 is the first release that
never logs it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 08:23:25 -04:00
Georges-Antoine Assi
e2a1a08ce8 Merge branch 'master' into claude/njs-vm-init-notice-c4d538
master refreshed the Alpine 3.23 digest and added the python-runtime
stage; this branch moves the same pins to Alpine 3.24 and nginx 1.30.5.
Kept 3.24 and re-resolved every tag to its current manifest-list digest,
so the base images carry the patches master was reaching for.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 08:19:43 -04:00
Georges-Antoine Assi
a5b51e772a Merge pull request #4592 from rommapp/claude/harden-image-and-workflow-permissions
fix(security): patch OS packages in the published image and scope workflow permissions
2026-09-22 08:13:40 -04:00
Georges-Antoine Assi
93681f459c Merge pull request #4596 from LoneAngelFayt/streaming-patches-4
fix(streaming): put every container in a pool, and reach later pools by key
2026-09-22 08:09:52 -04:00
Georges-Antoine Assi
836d88ad64 Merge pull request #4575 from andest01/chore/vite-config-ts
chore: expand ts typecheck to `frontend/scripts/**/*.ts`
2026-09-22 08:09:49 -04:00
Georges-Antoine Assi
9acdca80f1 docs(skills): drop em-dashes from the frontend check list
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 08:05:57 -04:00
Georges-Antoine Assi
b2d5ffb4b4 chore: split the scripts typecheck into its own script
Keep `typecheck` to vue-tsc and move the tsconfig.node.json pass to
`typecheck:scripts`, run as a separate CI step so a failure names the
pass that broke. Drop the JSON-invalid comments from tsconfig.node.json.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 07:41:36 -04:00
Sam Dornan
9d5c38926b fix(router): re-read the rom on every entry to the details route (#4685) 2026-09-21 23:17:33 -04:00
Georges-Antoine Assi
c845f3356a Merge pull request #4668 from rommapp/renovate/github-actions
chore(deps): update astral-sh/setup-uv action to v10.2.0
2026-09-21 21:24:34 -04:00
Georges-Antoine Assi
28417a2967 Merge pull request #4667 from rommapp/claude/draft-announcement-skill
docs: add a draft-announcement skill
2026-09-21 21:24:13 -04:00
Georges-Antoine Assi
f61f900021 docs: fence the announcement skeletons, cover caution callouts
The skeletons were loose markdown, so markdownlint read the `<Feature>`
placeholders as inline HTML and the repeated `## Community news` as duplicate
headings. Fencing both shapes as literal text settles that and marks exactly
what gets copied into Discord.

The section shape now carries the upgrade-warning slot the bullet shape had,
and the notes extraction pulls `[!CAUTION]` alongside `[!WARNING]`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 21:21:25 -04:00
Sam Dornan
552cf7c213 fix(config): show folder mappings whose folder name is not lowercase (#4676) 2026-09-21 19:52:40 -04:00
renovate[bot]
80b8335139 chore(deps): update astral-sh/setup-uv action to v10.2.0 2026-09-21 20:06:09 +00:00
Georges-Antoine Assi
24bf1cc25d docs: add a draft-announcement skill
Codifies the house format of the Discord release announcements from the
last three years: the timely hook, the upgrade warning, two to five
features in prose with the tail as bullets, community news, and the
pointer to the release notes.

The community news is the half of an announcement no diff contains, so
the skill interviews the maintainer for it one step at a time, and
refuses to invent a contributor, an app, a milestone or a handle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 15:26:33 -04:00
Georges-Antoine Assi
5c7e3a751a Merge pull request #4659 from rommapp/claude/remove-aikido-badge
docs: drop the Aikido badge from the readme
5.3.0
2026-09-21 07:12:43 -04:00
Georges-Antoine Assi
44962cd046 docs: drop the Aikido badge from the readme
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 07:05:42 -04:00
Georges-Antoine Assi
b065fc7bc1 fix(frontend): encode the download path segment exactly once
`getDownloadPath` encoded a selected file name but left `fs_name` raw,
then `getDownloadLink` ran `encodeURI` over the whole result. Three
things went wrong:

- a selected file name came back double-encoded, so the browser saved
  `Game%20(USA).zip` instead of `Game (USA).zip`
- `encodeURI` also hit the query string, so `file_ids=29%2C30` reached
  the backend as one value and `int()` raised on it: copying a link for
  a multi-file selection produced a 500
- a raw `#` in `fs_name` started the fragment, truncating the path
  before the request left the browser

Encode the segment once in `getDownloadPath` for both branches and let
`getDownloadLink` only prepend the origin.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 11:43:30 -04:00
Georges-Antoine Assi
0fcf674045 build(frontend): detect import cycles with eslint instead of dpdm
dpdm cannot resolve or parse Vue SFCs, so it saw none of the ~519
components: `.vue` imports were dead ends and the graph stopped at the
first one. `import-x/no-cycle` runs on the ESLint config that already
parses `.vue` with type awareness, and Trunk already runs ESLint in CI,
so the check needs no separate tool, config file or CI step.

Lazy route components make the router reachable from the views it
renders, so dynamic edges are excluded; without that the rule reports
390 files instead of the real 3. Those 3 are the frozen-v1 `src/console`
cycles dpdm also found, so the two tools agree on today's graph and the
swap is not a cleanup.

Drop the `circular` script, `dpdm.config.ts`, the `@dpdm-ignore`
directive and dpdm itself.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 11:07:53 -04:00
Georges-Antoine Assi
b4cd7306fc test(frontend): give the rom fixture one home
review-polish pass.

Both `src/utils` test files built the same rom literal, so move the typed
factory into `rom.fixtures.ts` and import it from each. Tighten two comments
that had grown past the two-line limit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 10:40:51 -04:00
Georges-Antoine Assi
b9163d46b7 refactor(frontend): collect the payoff of the routeNames extraction
simplify pass.

`v2/router/routes.ts` hand-maintained 34 route-name string literals and a
comment saying ROUTES could not be imported without a cycle. `routeNames.ts`
is a leaf, so that constraint is gone: key the registry off ROUTES and type
it with the new `RouteName`, which turns a mistyped key into a compile error
instead of a silent fall-through to the 404 view.

Drop the unreachable chunk-load guard in the 401 interceptor: `main.ts`
imports the router statically, so it is in the entry chunk and the dynamic
import resolves from memory. Restate why that import is lazy.

Take `SimpleRom` instead of re-narrowing it, reuse the import specifier
already in `router.ts`, drop `circular: true` (already the default), and
inline the test roms so the factory is not duplicated across two files.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 10:36:14 -04:00
Georges-Antoine Assi
01be1850b9 fix(frontend): widen the dpdm gate and harden the 401 redirect
code-review pass.

dpdm cannot parse Vue SFCs, so the four entry points only reached 133 of
the frontend's modules: every `.vue` import was an unresolved dead end and
traversal stopped there. Make every `.ts` module an entry instead, which
brings the analysed graph to 771 modules. Frozen v1 `src/console` is carved
out because it still holds cycles we are not refactoring.

Take `ROUTES` and `isAuthExemptRoute` from the leaf module statically, and
keep only the router instance lazy. Guard the dynamic import so a failed
chunk load still rejects with the original AxiosError.

Move the `getDownloadPath` tests next to the module that now owns them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 10:28:02 -04:00
Sam Dornan
8e61199d7b fix(security): keep CSRF in force when a session cookie is present (#4648) 2026-09-20 10:01:56 -04:00
Sam Dornan
d766604359 feat(frontend): tie gallery sorting to URL query params, add a grid sort-axis selector (#4641) 2026-09-19 17:37:56 -04:00
Stu Anderson
b2329f91f7 Merge pull request #1 from andest01/fix/api-lazy-router-dpdm
fix(frontend): break static import cycles for dpdm gate
2026-09-19 16:37:23 -05:00
Stuart Anderson
76309225c1 fix(frontend): break static import cycles for dpdm gate 2026-09-19 16:24:34 -05:00
Stuart Anderson
4dcc640e26 chore: remove comments per constitution 2026-09-19 15:59:18 -05:00
Stuart Anderson
d476723241 chore: surface circular dependencies via dpdm 2026-09-19 15:42:26 -05:00
Sam Dornan
4ffc7c5ce1 style: apply the formatting requires-python already implies (#4638) 2026-09-19 12:33:45 -04:00
Georges-Antoine Assi
57e6462db8 Merge pull request #4634 from rommapp/claude/patcher-zip-bomb-budget
fix(patcher): budget a zip member as it is extracted
2026-09-19 09:29:12 -04:00
Georges-Antoine Assi
3dc59f46ea Merge pull request #4636 from rommapp/claude/document-viewer-sanitization-comments
docs(files): state what actually guards an inline HTML document
2026-09-19 09:27:58 -04:00
Georges-Antoine Assi
2645d47217 test(patcher): type the archive-reader fake against the real signature
Annotating it to `read_zip_archive_files`'s own parameters and return type
pins the contract the fake stands in for, rather than accepting anything
through *args.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 09:23:19 -04:00
Georges-Antoine Assi
a806f8addd Merge pull request #4633 from rommapp/claude/upload-platform-visibility
fix(upload): mask a hidden platform on the chunked upload start
2026-09-19 09:22:18 -04:00
Georges-Antoine Assi
311534c6f9 Update backend/utils/media_types.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-09-19 09:20:04 -04:00
Georges-Antoine Assi
98fa14b010 Update backend/tests/endpoints/test_permissions_visibility.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-09-19 09:17:13 -04:00
Georges-Antoine Assi
5361dfee4a docs(files): state what actually guards an inline HTML document
Two comments described HTML documents as sanitized on ingest. Nothing
sanitizes them: the only `sanitize_*` helpers cover filenames and usernames,
and `is_html_document_file` is consulted at serve time only. The sandboxing
CSP and the viewer's iframe sandbox are the whole defence, so describe them
that way, and pin the header with a test before someone drops it believing
the sanitizer exists.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 08:48:39 -04:00
Zach Clendenen
0c67e50e13 test(streaming): pin the desktop heartbeat's named container and its ended claim drop (Greptile review) 2026-09-18 20:15:13 -05:00
Georges-Antoine Assi
3e1779f119 fix(patcher): budget a zip member as it is extracted
The size checks around the extraction read `ZipInfo.file_size`, which is
whatever the uploader put in the header, and the check on the finished file
only ran once the member had been written in full. An archive whose method
zipfile cannot decode goes through 7zz, which decompresses it itself and
ignores that header, so a small declared size passed the pre-check while the
real member filled the disk.

Count the bytes as they are written and stop at the cap, which makes the
check on the finished file redundant.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 20:57:56 -04:00
Georges-Antoine Assi
0d0dce6e79 fix(upload): mask a hidden platform on the chunked upload start
`start_chunked_upload` loaded the platform without checking the caller can
see it, so a user with `roms.write` restricted by a permission group could
write a file into a platform folder hidden from them (a later scan ingests
it), and could tell a hidden platform from a missing one by the response.

Answer both cases identically so neither the write nor the enumeration is
possible.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 20:54:59 -04:00
Georges-Antoine Assi
d7f19eefeb Merge pull request #4626 from andest01/fix/storybook-theme-canvas
chore(storybook): light and dark theme switch work in storybook
5.3.0-beta.1
2026-09-18 16:47:38 -04:00
Georges-Antoine Assi
0f7f10ccbe Merge pull request #4627 from rommapp/dependabot/npm_and_yarn/frontend/md-editor-v3-6.5.4
chore(deps): bump md-editor-v3 from 5.8.5 to 6.5.4 in /frontend
2026-09-18 16:43:58 -04:00