#170 UI: single-source the version from package.json + refresh About#171
Merged
Conversation
The top-right label and the About card hardcoded "v3.0.0-dev", so they stayed at 3.0.0 while #167 shipped 3.1.0 — two drifting version sources. Inject the version from package.json via Vite `define __APP_VERSION__` and render `v{__APP_VERSION__}` in both places, so the UI always matches the packaged release. Refresh the About blurb (zh + en) to reflect current V3 scope (agent/Hub fleet; CPU/RAM/GPU/VRAM; LADA 4K per-task progress + ETA; ComfyUI; AI-coding activity for Claude/Codex/Kimi; privacy-first) and credit the sole designer/developer. Test asserts the rendered label equals __APP_VERSION__ (non-drifting). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
Review trail (/afk — Claude-driven)
CI green. Leave-open (owner merges). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #170.
Problem
The version in the app top-right and the About card was hardcoded
v3.0.0-dev, so it stayed at 3.0.0 while #167 bumpedtauri.conf.json/package.jsonto 3.1.0 — two independent version sources that drift.Fix
package.jsonat build time (Vitedefine __APP_VERSION__, imported viaresolveJsonModuleso no@types/nodeis needed) and renderv{__APP_VERSION__}in bothApp.tsxandSettings.tsx. The label now always matches the packaged release.Designed & developed by 304/由 304 独立设计与开发).__APP_VERSION__(not a literal), so it can never drift again.Verification
npm run buildbakesv3.1.0into the bundle;npm test73 passed (incl. the new version test);eslintclean (no new warnings).Review trail (/afk)
Claude implement + TDD. External gates run automatically: Codex 外门 then Kimi 终审. Leave-open (owner merges).