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

feat: new ui kit components #5546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: new ui kit components #5546

wants to merge 1 commit into from

Conversation

kandl
Copy link
Contributor

@kandl kandl commented Nov 11, 2024

Add guide to write new components.

Add new components to the UI kit:

  • UiButton
  • UiIcon

Also add screenshot tests for them.

Add default theme and theming validation, to avoid growing
of the inconsistent default values in the theming variables.

Add generation of the default scss theme.

Suffix theming variables with inconsistent default values with
-from-theme suffix, so we can start to use the default theme
in scss and still keep theming backward compatible.
These variables will be set only if ThemeProvider will set them,
so they will be themed the same way as before, but keep
fall backing to the default value, even with default theme set.

Add experimental ScopedThemeProvider.

risk: low
JIRA: F1-123


Important

Please, don't forget to run rush change for the commits that introduce new features 🙏


Refer to documentation to see how to run checks and tests in the pull request. This is the list of the most used commands:

extended test - backstop
extended test - tiger-cypress - integrated
extended test - tiger-cypress - isolated
extended test - tiger-cypress - record

@gooddata
Copy link

gooddata bot commented Nov 11, 2024

Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22321/ finished with 'FAILURE' status.

@kandl kandl force-pushed the new-kit-wip branch 3 times, most recently from fcc83b3 to d2a9d77 Compare November 18, 2024 09:04
@kandl
Copy link
Contributor Author

kandl commented Nov 18, 2024

extended test - backstop

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22414/ finished with 'SUCCESS' status.

@kandl kandl marked this pull request as ready for review November 18, 2024 09:28
@kandl
Copy link
Contributor Author

kandl commented Nov 18, 2024

extended test - backstop

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22425/ finished with 'SUCCESS' status.

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-pull-request-dispatcher-pipeline at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-pull-request-dispatcher-pipeline/2332/ finished with 'FAILURE' status.

@kandl
Copy link
Contributor Author

kandl commented Nov 18, 2024

extended test - backstop

@kandl
Copy link
Contributor Author

kandl commented Nov 18, 2024

extended test - backstop

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22432/ finished with 'SUCCESS' status.

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-pull-request-dispatcher-pipeline at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-pull-request-dispatcher-pipeline/2333/ finished with 'FAILURE' status.

@kandl
Copy link
Contributor Author

kandl commented Nov 18, 2024

extended test - backstop

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22433/ finished with 'SUCCESS' status.

@gooddata
Copy link

gooddata bot commented Nov 18, 2024

Job gooddata-ui-sdk-pull-request-dispatcher-pipeline at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-pull-request-dispatcher-pipeline/2335/ finished with 'FAILURE' status.

Add guide to write new components.

Add new components to the UI kit:
- UiButton
- UiIcon

Also add screenshot tests for them.

Add default theme and theming validation, to avoid growing
of the inconsistent default values in the theming variables.

Add generation of the default scss theme.

Suffix theming variables with inconsistent default values with
`-from-theme` suffix, so we can start to use the default theme
in scss and still keep theming backward compatible.
These variables will be set only if ThemeProvider will set them,
so they will be themed the same way as before, but keep
fall backing to the default value, even with default theme set.

Add experimental ScopedThemeProvider.

risk: low
@kandl
Copy link
Contributor Author

kandl commented Nov 19, 2024

extended test - backstop

@gooddata
Copy link

gooddata bot commented Nov 19, 2024

Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22443/ finished with 'SUCCESS' status.

Follow these rules:
- Use prefixes for root elements to avoid class name collisions (e.g., `.gd-ui-kit-button`, `.gd-ui-kit-icon`).
- Minimize nesting and overrides for better readability and maintainability
- Avoid using margins for root elements; components should not affect the layout of their parent or sibling elements.
Copy link
Contributor

Choose a reason for hiding this comment

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

"must not" instead of "should not" in this and the next sentence.


## Layouting

Component should care only about its own layout.
Copy link
Contributor

Choose a reason for hiding this comment

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

Must here and the next sentence.

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