Repository navigation
feat(website): app-true showcase, overlay capsule & sticky feature scroller - #42
Merged
Merged
Conversation
… scroller - Add a high-fidelity Home dashboard recreation that peeks up from the hero (traffic lights, sidebar, highlighted stat cards, donut + hours charts, history) so the empty fold invites scrolling - Replace the SVG demo with a 1:1 overlay capsule (waveform envelope mirrors the app's WaveformView) driven by a shared dictation timeline - Convert the auto-switching scenes into a sticky-sidebar feature scroller (AI Rewrite / In context / Always ready) with scroll-spy highlighting - Float the overlay capsule below the window edge; nav top-aligns with each section heading - Fix: .page uses overflow-x: clip (not hidden) so position: sticky works; .features-flow gets min-width: 0 to stop scenes overflowing on mobile - Remove the old DemoCard and dead demo/capability styles
The workflow only wrote results to the job summary and an artifact, so OCR findings never surfaced on the PR. Grant pull-requests: write and add a step that renders ocr-result.json into a single comment, upserted via `gh pr comment --edit-last --create-if-none` so repeated pushes update in place.
- Remove the unnecessary `as never` cast on the feature-block ref - Extract dictation phase timings and the reduced-motion fallback into named constants in useDictationScene - Type the dashboard navGroups data (NavGroup/NavItem) - Modernize the .sr-only utility to clip-path: inset(50%)
🤖 Open Code ReviewModel
|
- Add id="features" so the hero scroll cue's #features anchor resolves - Stabilize the per-index ref callbacks in useActiveSection to avoid detach/reattach churn on every render - Guard viewAt against an empty examples array (returns the resting frame) - Restore the clip: rect(0,0,0,0) fallback alongside clip-path on .sr-only - Swap exact-match hex/rgba colors for var(--blue) / var(--glow)
- Reset .features-nav / .feature-block padding-top at the 980px breakpoint so the desktop sticky-alignment offset doesn't add mobile whitespace - Drop the redundant prefers-reduced-motion block (the blanket rule covers it) - Make reduced-motion reactive in useDictationScene and re-baseline startRef on restart so an examples swap can't carry a stale timestamp - Stabilize the per-bar ref callbacks and document the rAF effect in OverlayCapsule - Scroll-spy now picks the section nearest the viewport centre - Derive desktopApps from the shared content app list
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.
这是什么
官网首屏到功能区的整体改造:用 HTML/CSS 高保真复刻真实 App 界面与交互,替换原先的 SVG 动画。
改了什么
① 首屏 Dashboard 露出
DashboardWindow:复刻「首页」——红绿灯 + 侧边栏、4 张统计卡(「平均延时」为高亮选中态)、语音输入场景环形图 + 使用时段分布柱状图、历史记录(已注入/已润色双标签)。② App 真实交互复刻(替换 SVG 动画)
OverlayCapsule:1:1 还原悬浮黑胶囊,5 根波形条直接照搬 App 源码WaveformView的正弦包络公式,配白色滑动文字 + 阶段占位。useDictationScene把「说话→转写→润色→注入」做成纯时间线,离屏自动暂停。③ 场景自动切换 → sticky 功能区
Features:左侧 sticky 导航(AI Rewrite / In context / Always ready)+ 右侧文档流滚动,IntersectionObserver 滚动高亮;导航顶部与每节标题严格平齐。关键修复
.page改用overflow-x: clip(而非hidden)——hidden会创建滚动容器、破坏position: sticky。.features-flow加min-width: 0,避免场景窗口 min-content 撑爆移动端1fr轨道导致横向溢出。清理
DemoCard组件、content.ts中已无用的demoExamples/capabilities,以及 demo/capability 相关死 CSS。验证
bun run build通过,无 TS/构建错误。注:未包含
.claude/等本机预览配置。