feat(search): 适配 v0.56 全局搜索面板 UI/UX#636
Open
KevinYoung-Kw wants to merge 2 commits into
Open
Conversation
|
@KevinYoung-Kw is attempting to deploy a commit to the op7418's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
这个 PR 基于当前
v0.56的设计语言,重新打磨全局搜索面板 UI/UX。重点不是扩展搜索后端能力,而是让现有搜索入口更像 CodePilot 当前的 command palette:更简洁、更稳定、更少视觉噪音。主要改动
GlobalSearchDialog前端结构:移除上一版偏重的卡片墙、分栏结果和重复说明,改为单输入 + scope pills + 单列结果 stack。会话 / 消息 / 文件三类搜索范围补充轻量 icon,icon 只出现在范围选择器,不再在结果列表里重复堆叠。top与高度,结果区内部滚动,避免空态、输入态、加载态、结果态切换时上下抖动。验证
本地已执行:
npm run typechecknpx eslint src/components/layout/GlobalSearchDialog.tsx src/__tests__/e2e/global-search-modes.spec.tsNO_PROXY=127.0.0.1,localhost PLAYWRIGHT_BASE_URL=http://127.0.0.1:3237 npx playwright test src/__tests__/e2e/global-search-modes.spec.ts --reporter=linegit diff --check浏览器验收:
http://127.0.0.1:3237/chat验证搜索面板空态、输入态、结果态。top=276 height=560。wps/笔记相关内容。Notes
/api/search后端语义。max-lineswarning:GlobalSearchDialog.tsx超过 500 行;本 PR 未进一步拆文件,避免扩大评审范围。