Skip to content

feat(ports): browse the PC port catalog on Linux - #18

Closed
richmont wants to merge 1 commit into
integration/third-party-pluginsfrom
feat/linux-pc-port-catalog
Closed

richmont wants to merge 1 commit into
integration/third-party-pluginsfrom
feat/linux-pc-port-catalog

Conversation

@richmont

Copy link
Copy Markdown
Contributor

Summary

Phase 1 of the Linux PC ports catalog: browse the catalog on Linux, install still Windows-only.

  • The host starts PortsService on every platform and builds InstallDeps only where supports_installs() is true. Linux gets the catalog worker with no install runner; install, prepare_install, pick_executable and clear_cache keep returning Unsupported, and the plugin routes answer UNAVAILABLE before a job exists.
  • The sidebar shows PC ports on Linux with a Coming Soon badge, and App.tsx renders the destination. The catalog header carries a read-only banner. Signed-out and macOS builds keep their previous visibility.
  • Every entry stays browsable. Install is disabled with a dedicated ComingSoon reason even for a verified Windows-capable entry, and the detail pane lists the declared platforms plus the phase note. No setup, download, extractor or registration starts.
  • A persisted platform filter (All, Native Linux, Windows-only) is stored in the existing port_preferences.filters_json. Old rows read as All; an unknown value falls back to All instead of failing. The control appears only in the read-only Linux phase, so Windows filters are unchanged.

Windows behavior is unchanged: the same service configuration and install path as before. The existing Windows acceptance handoff (add-pc-port-catalog 10.1) stays with Lamarck; this PR does not reopen it.

Scope and remaining work

Tracked in openspec/changes/add-linux-pc-port-catalog (5/13 complete):

  • Done: 1.2 (read-only service), 1.3 (visibility and labels), 1.4 (persisted platform filter), 1.5 (blocked installs and detail note), 1.6 (i18n, mocks, component tests).
  • Open: 1.1 (asset-level availability in three states, design confirmation pending) and 1.7 (native packaged Linux check).
  • Phase 2 (native Linux installs) is not in this PR. The first intended native test port is DevilutionX (Diablo 1), which needs the player's own game files through guided setup.

Validation

  • cargo test --locked -p gamenode-app --lib — 1093 passed
  • cargo test --locked -p gamenode-core — 686 passed
  • cargo test --locked -p gamenode-platform --lib — 607 passed
  • pnpm --dir ui test --run — 1364 passed
  • cargo clippy -p gamenode-app -p gamenode-core -p gamenode-platform --all-targets -- -D warnings and cargo fmt --all -- --check — clean
  • openspec validate --strict add-linux-pc-port-catalog — valid
  • python3 scripts/check-plugin-conformance.py — ok

New regressions: read-only Linux service, ComingSoon block, platform filter (including legacy and unknown stored values), sidebar badge, catalog banner, and the app rendering the destination on Linux.

The catalog is useful before native installs exist, so a Linux build now
starts the ports service with the catalog worker and no install runner.
The sidebar shows the destination with a Coming Soon badge and the
catalog carries a read-only banner; every entry stays browsable.

Install is blocked with a dedicated reason on a platform without a
runner, even for a verified Windows-capable entry. The detail pane lists
the declared platforms and the phase note, and no setup, download or
registration starts.

Add the persisted platform filter All, Native Linux and Windows-only.
It lives in the existing filters JSON, so old rows read as All and an
unknown value falls back instead of failing. The control only appears in
the read-only Linux phase, leaving Windows filters unchanged.

Tests cover the read-only service, the blocked reason, the filter,
legacy and unknown stored values, the sidebar badge, the banner and the
app rendering the destination on Linux.

Validation: app 1093, core 686, platform 607, UI 1364, clippy -D
warnings and rustfmt clean.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d06d5b82-2087-4d4a-b1ce-27568555eb01

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@richmont

Copy link
Copy Markdown
Contributor Author

Closing this stacked PR for now: the merge being prepared is the third-party plugin program, not the Linux PC ports work. The phase 1 commits stay on feat/linux-pc-port-catalog and can be reopened or rebased onto main after the plugin integration merges. No code is lost.

@richmont richmont closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant