-
Notifications
You must be signed in to change notification settings - Fork 2
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: Add allowlist #31
Conversation
@@ -501,7 +501,7 @@ const extractCorrelationJsonBody = ( | |||
} | |||
|
|||
const extractedValue = get( | |||
JSON.parse(response.content), | |||
safeJsonParse(response.content), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was failing on some recording
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🤩
> | ||
Allowed hosts [{allowList.length}/{hosts.length}] | ||
</Button> | ||
{/* Radix does not unmount dialog on close, this is need to clear local state */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In future, we can create our own wrappers for components we use often to simplify the API (for example, for dropdown menus/selects) and change the behavior like in this case 🤔
<CheckboxGroup.Root | ||
value={selectedHosts} | ||
onValueChange={(e) => setSelectedHosts(e)} | ||
> | ||
{filteredHosts.map((host) => ( | ||
<CheckboxGroup.Item value={host} key={host}> | ||
{host} | ||
</CheckboxGroup.Item> | ||
))} | ||
</CheckboxGroup.Root> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably have max-height + scroll
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 🚀 🚀 🚀
Resolves https://github.com/grafana/k6-cloud/issues/2508