Fixes #39426 - Better ouiaId for ActionButtons on TableIndexPage#11025
Fixes #39426 - Better ouiaId for ActionButtons on TableIndexPage#11025sambible wants to merge 1 commit into
Conversation
f149203 to
db12ba3
Compare
qcjames53
left a comment
There was a problem hiding this comment.
Thanks for the PR Sam! I think the changes look pretty good to me but it needs one logic tweak to work.
| <> | ||
| <Button | ||
| ouiaId="action-buttons-button" | ||
| ouiaId={firstButton.ouiaId ? undefined : "action-buttons-button"} |
There was a problem hiding this comment.
| ouiaId={firstButton.ouiaId ? undefined : "action-buttons-button"} | |
| ouiaId={firstButton.ouiaId || 'action-buttons-button'} |
With your approach I think you'd want to use a solution like this. I believe the existing ternary doesn't work.
db12ba3 to
2039322
Compare
| /** | ||
| * Generate a button or a dropdown of buttons | ||
| * @param {String} title The title of the button for the title and text inside the button | ||
| * @param {String} ouiaId If included, use this as the ouiaId |
There was a problem hiding this comment.
One nitpick, there's a trailing space here. Would you mind deleting it please?
2039322 to
af9c4d3
Compare
qcjames53
left a comment
There was a problem hiding this comment.
This looks great to me, thank you!
|
I don't understand why the single commit check is failing but the failing docker pulls appear unrelated. |
|
Looks like there are some linting failures |
ianballou
left a comment
There was a problem hiding this comment.
This should be good to go once the linting is fixed
|
Thanks, i need to get a precommit process setup, clearly im missing something in my env |
af9c4d3 to
cfb4f89
Compare
ianballou
left a comment
There was a problem hiding this comment.
Thanks! TableIndexPage is still working.
Updates ActionButtons and TableIndexPage to better reflect the function of the various buttons that can appear on TableIndexPage based pages.
Before: ouiaId was always
action-buttons-buttonAfter: ouiaId will be one of
action-buttons-createaction-buttons-exportoraction-buttons-documentationbased on the actual function of the button.