ui: update Agents entry slogan

This commit is contained in:
2026-09-14 14:08:49 +08:00
parent 10df9fd740
commit 4e33d6ade6
2 changed files with 5 additions and 1 deletions

View File

@@ -13,11 +13,13 @@
## Scope
- Replace the Agents module chooser placeholder with a generated cinematic illustration in `src/assets/module-agents.webp`.
- Follow-up: replace the Agents description in `src/lib/ai-modules.ts` with the user's corrected exact slogan `打造你想象中的AI助手`.
- Reuse the existing module image container, center crop, accessibility text, disabled grayscale and navigation. Require artwork for all four module entries and remove the now-unused placeholder branch.
- Update existing module navigation unit/Electron coverage and this task record only.
## Intent And Constraints
- Same-task slogan follow-up: official check/start/status passed and reused this clean feature worktree and the already loaded project/peer context. Planning Gate Passed. User corrected `想像` to `想象`; use the corrected text verbatim, without extra spaces or quotation marks in the UI. This is a copy-only change; existing tests are sufficient and no new interaction test is needed.
- Concurrent Task Gate and Planning Gate passed. Official start exited 0 and status matched the task ID, feature mode, branch, absolute worktree and base above. All subsequent operations use this isolated worktree; primary `main` has other ownership and three pre-existing untracked task records.
- Loaded the planning entry, own task, memory index, integrated current state, positioning, decision index, architecture, relevant domain/success criteria, accepted personal-cloud-Agent ADR, README and peer scope/intent/promotion sections. Registry holds 28 other planning tasks and 162 ready tasks; historical placeholder scopes remain unknown coordination state. The recent WeChat diagnosis is read-only, and prior Agents entry/platform work is integrated. No concrete semantic dependency on this artwork was identified.
- Older three-module prose and positioning placeholders are stale; README, accepted cloud Agent decision and current source confirm four entries. No architecture, backend, route, configuration or product-direction change is required.
@@ -26,12 +28,14 @@
## Outcome
- Slogan follow-up completed: the Agents entry description and its accessible button label now use `打造你想象中的AI助手`, matching the user's spelling correction. Existing generated artwork is retained.
- Generated and connected the blue/violet holographic Agent artwork. All four entries use the same bundled-image rendering; obsolete violet placeholder markup is removed. Existing card spacing, image crop, labels, policy state and routes are preserved.
- Visually inspected the real 1280x800 Electron chooser screenshot: the central figure remains recognizable inside the same 164x132 image region as its neighbors. The existing E2E also verifies the layout after resizing to 1100x700.
- Result is in this isolated feature branch. The occupied primary main checkout and installed application were not updated. No push, package, deployment or subagents.
## Verification
- Slogan follow-up: typecheck and all Vite production targets passed; existing module navigation/access tests passed 12/12. Reviewed the single source-string diff; no interaction or layout rule changed.
- Frozen install succeeded using the exact pinned pnpm 10.33.4. Generated WebP is 960x540, 90,688 bytes.
- `pnpm run typecheck`: passed.
- `pnpm exec vitest run tests/unit/module-navigation.test.tsx tests/unit/module-access.test.ts tests/unit/cloud-agents-page.test.tsx --maxWorkers=2`: 25 tests across 3 files passed; covers artwork rendering, module access, navigation and Agents entry behavior.