feat(admin): 把请求采集和打票流程并入智能运维 - #286
Merged
ranxi2001 merged 1 commit intoOct 3, 2026
Merged
Conversation
- Sidebar: move 请求采集 and 打票流程 from the top level to the end of the 智能运维 group. 请求采集 keeps its request_capture_enabled flag; both icons use the small size like the other children. - SmartOpsNav: add the two pages in the same order as the sidebar, with 请求采集 shown only while the feature is enabled, and render the tab bar on both pages like the other 智能运维 pages. - Tests: assert the grouping and that the sidebar group and tab bar list the same paths in the same order; cover the tab bar feature flag with a real router. Both specs join the CI critical Vitest list. - Docs: point the request capture guide at the new location and add before/after screenshots from a local mock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
解决的问题与行为变化
SmartOpsNav)没有这两页,两页自己也不显示这条标签栏。request_capture_enabled开关,关闭时不显示。两项图标改为与其他子项相同的小号,避免文字错位。SmartOpsNav加上这两项,顺序与侧栏一致:自动配置 → 优先调度 → 质量运维 → 账号运维 → 凭证守护 → 凭证运营 → 鹈鹕测智 → 请求采集 → 打票流程。请求采集同样只在开关开启时显示,开关变化后无需刷新页面。SmartOpsNav两处,新测试会检查两边顺序一致。关联记录与来源
b6e53d3b1(docs/screenshots/smart-ops-layout/)。复现与验收
5bed80886e4b6e48b2e8825c93f7ad6b6e275eb1。本机前端开发服务器 + 只监听 127.0.0.1 的 mock API + 无头 Chromium(CDP),使用虚构管理员和空数据,没有连接任何真实服务。request_capture_enabled: false,刷新后再看侧栏和标签栏,并直接访问/admin/request-captures。aria-current="page"。/admin/request-captures仍按原规则跳转到/admin/settings。document.documentElement.scrollWidth等于视口宽度,没有横向溢出。AppSidebar.spec.ts:两项都在智能运维分组内、各只声明一次(不再是顶层项),请求采集仍带开关;侧栏分组与SmartOpsNav列出的路径和顺序完全一致。SmartOpsNav.spec.ts(真实 vue-router + Pinia):开关关闭时不含请求采集、开启时排在打票流程之前、开关变化后无需重新挂载即可更新,并校验当前页标记。RequestCaptureView.spec.ts、HarvestFlowView.spec.ts:照其他 7 个智能运维页面测试的做法,mock 掉SmartOpsNav。Makefile的FRONTEND_CRITICAL_VITEST)。buildFeatureSearchEntries展开子项(已有用例覆盖),本 PR 没有单独为这两页加搜索用例。实际验证
当前 head:
c90f2f34f298,基于 production5bed80886。make test-frontendpnpm --dir frontend run test:runpnpm --dir frontend run build/admin/request-captures跳转到/admin/settings;1440 和 390 宽度没有横向溢出截图(虚构数据,mock 设置为开启请求采集;文件和说明在
docs/screenshots/smart-ops-capture-harvest/):兼容性与运行影响
SmartOpsNav读取的是侧栏本来就会加载的管理员设置,不增加请求。文档与用户可见变化
docs/request-capture.md的入口位置改为「智能运维 → 请求采集」;新增docs/screenshots/smart-ops-capture-harvest/(.gitignore白名单同步放行)。PR 合并不代表已发布或部署。Agent 使用声明
提交前自查
🤖 Generated with Claude Code