Open NghiaTranUIT opened 1 year ago
It's quite tricky because we don't filter the matching node, we just search and jump to the matched point
You can use the Xcode or VS Code to understand how it works
https://user-images.githubusercontent.com/5878421/222306136-4568fd6d-fc75-464e-97fd-10a493deb962.mp4
@kics223w1 I've updated new UI + UIUX Behavior 👍
Description
A lot of users are working with JSON every day, we should improve how we filter the JSON Content.
Acceptance Criteria
Implement the Filter UI as the macOS Beta:
Implement JSON Path, Filter, and Search. (These are new UI from Proxyman 4.4.0)
Use https://www.npmjs.com/package/jsonpath for the JSON Path
Show the Help View if the result is empty
Search Mode
<
or>
can jump to the Next or the Previous matchingSee the GIF:
https://user-images.githubusercontent.com/5878421/222456852-de0786e9-b4bc-48a7-bcb2-668d133aef7d.mp4
Filter Mode
General Behavior
https://user-images.githubusercontent.com/5878421/222457995-7a6eac01-556e-4107-815a-6f8eeee962ae.mp4
The JSON will filter if we select the next flow
https://user-images.githubusercontent.com/5878421/222457550-e605d79a-e6ce-445b-b0f5-707c228703bc.mp4
Implement Suggestion
Unit Tests