Repository navigation
fix: add transitions to open-in menu - #5219
Conversation
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bdb4d95da5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| :key="target.id" | ||
| :active="target.id === quickTargetId" | ||
| @click="handleOpenTarget(target.id)" | ||
| <Transition name="menu-pop"> |
There was a problem hiding this comment.
Add the missing Desktop changeset
For Desktop and Web users opening a local workspace or file preview, this changes the menu from appearing immediately to fading in and out, but the commit contains no .changeset file. Because kimi-code-app changesets feed the Desktop release notes and update dialog, this user-visible fix would ship without the required changelog entry; add a patch changeset for kimi-code-app.
AGENTS.md reference: AGENTS.md:L170-L170
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 280c87829e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| :key="target.id" | ||
| :active="target.id === quickTargetId" | ||
| @click="handleOpenTarget(target.id)" | ||
| <Transition name="menu-pop"> |
There was a problem hiding this comment.
Add regression coverage for the menu transition
This is explicitly a bug fix, but the commit only changes the production component and adds no test that mounts OpenInMenu; the existing openInTarget tests cover target selection logic, not whether opening and closing retains the menu long enough for the enter/leave transition. Add a component test that opens the menu and then closes it (for example via an outside click) and asserts the transition state, so removing this wrapper does not silently reintroduce the original immediate disappearance.
AGENTS.md reference: AGENTS.md:L60-L60
Useful? React with 👍 / 👎.
…C preload Wrap the open-in menu in the upstream menu-pop transition with the opacity-only enter/leave rules (MoonshotAI#5219), and preload Composer.vue before the composer menu viewport tests so the first test does not pay for the lazy SFC compile under Vitest (MoonshotAI#5149). Ledger: 4821 equivalent, 5160 and 5286 not-applicable, 5149 and 5219 ported.
Requirement or Bug
Desktop 和 Web 的「在其他应用打开」菜单在打开和关闭时直接出现或消失,缺少过渡动画。本 PR 为菜单补上透明度的渐入渐出效果。
Bug Reproduction Steps
Root Cause
OpenInMenu直接通过v-if挂载和卸载Menu,没有用Transition包裹,也没有进入和离开状态的样式。本 PR 直接补齐缺失的过渡,不改变菜单的打开、关闭和项目选择逻辑。Code Changes
OpenInMenu的Menu外层加入Transition,复用现有menu-pop命名。Behavior Changes and Affected Users
packages/app-components中的OpenInMenu,由 Desktop 和 Web 共用。openInTarget13 条测试通过;Desktop 类型检查通过;全仓 lint 通过;重复代码检查通过。Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.