Skip to content

docs: rewrite the READMEs for the current app and use the new screenshots - #201

Merged
fylorn merged 5 commits into
devfrom
docs/readme-seo2
Sep 25, 2026
Merged

fylorn merged 5 commits into
devfrom
docs/readme-seo2

Conversation

@fylorn

@fylorn fylorn commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

  • README.md and README.zh-CN.md are rewritten with the same structure: an opening in the approved register (the Chinese one verbatim), platforms, interface languages (English and Simplified Chinese) and in-app updates; the install section; one section per page of the current navigation (Overview, Traffic, Clients, Keys, Upstreams, Routing, Security, MCP, Settings); menu bar, system tray and notifications; a new Connecting to a remote core section; updates; build from source; layout.
  • Updates says how a new version is announced: the automatic check sends a system notification (only when notices are set to system notifications), and the update window opens from that notification, from the Install Version item that replaces Check for Updates in the menu bar or tray menu, and from the update button in Settings › About. The notifications paragraph mentions the new-version notification too. For Homebrew, the check reads the tap's cask, so a new version is only reported once the tap carries it.
  • Remote core, version mismatch: the server has to run the core version the app expects; on a mismatch the app names both versions and gives sudo twcore upgrade --version <version> --restart, which installs that version whether it is newer or older than the installed one. This describes the app with Version mismatch: give the command that installs the core version this app pins #204, so Version mismatch: give the command that installs the core version this app pins #204 should land before or together with this PR.
  • Screenshots now come from the committed pipeline. The Chinese README uses docs/screenshots/zh/, the English one docs/screenshots/en/, both keeping the light/dark <picture> switch; the menu bar item (menubar-{light,dark}.png, 178×64) is shown at width 89 and the menu (664×1120) at width 332. The overview now sits in the introduction of both READMEs. The remote-core section uses the remote-add and remote-switcher scenes. Five scenes are re-shot on the current dev because Use core v0.48.0 #202 and Security header: exact match count from core, broken down by outcome #203 changed them: remote-add (the connection test now reports core 0.48.0, the version the app pins; the alt text says so), traffic (the running request shows its status code and tokens), routing and dry-run (in-flight marker on the map) and security (counts by outcome in the header), with their web/ copies.
  • The 28 old root-level images in docs/screenshots/ (old sidebar, including the removed Findings page, and the 420×64 menu bar strips) are deleted. Nothing in this repository links to them, and the website (public/lite/) and the organization profile (assets/) keep their own copies rather than linking here.
  • CONTRIBUTING.md: pnpm tauri dev does need src-tauri/resources/twcore (Tauri checks declared resources at compile time, and the control-plane tests handshake with that binary); the build section says what each platform produces; "Apple silicon".
  • Build from source in both READMEs runs bash src-tauri/scripts/fetch-core.sh before pnpm tauri dev, which otherwise fails in a fresh checkout.
  • package.json gets a description, and the src-tauri/Cargo.toml description names the platforms (it is not used for any bundle metadata: Windows file descriptions come from productName, Linux has its own shortDescription). The PR template spells "Apple silicon".

Why

The READMEs still showed the sidebar from before the navigation was restructured and described neither the remote core added in 2026.9.16 nor the tray on Windows and Linux. The layout section described a per-launch credential that the Noise handshake replaced.

How it was verified

  • Every product claim was checked in code rather than in other copy: guard modes, defaults and built-in rules in core (tw-config/src/security.rs, the generated tables in docs/config.md, tw-guard; unchanged between v0.47.0 and v0.48.0), notification levels in src-tauri/src/notices/rules.rs and mod.rs, MCP targets in src-tauri/crates/tw-adopt/src/mcp.rs and scan sources in tw-scan, remote mode in src-tauri/src/connection/ and src/connection/remote.i18n.tsx, clients in tw-adopt/src/clients.rs, key storage in connection/secrets.rs (a 0600 file in the data directory, not the keychain), control transport in src-tauri/src/control.rs.
  • Updates: updater.rs (update_loop → notify_update, which records the version and calls Notices::announce; announce only reaches the system when the notice mode is System), notices/mod.rs (open_from_notification opens the update window for the update key), menubar/model.rs ("Install Version {v}…" in place of "Check for Updates…", shared by the macOS menu and the tray), update_show / update_check for Settings › About, and find reading the tap's cask for Homebrew. twcore upgrade --version installing an older release: plan() in core's bin/twcore/src/upgrade.rs (v0.47.0 and later).
  • Rebased onto dev e493835. pnpm shots there produces files identical to the committed ones.
  • Every relative link, image path and in-page anchor in README.md, README.zh-CN.md and CONTRIBUTING.md resolves (script check); the external links respond with 200.
  • A build without src-tauri/resources/twcore fails with "resource path resources/twcore doesn't exist", which is what the build instructions now account for.
  • pnpm typecheck, pnpm build and pnpm test pass.

🤖 Generated with Claude Code

@fylorn
fylorn force-pushed the docs/readme-seo2 branch 3 times, most recently from f47d4c3 to 3034787 Compare September 25, 2026 06:15
fylorn and others added 5 commits September 25, 2026 15:02
…hots

The READMEs showed screenshots of the old sidebar, including a Findings
page that no longer exists, and said nothing about connecting to a
remote core, the interface languages or the system tray. Both are
rewritten in the same structure, from what the code does today:

- An opening in the approved register, then the platforms, the
  interface languages and in-app updates.
- One section per page (Overview, Traffic, Clients, Keys, Upstreams,
  Routing, Security, MCP, Settings). Security is written from
  tw-config's guard defaults and built-in rules, MCP from tw-adopt's
  targets and tw-scan's sources, and the list of system notifications
  from src-tauri/src/notices/rules.rs.
- "Connecting to a remote core": Settings > Connection, the pages that
  always act on this machine (Clients, MCP), where the connection key
  is kept, what changes while connected; links to Core's server
  deployment guide.
- Layout: the control channel over a unix socket, a loopback port or a
  remote TCP port, each behind the Noise NNpsk0 handshake, replacing
  the per-launch credential the old text described.

Images now come from the committed pipeline: the zh README uses
docs/screenshots/zh/, the English one docs/screenshots/en/, both with
the light/dark <picture> switch, and the overview sits in the
introduction of both. A fresh `pnpm shots` run on this base produced
identical files, so no image changes. The 28 old root-level images are
deleted; nothing in this repository, the website or the organization
profile links to them (the latter two keep their own copies).

Build from source now fetches twcore first: Tauri checks declared
resources at compile time, so `pnpm tauri dev` fails in a fresh
checkout without it, while CONTRIBUTING said it needed nothing. Also
spell "Apple silicon", and give package.json and Cargo.toml a
description that names the platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Updates section said a small window appears when there is a new
version. The automatic check sends a system notification instead
(updater.rs: update_loop -> notify_update), and only when notices are
set to system notifications. The update window opens from that
notification, from the Install Version item that replaces Check for
Updates in the menu bar or tray menu, and from Settings > About. The
notifications paragraph now mentions the new-version notification too.

For a Homebrew installation the check reads the tap's cask, so the
sentence that said when the window appears now says when a new version
is reported.

Connecting to a remote core: when the server's core version differs,
the app gives `sudo twcore upgrade --version <version> --restart`, which
installs the expected version whether it is newer or older than the
installed one (#204). Both languages say the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`pnpm shots` on dev 2fa65fd changes five scenes, because #202 and #203
changed what they show:

- remote-add: the connection test reports core 0.48.0, the version the
  app now pins (a 0.47.0 server would be a version mismatch). The alt
  text in both READMEs says 0.48.0.
- traffic: the request in progress shows its status code and token
  count, replayed from /in-flight.
- routing and dry-run: the map marks the upstream with a request in
  flight.
- security: the header counts the entries by outcome.

The other alt texts still describe their images. The website copies in
docs/screenshots/web/ are regenerated with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…anges; fetch-core.sh says dev builds need it too

Overview, routing, dry-run, remote-switcher and traffic changed on dev
(#206, #207, #208). The comment at the top of fetch-core.sh still said a
dev build needs neither the network nor resources/twcore; the Tauri build
checks the resource at compile time, so a fresh checkout runs the script
once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit b36c4c4 into dev Sep 25, 2026
4 checks passed
@fylorn
fylorn deleted the docs/readme-seo2 branch September 25, 2026 07:14
@fylorn fylorn mentioned this pull request Sep 25, 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