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

Record / Replay mode needs a UI #11

Open
msutkowski opened this issue Oct 2, 2021 · 0 comments
Open

Record / Replay mode needs a UI #11

msutkowski opened this issue Oct 2, 2021 · 0 comments

Comments

@msutkowski
Copy link
Member

Assuming the infra work in #7 is merged, we need to come up with an idea for the UI for it. Some thoughts are:

General goals:

  1. Provide ability to review requests/responses in a familiar format (like the network pane in chrome devtools)
  2. Allow a user to select one, many, or all TrackedRequests to save a HAR file or output generated handler code directly.
    • Note: MSW itself is most likely going to recommend using HAR files, but in some cases users may want to have handler code that can be consumed directly.

UI Ideas

  1. We could add a Drawer style component, or some other type of full screen overlay that allowed a user to see all of the TrackedRequests
  2. Instead of a drawer, we could introduce a 'sub panel' that is re-sizable that attached to the bottom (assuming toolbar is at the top), that showed a stream of the requests
  3. Per the above, a 'Live mode'! 🎉

Very much open to feedback here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant