Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

PR template: launcher UI changes need before and after screenshots

v0lumehi967c1e9d5f20
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index 0c7b43f8..811df71c 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -9,4 +9,5 @@ Read [AGENTS.md](../AGENTS.md) and [CONTRIBUTING.md](../CONTRIBUTING.md) first;
- No AI attribution anywhere: no "Generated with", no `Co-Authored-By` for a tool, in commits, PRs or issues.
- Never attach or commit keys, game files or anything extracted from a game.
- You work on a Linux runner and cannot build or run the macOS app. The macOS jobs of `tests.yml` are the check: do not claim a Swift or Metal change works until they are green.
+- A PR that changes the launcher needs before and after screenshots. You cannot capture them: say so under Screenshots and ask for them in the PR (CONTRIBUTING.md, "For AI agents and other tools").
- Issues and PRs follow the forms and the PR template (CONTRIBUTING.md, "For AI agents and other tools").
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 2f70bc48..81a05743 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -19,10 +19,13 @@
## Screenshots
-<!-- For a UI change: before and after, in the languages it touches. -->
+<!-- A change to anything visible in the launcher (`frontend/` or `frontend-qt/`) needs before and after images of every view it changes, in the languages it touches. Attach them here. Captures from `NX_LAUNCHER_CAPTURE_DIR` are fine (`NX_CAPTURE_LANG=de` picks the language). A PR without them is not reviewed. -->
+
+<!-- With no visible change, write: None, no visible change. -->
## Scope
- [ ] No vendored file (`dm/`, `scripts/`, `docs/`, `ref/`, `AGENTS.md`) is edited directly: a change there is a patch in `patches/` (`scripts/patches.py export`, and `patches.py check` passes), with its `Upstream-Status`
- [ ] A fix to the engine or a game profile is also (or first) a PR at seedds/nxnative: this PR's patch says `forwarded seedds/nxnative#...`
+- [ ] A change to a launcher view has before and after screenshots above
- [ ] No keys, game files or data extracted from a game in the change or the attachments
diff --git a/CLAUDE.md b/CLAUDE.md
index d823434e..68289a5a 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -2,5 +2,6 @@
- Read [AGENTS.md](AGENTS.md) first.
- For an issue or a pull request, follow [CONTRIBUTING.md](CONTRIBUTING.md), section "For AI agents and other tools", and the templates in `.github/`.
+- A PR that changes the launcher needs before and after screenshots: see "For AI agents and other tools" in CONTRIBUTING.md for how to capture and attach them.
- `dm/`, `scripts/`, `docs/`, `ref/` and `AGENTS.md` are upstream plus the patch queue in `patches/`: a change there is a patch (`scripts/patches.py export`, see [patches/README.md](patches/README.md)), not a direct edit, and `scripts/patches.py check` fails otherwise.
- **Commit with your own git identity.** Use the one configured for your clone, or your own name and email. AGENTS.md ends with `git -c user.name=seedds -c user.email=…`: that is seedds' own identity, written for his repository. Do not copy it unless you are seedds: it attributes your commits, and the `From:` line of patches made with `scripts/patches.py export`, to him (six commits on 2026-10-30 did, including `v0.7.2`, and patch 0033 in #230).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c5b64ec1..76a58416 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -37,6 +37,7 @@ missing piece.
- One change per PR, off `main`. Commit messages say what changed and why, in plain English, as `git log` does.
- Fill in the PR template: what and why, what was checked, screenshots for UI changes.
+- A PR that changes anything visible in the launcher attaches before and after screenshots to the PR, under Screenshots. Show every view the PR changes, in each language it touches. A PR without them is not reviewed. A PR with no visible change writes "None, no visible change".
- **`frontend/` and `frontend-qt/` are the fork's own:** change them freely. Run `cd frontend && swift test`. For a UI change also capture the views for visual QA (`NX_LAUNCHER_CAPTURE_DIR`, see [frontend/README.md](frontend/README.md#verification)).
- **`dm/`, `scripts/`, `docs/`, `ref/` and `AGENTS.md` are upstream plus the patch queue.** They are generated: seedds/nxnative at the commit in `.upstream-ref` with the patches in `patches/` applied, so a direct edit fails `scripts/patches.py check` (the `pr-scope` and `patch-queue` jobs) and would be lost on the next bump. The failure names the command: `python3 scripts/patches.py absorb <files>` folds a direct edit into the patch that already touches the file (a new file may need `--into <patch>`). Commit `patches/` with it. For a change that needs a patch of its own, commit the change, turn it into a patch with `scripts/patches.py export <commit>`, fill in its header (`Upstream-Status`, `Reason`, `Issue`), and send the same change to seedds/nxnative so the patch can go. Fixes to the engine and to game profiles go to seedds/nxnative first, as [patches/README.md](patches/README.md#upstream-first) states. That page walks through the steps and states the patch policy (what a patch may and may not change). Files under `.github/` and in the repository root that are not in that list (this file, `CLAUDE.md`, the README) are the fork's.
@@ -47,4 +48,5 @@ Issue forms and the PR template apply in the browser only. `gh issue create`, th
- **Problem reports.** Write the body as `###` headings with the same names as the form's fields (for example `### Game, title ID and versions`, `### Copy diagnostics`, `### The game's log`) and fill every required field from [.github/ISSUE_TEMPLATE](.github/ISSUE_TEMPLATE). Ask the user for what you cannot read yourself: the Copy diagnostics output, the log, the versions. If a required field is missing, do not open the issue.
- **Ideas and plans.** These have no form. Write plain sections that fit the content, for example `### Idea`, `### Plan` and `### Done when`. Leave out the problem fields (`This is`, `NX2Apple version`, `Computer and OS`, `Copy diagnostics`). Open it with the labels `idea` and `no-triage`.
- **Pull requests.** Use the sections of [.github/pull_request_template.md](.github/pull_request_template.md): `gh pr create --template .github/pull_request_template.md`, or the same headings in `--body`. Answer each section and remove the `<!-- -->` hints. Under Fix or feature, tick one box. A change to a vendored path follows the rule above.
+- **Screenshots.** A PR that changes the launcher needs before and after images in its body (see "A pull request"). On a Mac, capture the changed views of `frontend/` with `NX_LAUNCHER_CAPTURE_DIR=<dir> swift test` and `NX_CAPTURE_LANG` for the language (`de`, `sv` or `zh`, English is the default). `frontend-qt/` has no capture, so take its screenshots by hand. `gh` and the API cannot upload images. So an agent cannot attach them itself. Under Screenshots, say that, give the paths of the captures, and ask the user to attach them. Keep the PR a draft until the images are there. An agent without a Mac (a Linux runner) says under Screenshots that it could not capture the views and asks for screenshots in the PR.
- Never attach or commit keys, game files or data extracted from a game, and do not paste key values into a log or a diagnostics report.