Skip to content

Conversation

@HerrTopi
Copy link
Contributor

@HerrTopi HerrTopi commented Dec 8, 2025

TEST_PLAN:

run pnpm run build:themes. Check the resulting data. It now should parse jsons with multiple components and subcomponents properly. An example is Tabs. It has Tabs.Panel and Tabs.Tab as subcomponents. It should generate 3 files from that json: tabs, tabsPanel and tabsTab.

All componentID based override (from the docs) should work as before, without change.

the change also contains the migration of tabs and tray, check with the desing documentation

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2025-12-12 12:31 UTC

@HerrTopi
Copy link
Contributor Author

HerrTopi commented Dec 9, 2025

build:themes currently breaks, when design fixes the issue, a rebase will resolve it in our end

RESOLVED

@ToMESSKa
Copy link
Contributor

ToMESSKa commented Dec 10, 2025

I think that border is missing here:
image
see in v11:
image

edit: it must be that solid typo

import type { TabsTabProps, TabsTabStyle } from './props'

type StyleParams = {
loaded: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think loaded is used here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy+paste mistake, thanks for catching it

Copy link
Contributor

Choose a reason for hiding this comment

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

@HerrTopi You forgot to remove 'loaded' from here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, this time for real :D

Copy link
Contributor

@ToMESSKa ToMESSKa left a comment

Choose a reason for hiding this comment

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

see my comments

@ToMESSKa
Copy link
Contributor

the upgrade guide should be updated too as some tokens were renamed

Copy link
Collaborator

@matyasf matyasf left a comment

Choose a reason for hiding this comment

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

See my comments.

)

const componentFileContent = `
subcomponents.forEach(async (subcomponent, subcomponentIndex) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should use here a for...of, so the return value of the promises is not ignored

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this should be an issue in this case. What return value do I attempt to use anyways?
My main reason not to change this is that I need the index as well and if I use the for-of pattern, I need to set up a counter.

Please tell me if I misunderstand something

import type { TabsTabProps, TabsTabStyle } from './props'

type StyleParams = {
loaded: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

@HerrTopi You forgot to remove 'loaded' from here

@HerrTopi HerrTopi merged commit 78ab84f into v12 Dec 12, 2025
6 of 7 checks passed
@HerrTopi HerrTopi deleted the parser branch December 12, 2025 12:31
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.

4 participants