-
Notifications
You must be signed in to change notification settings - Fork 64
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
LG-4525: Support filtering by component name in popover-v12 codemod #2533
base: LG-4121-popover-refactor
Are you sure you want to change the base?
Conversation
* OverlayContext, useOverlayContext, and OverlayProvider * useOverlay to register, remove, and track isTopMostOverlay * Export overlay context related components and hooks and include provider in LG provider * README and changeset * Fix type and lint * Update registerOverlay logic and use more explicit generic type names
* PopoverContext supports additional props and marks isPopoverOpen and setIsPopoverOpen deprecated * Replace PortalContext with newly extended PopoverContext * Changesets * Add todo in select spec and update todos with jira tix
…ClassName prop (#2457) * Refactor popover styles * Remove redundant contentClassName prop * Clean up Popover positioning logic * Changesets * Reorg code * useIsomorphicLayoutEffect instead of useMemo * Update changesets * Revert changes
* Add @floating-ui/react dependency * Clean up Popover stories * Replace position utils and usePopoverPositioning with useFloating * Remove replaced positioning hook and utils * Fix adjustOnMutation and stories * Changeset * Add useMergeRefs hook * Address feedback
* Update Popover default spacing from 10 to 4 * Changeset * Update README and stories
…2474) * Remove justify fit from @leafygreen-ui/popover * Remove justify fit usage in packages using Popover * Changeset
* Fix usePortal={false} transition and className order * Replace usePortal with renderMode and add top layer render mode in Popover * Replace usePortal with renderMode and add top layer render mode in LG Provider * Refactor types in Popover-consuming packages * README * Address feedback
* Replace usePortal with renderMode and refactor Popover-consuming components * Fix tooltip hover delays * Initial feedback * Additional feedback * Fix transition * Fix stories
* Add addJSXAttributes code mod util * Update consolidateJSXAttributes util to handle edge case * Add removeJSXAttributes code mod util * Fix comment utils * Export utils from utils/transformations * Add popover-v12 codemod * Changeset * Fix build type * Clean up comments * Update docs * Add commentOverride * Update transform.config.js
* Fix Copyable tooltip spec * Update test
🦋 Changeset detectedLatest commit: e65f69e The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
7f50880
to
e65f69e
Compare
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.
making updates to pass in component name aliases
@@ -195,6 +195,10 @@ cli | |||
'Bypass Git safety checks and forcibly run codemods', | |||
false, | |||
) | |||
.option( | |||
'--c, --components <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.
should be one -
for single letter flag
@@ -195,6 +195,10 @@ cli | |||
'Bypass Git safety checks and forcibly run codemods', | |||
false, | |||
) | |||
.option( | |||
'--c, --components <components...>', | |||
'Specific component names to transform', |
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.
Maybe add some notes on the expected format/casing of these component names?
```jsx | ||
yarn lg codemod <codemode> <path> --ignore **/node_modules/** **/.next/** | ||
```js | ||
yarn lg codemod <codemod> <path> --ignore **/node_modules/** **/.next/** |
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.
nit: should we clarify that it's <codemod-name>
?
Size Change: +71 B (+0.01%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
7fa15ab
to
e02fa10
Compare
✍️ Proposed changes
--components
flag tolg codemod
command--components
flag topopover-v12
codemod🎟 Jira ticket: LG-4525
✅ Checklist
For bug fixes, new features & breaking changes
yarn changeset
and documented my changes🧪 How to test changes
leafygreen-ui-private
anddesign
repo