-
Notifications
You must be signed in to change notification settings - Fork 72
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
Migrate vendor selector to Ant #5459
Conversation
* visit Manage your vendors page http://localhost:3000/consent/configure * Click "Add Vendors" button * Click "Add custom vendor" button * Ensure vendor picker select works as expected, including: selecting from the list, using the tab key to complete the autosuggestion, adding a new value by pressing the tab key (or click away), adding a new value by clicking that option from the menu.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
fides Run #10797
Run Properties:
|
Project |
fides
|
Branch Review |
refs/pull/5459/merge
|
Run status |
Passed #10797
|
Run duration | 00m 38s |
Commit |
3925cfbc7f ℹ️: Merge 4aa901cc4f619afca0acac10b1f5e1bfcfbf7d07 into ba4c825f21a3fc44507b071193e3...
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
View all changes introduced in this branch ↗︎ |
if (newValue) { | ||
const newVendorId = options.some((opt) => opt.value === newValue.value) | ||
? newValue.value | ||
: undefined; | ||
setFieldValue("vendor_id", newVendorId); | ||
await setValue( |
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.
Didn't know you could explicitly await a state call, this is a much nicer solution to that error message bug.
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.
@jpople updated! Thanks for catching that. |
fides Run #10807
Run Properties:
|
Project |
fides
|
Branch Review |
main
|
Run status |
Passed #10807
|
Run duration | 00m 36s |
Commit |
ce5188d384: Migrate vendor selector to Ant (#5459)
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
View all changes introduced in this branch ↗︎ |
Closes HJ-142
Description Of Changes
Vendor selector is a bit complex, so we're migrating it separately from the other Select components first.
Code Changes
AutosuggestSuffix
as reusable typeahead helperVendorSelector
component to use Ant's Select componentSteps to Confirm
Pre-Merge Checklist
CHANGELOG.md