Skip to content

feat: 规则数据汇总#3668

Merged
song-xiao-lin merged 3 commits intomasterfrom
hejiahui/feat/ruleDataFilter
May 9, 2026
Merged

feat: 规则数据汇总#3668
song-xiao-lin merged 3 commits intomasterfrom
hejiahui/feat/ruleDataFilter

Conversation

@hjhke
Copy link
Copy Markdown
Contributor

@hjhke hjhke commented Apr 30, 2026

No description provided.

@hjhke hjhke added the need more test 需要更多的测试 label Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

PR CI 汇总

状态:全部通过

  • ✅ i18n(zh/en)
  • ✅ ESLint(renderer src/main)
  • ✅ TypeScript(renderer src/main)
  • ✅ ESLint(engine-link-startup)
  • ✅ TypeScript(engine-link-startup)
  • ✅ 图片/视频体积
  • ○ Vitest(main / renderer / engine-link;test 同目录·别名·相对路径)(skipped)
  • ✅ Prettier

由 pull_request test workflow 自动生成

Copilot AI review requested due to automatic review settings May 6, 2026 06:58
@hjhke hjhke force-pushed the hejiahui/feat/ruleDataFilter branch from 921d24f to 25d324d Compare May 6, 2026 06:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a “rule data aggregation” workflow for MITM extracted data: it adds a new left-side “rules” tab that queries aggregated extracted-data rows (rule name + extracted content) and lets multi-select drive HTTP flow filtering.

Changes:

  • Added a new gRPC API (QueryMITMExtractedAggregate) plus an Electron IPC handler to query aggregated MITM extracted data.
  • Added HTTPFlowRuleDataFilter UI (with i18n + styles) and integrated it into both HTTPHistory and HTTPHistoryFilter as a new “rules” tab that can feed MitmExtractAggregateFilterRows into HTTP flow queries.
  • Improved HTTPFlowTable param initialization/sync so external props.params changes can update internal query params.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/renderer/src/main/src/utils/yakQueryHTTPFlow.tsx Adds types/helpers for MITM aggregate linkage and IPC response normalization.
app/renderer/src/main/src/pages/hTTPHistoryAnalysis/HTTPHistory/HTTPHistoryFilter.tsx Integrates the new “rules” tab and passes selected aggregate rows into the flow query.
app/renderer/src/main/src/components/HTTPHistory.tsx Adds “rules” tab and wires aggregate selection into params for flow table/editor.
app/renderer/src/main/src/components/HTTPFlowTable/HTTPFlowTable.tsx Syncs internal params with changing props.params; keeps reset behavior consistent with external params.
app/renderer/src/main/src/components/HTTPFlowTable/HTTPFlowRuleDataFilter.tsx New component that queries aggregated extracted data and emits selected rows for flow filtering.
app/renderer/src/main/src/components/HTTPFlowTable/HTTPFlowRuleDataFilter.module.scss Styles for the new rule aggregation filter UI.
app/renderer/src/main/public/locales/zh/history.json Adds zh translations for the new rule aggregation UI.
app/renderer/src/main/public/locales/en/history.json Adds en translations for the new rule aggregation UI.
app/protos/grpc.proto Adds new RPC/messages and extends QueryHTTPFlowRequest with MitmExtractAggregateFilterRows.
app/main/handlers/queryHTTPFlow.js Adds IPC handler bridging renderer calls to QueryMITMExtractedAggregate.

@hjhke hjhke force-pushed the hejiahui/feat/ruleDataFilter branch 4 times, most recently from 3125a2d to cee7d1e Compare May 9, 2026 03:32
@Vernon818 Vernon818 added ready and removed need more test 需要更多的测试 labels May 9, 2026
@hjhke hjhke requested a review from Copilot May 9, 2026 03:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Comment thread app/renderer/src/main/src/assets/icon/outline.tsx Outdated
Comment thread app/renderer/src/main/src/components/HTTPFlowTable/HTTPFlowTable.tsx Outdated
@hjhke hjhke force-pushed the hejiahui/feat/ruleDataFilter branch 2 times, most recently from 0629aeb to d8cefb6 Compare May 9, 2026 07:15
@hjhke hjhke force-pushed the hejiahui/feat/ruleDataFilter branch from d8cefb6 to be1833e Compare May 9, 2026 07:40
@hjhke hjhke force-pushed the hejiahui/feat/ruleDataFilter branch from be1833e to 373a7e9 Compare May 9, 2026 07:43
@song-xiao-lin song-xiao-lin merged commit 6adfcb9 into master May 9, 2026
10 checks passed
@hjhke hjhke deleted the hejiahui/feat/ruleDataFilter branch May 9, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants