Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New commands for Copy as and Export to CSV #415

Open
5 tasks done
NghiaTranUIT opened this issue Jun 17, 2024 · 2 comments
Open
5 tasks done

New commands for Copy as and Export to CSV #415

NghiaTranUIT opened this issue Jun 17, 2024 · 2 comments
Assignees
Labels
✅ Done Ticket is resolved enhancement New feature or request

Comments

@NghiaTranUIT
Copy link
Member

NghiaTranUIT commented Jun 17, 2024

Description

  • Some important features are missing in the Windows, we need to port it.

  • Export as CSV

Screenshot 2024-06-17 at 08 34 58
  • Copy as menu:
Screenshot 2024-06-17 at 08 36 26

Export as CSV

  • Port CSVExporter.swift
  • CSV will include all default Columns and Custom Columns
  • use , as a CSV Separator
  • Works with Single Flow Selection or Multiple Flow Selection
  • Write some Unit Tests
@NghiaTranUIT NghiaTranUIT added the enhancement New feature or request label Jun 17, 2024
@NghiaTranUIT
Copy link
Member Author

NghiaTranUIT commented Jun 17, 2024

Copy as - Single Flow Selection

  • Playground with Proxyman macOS to understand the logic
  • Request Header, Cookie, Body
  • Response Header, Cookie, Body. Please note that on the Response, Cookie means the Set-Cookie header
Screenshot 2024-06-17 at 08 40 41
  • ⚠️ Important Logic: When open the Copy as submenu, it will enable/disable some child items if these data are missing. For example. The Response doesn't have Set-Cookie, so the Response Cookie menu is disabled.

Copy as - Multiple Flow Selection

  • ⚠️ This feature hasn't been implemented on macOS yet. I'm going to implement it today 👍
  • When selecting multiple flows -> Right Click -> Copy As -> All sub-menu items are enabled.
  • Copy with format:
[<id>] <URL>
// Copy as Data here

[<id>] <URL>
// Copy as Data here
  • This format ☝️ only works with multiple flow selection. We display the ID and URL, then the Actual Copy data. If it's a single flow , just a copy data like macOS works.

@NghiaTranUIT
Copy link
Member Author

NghiaTranUIT commented Jun 17, 2024

Requirement

  • When copy Cookie or Set-Cookie, make sure we get all Cookie/Set-Cookie headers. Note: A Request/Response can have multiple Cookie or Set-Cookie header entry.

@kics223w1 kics223w1 added the ✅ Done Ticket is resolved label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Done Ticket is resolved enhancement New feature or request
Development

No branches or pull requests

2 participants