-
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
Present field selection table mass actions in a menu #1513
base: main
Are you sure you want to change the base?
Present field selection table mass actions in a menu #1513
Conversation
src/lang/en-US/Workflows.ts
Outdated
'fieldSelection.massActionMenu.recommended.label': `Default`, | ||
'fieldSelection.massActionMenu.recommended.description': `Allow the connector to dynamically select fields`, | ||
'fieldSelection.massActionMenu.excludeAll.label': `Exclude All`, | ||
'fieldSelection.massActionMenu.excludeAll.description': `Exclude non-essential fields`, |
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.
I could go either way - but it does seem a bit weird for one option to have All
in the label and the other does not. But something like Default All
is kinda odd.
loading={loading} | ||
projections={projections} | ||
selectedValue={ | ||
selectionAlgorithm === 'excludeAll' ? 'exclude' : 'default' |
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.
Why are we storing the algorithm so we have to use a ternary op?
src/components/editor/Bindings/FieldSelection/FieldActions/MenuOption.tsx
Outdated
Show resolved
Hide resolved
src/components/editor/Bindings/FieldSelection/FieldActions/MenuOption.tsx
Outdated
Show resolved
Hide resolved
src/components/editor/Bindings/FieldSelection/FieldActions/MenuActions.tsx
Show resolved
Hide resolved
…ction-buttons-with-menu
…ction-buttons-with-menu
…ction-buttons-with-menu
Issues
The issues directly below are completely resolved by this PR:
#1505
Changes
1505
The following features are included in this PR:
Replace the existing button group that surfaces field selection mass actions with a single button which will open a menu of field selection mass actions.
The button label for this CTA should be Mode.
Menu item content will consist of a header identifying a mass action and a (short) description of the action.
A radio button should be used to select a menu item.
The menu will consist of two actions located in the bottom, right corner: Cancel and Apply.
Tests
Manually tested
Approaches to testing are as follows:
Automated tests
N/A
Playwright tests ran locally
Screenshots
Mode CTA disabled | Field selection view loading
Mode CTA enabled | Menu closed
Mode CTA enabled | Menu open