-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix(components): There was a typo in the DataList.ItemAction logic #2395
Conversation
Deploying atlantis with
|
Latest commit: |
0911d11
|
Status: | ✅ Deploy successful! |
Preview URL: | https://d66a6818.atlantis.pages.dev |
Branch Preview URL: | https://job-114615-job-116871-shame.atlantis.pages.dev |
@@ -46,7 +46,7 @@ export function DataListActions<T extends DataListObject>({ | |||
const actionLabel = getActionLabel(); | |||
|
|||
// If the action is always visible, we don't want a tooltip. | |||
if (props.alwaysVisibled) { | |||
if (props.alwaysVisible) { |
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.
I am curious about how CI didn't catch this when compiling the typescript 🤔
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.
That was my thought. It should have flagged it as an undefined var. I'll look at adding an additional unit test
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 was able to figure out why. Because the of the way children for the actions are retrieved the type is any so it can't actually know.
Thanks for adding the test, let me know when that is done and I can merge this and get it into the version bump
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.
Tests are added. Just waiting on CI 😎
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 (pending CI)! I will merge once CI finishes
Motivations
I merged a typo with my branch last week that prevents the persistent ItemActions from rendering correctly. For shame.
Fixed
Testing
docs/components/DataList/Web.stories.tsx
and set one of the item actions to alwaysVisible={true}, delete the other item actionsIn Atlantis we use Github's built in pull request reviews.