-
Notifications
You must be signed in to change notification settings - Fork 245
chore(deps): update leafygreen packages to latest #6555
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
Conversation
| const idx = row * colCount + col; | ||
| return ( | ||
| <div | ||
| key={idx} |
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.
small drive-by
| className: confirmationProps.hideCancelButton | ||
| ? hideButtonStyles | ||
| : undefined, | ||
| children: confirmationProps.cancelButtonText ?? 'Cancel', |
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.
button text is always Cancel and LG removed this option. https://www.mongodb.design/component/confirmation-modal/code-docs
| npm ci | ||
| - name: Bump packages | ||
| run: | | ||
| npm add $(cat packages/compass-components/package.json | jq -r '.dependencies | keys[]' | grep "@leafygreen-ui" | sed s/$/@latest/ | xargs) --workspace=@mongodb-js/compass-components |
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.
now i am thinking about jq - would it be available 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.
and its available there: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#tools
| @@ -0,0 +1,54 @@ | |||
| name: Update leafygreen packages | |||
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 whole file is a copy of update-electron with lg changes
| // Exporting this for test only to stub it and set | ||
| // its value. This enables to test cancelShardingaction. | ||
| export const showConfirmation = showConfirmationModal; | ||
| export const showConfirmation: typeof showConfirmationModal = |
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'm curious as to why this is needed? 🤔 It seems redundant to me.
Same with the change in packages/compass-indexes/src/modules/regular-indexes.ts and packages/compass-indexes/src/modules/search-indexes.ts
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.
ts started to complain about this
The inferred type of 'showConfirmation' cannot be named without a reference to '@mongodb-js/compass-components/node_modules/@leafygreen-ui/confirmation-modal'. This is likely not portable. A type annotation is necessary.ts(2742).
I'll close this PR as I split the removal of combobox from this.
Currently draft because i need to check update for
@emotion/cssAnd also popover v12 changes.
Description
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes