Skip to content
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

chore: Remove RouterLink from globals, its replaced by XAction #2873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Sep 5, 2024

Replaces all remaining instances of RouterLink with XAction, then removes RouterLink from eslint globals.

Note: RouterLink is still available for use, its just harder to use.


Replaces all remaining instances of KButton with XAction. XAction uses KButton under-the-hood


Why:

XAction is one single component for "let the user click this to perform an action". Engineers don't need to think about whether it should be a button, an anchor, a RouterLink, a KButton or something else and occasionally make the wrong choice. Just use XAction and all will be good.

XAction also comes with extra functionality to easily be able to update URL query strings with boolean ?active to mean active=true.

#2273


Lastly I've been waiting for a good time to do this (i.e. I don't have another bunch of potentially conflicting PRs up), and now felt like a good time to do it.

Signed-off-by: John Cowen <john.cowen@konghq.com>
Copy link

netlify bot commented Sep 5, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit 6af9f65
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/66d999aff06f0c00081be0fd
😎 Deploy Preview https://deploy-preview-2873--kuma-gui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: John Cowen <john.cowen@konghq.com>
@johncowen johncowen marked this pull request as ready for review September 5, 2024 11:56
@johncowen johncowen requested a review from a team as a code owner September 5, 2024 11:56
@johncowen johncowen self-assigned this Sep 5, 2024
@johncowen johncowen removed their assignment Sep 13, 2024
@johncowen johncowen added this to the 2.10.x milestone Sep 16, 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.

1 participant