-
Notifications
You must be signed in to change notification settings - Fork 0
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: refactor Button and Anchor #492
Conversation
some breaking changes such as link renamed into href but since Anchor is in alpha mode, no bump in main version
WalkthroughThe recent updates across various components and documentation primarily involve standardizing the use of the Changes
These modifications ensure the components are more adaptable and maintainable, reflecting modern web standards. Recent Review DetailsConfiguration used: .coderabbit.yaml Files selected for processing (14)
Additional Context UsedLearnings (5)
Additional comments not posted (22)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Bundle Size (components)
Overall bundle size: 80.75 KB (+141 B +0.17%) Bundle Size (form components)
Overall bundle size: 49.23 KB (+8 B +0.02%) Bundle Size (system)
Overall bundle size: 53.6 KB (+104 B +0.19%) |
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.
Actionable comments posted: 1
Actionable comments outside the diff hunks (1)
packages/ui-components/src/components/index.ts (1)
[!TIP]
Codebase VerificationThe search results indicate that
ButtonLink
is still actively used within the project, particularly in theAnchor
component and its associated type definitions, as well as extensively in unit tests for theButtonLink
component itself. This suggests that the removal ofButtonLink
from the exports inindex.ts
could potentially lead to issues if other parts of the project or external consumers rely on this export to useButtonLink
.Given this context, it is crucial to ensure that the removal of
ButtonLink
from the exports was intentional and that any necessary refactoring or communication about this change has been handled appropriately to avoid breaking functionality.Analysis chain
Line range hint
1-1
: The removal ofButtonLink
from the exports list is a significant change. Confirm that this is intentional and communicate this change clearly in the changelog or migration guide to prevent breaking changes for consumers.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining imports of ButtonLink that might be affected by its removal from exports. rg --type typescript "ButtonLink"Length of output: 68
Script:
#!/bin/bash # Correcting the previous script to properly search for references to ButtonLink in TypeScript files rg "ButtonLink" --type tsLength of output: 3316
🤖 I have created a release *beep* *boop* --- <details><summary>ui-components: 5.14.5</summary> ## [5.14.5](ui-components-v5.14.4...ui-components-v5.14.5) (2024-04-14) ### Bug Fixes * refactor Button and Anchor ([#492](#492)) ([58b2df0](58b2df0)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: aversini <[email protected]>
some breaking changes such as link renamed into href but since Anchor is in alpha mode, no bump in main version
Summary by CodeRabbit
New Features
href
attribute instead oflink
.target
,className
, andnoTruncate
across different UI components for enhanced customization and functionality.Anchor
andButton
components in the documentation to showcase the usage of new properties.Bug Fixes
ButtonLink
andAnchor
components to ensure proper functionality.Documentation
Refactor
onClick
andtype
fromButton
components to streamline component interfaces.noTruncate
property, improving button text handling.