Skip to content

Conversation

@mabaasit
Copy link
Collaborator

@mabaasit mabaasit commented Dec 9, 2024

Currently draft because i need to check update for @emotion/css

And also popover v12 changes.

Description

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

const idx = row * colCount + col;
return (
<div
key={idx}
Copy link
Collaborator Author

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',
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

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 🤔 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,54 @@
name: Update leafygreen packages
Copy link
Collaborator Author

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 =
Copy link
Contributor

@kraenhansen kraenhansen Dec 11, 2024

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

Copy link
Collaborator Author

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.

@mabaasit mabaasit closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants