feat: 规则数据汇总#3668
Merged
song-xiao-lin merged 3 commits intomasterfrom May 9, 2026
Merged
Conversation
Contributor
PR CI 汇总状态:全部通过
由 pull_request test workflow 自动生成 |
921d24f to
25d324d
Compare
Contributor
There was a problem hiding this comment.
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
HTTPFlowRuleDataFilterUI (with i18n + styles) and integrated it into bothHTTPHistoryandHTTPHistoryFilteras a new “rules” tab that can feedMitmExtractAggregateFilterRowsinto HTTP flow queries. - Improved
HTTPFlowTableparam initialization/sync so externalprops.paramschanges 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. |
3125a2d to
cee7d1e
Compare
0629aeb to
d8cefb6
Compare
d8cefb6 to
be1833e
Compare
be1833e to
373a7e9
Compare
song-xiao-lin
approved these changes
May 9, 2026
EmbraceAn
approved these changes
May 9, 2026
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.
No description provided.