Skip to content

chore: stop using kongponents#5042

Draft
johncowen wants to merge 2 commits into
kumahq:masterfrom
johncowen:chore/remove-kongponents
Draft

chore: stop using kongponents#5042
johncowen wants to merge 2 commits into
kumahq:masterfrom
johncowen:chore/remove-kongponents

Conversation

@johncowen

@johncowen johncowen commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Stop using kongponents i.e. don't install them globally anymore

We use @kumahq/x now instead and have done for quite a while.


I also did some checking here on bundle reduction size:

# master
dist/assets/index-BqGd6Mxt.js                                              1,435.59 kB │ gzip: 439.39 kB
# this PR
dist/assets/index-D2BHdZfV.js                                              1,110.26 kB │ gzip: 343.58 kB

savings of 100kb gzipped and the parsing etc of that 🎉

@netlify

netlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit 0bafdf3
🔍 Latest deploy log https://app.netlify.com/projects/kuma-gui/deploys/6a3e8c00ac68f8000874047e
😎 Deploy Preview https://deploy-preview-5042--kuma-gui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@johncowen
johncowen force-pushed the chore/remove-kongponents branch 3 times, most recently from ed30a1a to 886b2dc Compare June 18, 2026 11:56
@johncowen
johncowen marked this pull request as ready for review June 18, 2026 12:03
@johncowen
johncowen requested a review from a team as a code owner June 18, 2026 12:03
@johncowen
johncowen requested a review from schogges June 18, 2026 12:03
schogges
schogges previously approved these changes Jun 22, 2026

@schogges schogges left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

I suppose we are aiming to remove @kong/kongponents from the kuma-gui manifest. Which requires to have some more exports from x that are currently being imported from @kong/kongponents.

@johncowen

Copy link
Copy Markdown
Contributor Author

Oh sorry I forgot to mention, from what I remember this dramtically reduces our bundle size because we no longer globally use/install kongponents.

I suppose we are aiming to remove @kong/kongponents from the kuma-gui manifest. Which requires to have some more exports from x that are currently being imported from @kong/kongponents.

If I understood right I think this might be a reference to the couple of kongponents imports that are left in kuma-gui. In which case the answer is yes. Ideally these would also come from kumahq/x.

I think the only thing holding me back here is simply choosing a good name for one of the things that are left and then moving the ones that are left (I guess we'll have XPagination and some sort of XDataTable or something like that.

My main thing here was the reduction in bundle size though, I can circle back soon to remove these last few references and then remove from the kuma-gui manifest entirely.

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

Copy link
Copy Markdown
Contributor Author

FYI: I rebased and added a commit to sort out eslint so it tells us if we try and use a kongponent globally, will need another approval 😬

@johncowen

Copy link
Copy Markdown
Contributor Author

I also did some checking here on bundle reduction size:

# master
dist/assets/index-BqGd6Mxt.js                                              1,435.59 kB │ gzip: 439.39 kB
# this PR
dist/assets/index-D2BHdZfV.js                                              1,110.26 kB │ gzip: 343.58 kB

savings of 100kb gzipped and the parsing etc of that 🎉

@johncowen
johncowen marked this pull request as draft June 26, 2026 15:17
johncowen added a commit that referenced this pull request Jul 16, 2026
Similar to #5042, we use
@kumahq/x now instead and have done for quite a while.

Note: I plan on adding
https://stylelint.io/user-guide/rules/no-unknown-custom-properties/ very
soon as a follow up.

---------

Signed-off-by: John Cowen <john.cowen@konghq.com>
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.

2 participants