Skip to content

Add a Setups page that opens first - #172

Merged
rndaom merged 2 commits into
mainfrom
rndaom/setups-home
Oct 11, 2026
Merged

rndaom merged 2 commits into
mainfrom
rndaom/setups-home

Conversation

@rndaom

@rndaom rndaom commented Oct 11, 2026

Copy link
Copy Markdown
Owner

What

A Setups page, first in the sidebar and where the workspace opens. It lists every profile as a setup; the chosen one shows its HUD's in-game picture and eight details (HUD, crosshair, field of view, sensitivity, hit and kill sounds, performance preset, mods).

  • Details that match the setup in the game are dimmed. "N changes from " opens the existing Compare dialog.
  • The setup in the game: Edit (its panes, on the last one used) and Play.
  • Any other setup: Switch and Switch and play. Both go through the existing switch and launch paths; Switch and play launches only once that profile is in the game.
  • New setup opens the existing create flow.

Why

Switching between whole setups is the core of execs, but it was only reachable from the header menu, and the app opened on a settings pane.

How

  • get_setup_overviews (core/src/setup_overview.rs) is read-only: it reads each profile's manifest and stored cfgs (Gameplay cfg first, then the profile's config.cfg for FOV and sensitivity). The page adds no writes.
  • Panes stay mounted but hidden behind the page, so drafts survive. ?preview=setups shows it in the browser preview.
  • Guide (profiles.md), ARCHITECTURE.md and the changelog are updated.

Checks

vitest (152 files), biome check ., tsc --noEmit, the root script tests, cargo fmt --check, cargo clippy -D warnings, cargo test --workspace --locked. Checked in the browser preview at 1400, 1024 and 960 px wide.

Every saved profile is listed as a setup beside the chosen one, which
shows its HUD's in-game picture and eight key details: HUD, crosshair,
field of view, sensitivity, hit and kill sounds, performance preset and
mods. Details that match the setup in the game are dimmed, and the
"N changes from <name>" line opens the existing Compare dialog.

The setup in the game offers Edit and Play; any other offers Switch and
Switch and play. Both use the existing switch and launch paths, and
Switch and play only launches once that profile is in the game.

The details come from a new read-only command, get_setup_overviews,
which reads each profile's manifest and stored cfgs and writes nothing.
Opening execs fetched the HUD catalog and wrote its cache just to name
HUDs and show their pictures, which the native Linux checks rightly
flag. The page now reads the saved copy through get_cached_hud_catalog
and falls back to the HUD's id and a plain block before one exists.
@rndaom
rndaom enabled auto-merge October 11, 2026 18:22
@rndaom
rndaom merged commit 76c4edf into main Oct 11, 2026
12 checks passed
@rndaom
rndaom deleted the rndaom/setups-home branch October 11, 2026 18:25
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