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: moves several components to our x namespace #3088

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Oct 22, 2024

We have various reasons to wrap, fix or otherwise rename some KComponents. This means that in order to know whether to use a X or K component, you need to know whether some sort of extra functionality/fixing/wrapping is required.

It would be much easier if all our generic GUI components were prefixed with X (we don't want to use K because we don't own that prefix)

This PR does several renames:

  1. KBadge > XBadge (we have a spearate XBadge implem.)
  2. KAlert > XAlert (just a rename for consistency)
  3. KPop > XPop (just a rename for consistency)
  4. KInputSwitch > XInputSwitch (just a rename for consistency)
  5. CodeBlock > XCodeBlock (we have a separate implem. to KCodeBlock)

One of the consequences of moving CodeBlock to x is that the code-block folder also contained an additional component ResourceCodeBlock. I have a long running task of reducing the amount of CodeBlock components we have (I think we had 4 or 5 at one point), and at some point soon I plan on merging this ResourceCodeBlock into XCodeBlock meaning we will only have 1 CodeBlock component in our application.

Lastly, there are still some outstanding K components that need a rename of a wrap, but I didn't want to do too much in a single PR.

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit a3a624f
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/67178f9785a5bb00087bf213
😎 Deploy Preview https://deploy-preview-3088--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.

@johncowen johncowen force-pushed the chore/k-to-x-pt1 branch 5 times, most recently from d249dfe to a8b2b35 Compare October 22, 2024 11:37
Signed-off-by: John Cowen <john.cowen@konghq.com>
@johncowen johncowen marked this pull request as ready for review October 22, 2024 11:48
@johncowen johncowen requested a review from a team as a code owner October 22, 2024 11:48
@johncowen johncowen self-assigned this Oct 22, 2024
Copy link
Contributor

@schogges schogges left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@slonka slonka left a comment

Choose a reason for hiding this comment

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

LGTM, I grepped the codebase and only found places where I think we rename K* to X*

src/app/x/index.ts Show resolved Hide resolved
@johncowen johncowen merged commit ccb5f63 into kumahq:master Oct 25, 2024
16 checks passed
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