refactor(app): refresh home welcome heading (#603 PR3/3)#661
Conversation
Swap the home `<h1>` to the W5 welcome wording locked by the design
preview ("今天我们做点什么?" / "What should we work on?") and tune
the heading typography toward `--type-display`: medium weight, 28/130,
and the documented zh-CJK letter-spacing rule (CJK 0, en tightest).
Widen the heading-to-composer gap from `mt-12` to `mt-20` so the
hero block breathes.
Rolled back the W5 hero rewrite drafted earlier in this branch
(meta-path button + branch chip + `WorkspacePopover` extraction):
user manual-tested the experiment in Electron and preferred to keep
the production WorkspaceChip inside the composer untouched and the
home page minimal. The remaining change is a content + typography
refresh of the existing layout — no behavior, no plumbing, no
component moves.
i18n: introduce `home.hero.title`, retire `session.new.title`, sync
`parity.test.ts`. Update the home smoke spec and the opencode
`@smoke` inventory to the new heading copy.
Slice 3 of 3 for #603.
Refs #603.
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Suggested priority: P2 (includes user-path files (packages/app/src/components/session/session-new-view.tsx, packages/app/src/i18n/en.ts, packages/app/src/i18n/parity.test.ts, packages/app/src/i18n/zh.ts)).
P1/P0 are reserved for maintainer confirmation. Please relabel manually if this is a release blocker, security issue, data-loss risk, or updater/runtime failure.
There was a problem hiding this comment.
Code Review
This pull request updates the home page's hero section by renaming the welcome heading translation key to home.hero.title, adjusting typography styles, and increasing layout spacing. Feedback indicates that the locale-based letter-spacing logic should be expanded to include Japanese and Korean for consistent CJK typography. Additionally, the new translation key needs to be added to all supported locale files to prevent raw keys from being displayed to users.
Perf delta summaryComparator: pass
|
Summary
Refresh the home
<h1>to the W5 welcome wording locked by the design preview ("今天我们做点什么?" / "What should we work on?") and tune the heading typography toward--type-display: medium weight, 28/130, and the documented zh-CJK letter-spacing rule (CJK 0, en tightest). Widen the heading-to-composer gap frommt-12tomt-20so the hero block breathes. Production layout,WorkspaceChipinside the composer, and every other home surface stay untouched.Why
PR1 (#651) cleared the dead home page and PR2 (#657) stripped the skill-card pipeline. PR3 originally planned to rewrite
NewSessionViewas a W5 hero (meta-path button + branch chip + extractedWorkspacePopover). The maintainer manual-tested the experiment in Electron and decided the cwd signal reads cleaner where it already is (inside the composer), and that the home page should stay minimal. Rolled back to the smallest change that delivers the welcome copy + typography refresh on the existing layout.Related Issue
Refs #603. Slice 3 of 3.
Human Review Status
Pending. A human should make the final merge decision after reviewing the final diff and verification evidence.
Review Focus
session-new-view.tsx—--type-displayis rendered with arbitrary Tailwind values (text-[28px] font-medium leading-[1.3]+tracking-[var(--letter-spacing-tightest|normal)]) because there is notext-displayutility class yet. Introducing one would be a cross-package utility addition (would touchpackages/uiand the error-page heading); kept out of scope and noted as a follow-up candidate.home.hero.titlereplacessession.new.title. Bothparity.test.tsand thehome.spec.tsheading assertion are updated.session.new.titleis removed in both locales — grep confirms no other consumer.@smokeinventory inpackages/opencode/test/config/e2e-smoke-tagging.test.tsis updated alphabetically to match the new home smoke title.Risk Notes
None. No behavioral or platform-impacting change. No new schema, no migration, no IPC surface touched.
How To Verify
Screenshots or Recordings
Manual screenshot to be attached after PR open — the visible change is the heading copy ("今天我们做点什么?" / "What should we work on?") plus the slightly heavier medium-weight 28/130 display heading and the wider heading-to-composer gap. The composer, workspace chip, and overall layout are byte-for-byte unchanged from production.
Checklist
dev, and my PR title and commit messages use Conventional Commits in English