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

feat: load generator file #44

Merged
merged 17 commits into from
Jul 19, 2024
Merged

feat: load generator file #44

merged 17 commits into from
Jul 19, 2024

Conversation

Llandy3d
Copy link
Member

@Llandy3d Llandy3d commented Jul 19, 2024

Set the state from the loaded generator file.

Then har:open event now accepts an optional file path to specify which file to open or show a dialog if no file is specified.

generatorFileData.allowlist.includes(request.request.host)
)
// TODO: is this really required to be set ?
generatorState.setFilteredRequests(filteredRequests)
Copy link
Member Author

Choose a reason for hiding this comment

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

this is not update the UI, so the allowedlist is not updated and no request is shown

Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't be a problem with the latest main

@Llandy3d Llandy3d requested a review from going-confetti July 19, 2024 12:49
src/hooks/useGeneratorStore/slices/rules.ts Outdated Show resolved Hide resolved
generatorFileData.allowlist.includes(request.request.host)
)
// TODO: is this really required to be set ?
generatorState.setFilteredRequests(filteredRequests)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't be a problem with the latest main

src/views/Generator/Generator.utils.ts Outdated Show resolved Hide resolved
src/views/Generator/Generator.utils.ts Outdated Show resolved Hide resolved
@Llandy3d Llandy3d merged commit 3bf655e into main Jul 19, 2024
1 check passed
@Llandy3d Llandy3d deleted the set_loaded_generator_file branch July 19, 2024 16:38
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

Successfully merging this pull request may close these issues.

2 participants