feat(capsule): animated thinking shine indicator#408
Merged
Conversation
把 transcribing / polishing 阶段的胶囊从原来的"三个圆点 + 文案"换成 扫光的 thinking 文字效果: - 移除 ProcessingDots 组件 - 文字字号 11 → 14,字重 500,扫光 linear-gradient + background-clip: text - 进入 transcribing / polishing 的头 2 秒走 0.9s/cycle 快速扫光(提示「刚开始」), 之后切回 2.4s 稳态。React 副作用切 duration 不重启动画,会平滑减速 - 切换 state 时多一道 220ms 淡入(cap-state-enter)让用户更容易感知 - 5 个 locale 的 capsule.thinking 文案统一为 'thinking'(小写英文),与扫光字面 视觉一致,避免不同语言长度差影响排版 CSS keyframes 改名 cap-dot → cap-shine,并加 cap-state-enter。
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
Summary
Test plan
PR Type
Enhancement
Description
Replaced processing dots with thinking shine
Added fast-then-slow shimmer timing
Faded in state transitions
Unified thinking text across locales
Diagram Walkthrough
File Walkthrough
Capsule.tsx
Replace dots with animated thinking shineopenless-all/app/src/components/Capsule.tsx
ProcessingDotsindicator entirely.thinkingas gradient-clipped animated text.en.ts
Normalize English thinking labelopenless-all/app/src/i18n/en.ts
capsule.thinkingfromThinking…tothinking.ja.ts
Normalize Japanese thinking labelopenless-all/app/src/i18n/ja.ts
capsule.thinkingfrom Japanese text tothinking.ko.ts
Normalize Korean thinking labelopenless-all/app/src/i18n/ko.ts
capsule.thinkingfrom Korean text tothinking.zh-CN.ts
Normalize Simplified Chinese thinking labelopenless-all/app/src/i18n/zh-CN.ts
capsule.thinkingfrom Chinese text tothinking.zh-TW.ts
Normalize Traditional Chinese thinking labelopenless-all/app/src/i18n/zh-TW.ts
capsule.thinkingfrom Chinese text tothinking.