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/dbeaver/vscode#86/storybook integration #3251

Open
wants to merge 82 commits into
base: devel
Choose a base branch
from

Conversation

SychevAndrey
Copy link
Contributor

No description provided.

@SychevAndrey SychevAndrey requested a review from Wroud February 10, 2025 09:37
@SychevAndrey SychevAndrey self-assigned this Feb 10, 2025
@SychevAndrey SychevAndrey force-pushed the feat/dbeaver/vscode#86/storybook-integration branch 2 times, most recently from aeaf44d to 60369a4 Compare February 12, 2025 11:12
@SychevAndrey SychevAndrey force-pushed the feat/dbeaver/vscode#86/storybook-integration branch from bbfb88d to 574f786 Compare February 12, 2025 13:59
@SychevAndrey SychevAndrey marked this pull request as ready for review February 13, 2025 08:52
@Wroud
Copy link
Member

Wroud commented Feb 19, 2025

We need to use prefixes because we have different products and already have prefixes in the vs. code, so we can easily navigate to the correct part of the codebase; it's the same reason I suggested adding prefixes for class names. We can have multiple controls in our codebase (like one from UI Kit, and we may have one in each product as well)

"scripts": {
"build": "tsc -b",
"clean": "rimraf --glob dist",
"lint": "eslint ./src/ --ext .ts,.tsx"
Copy link
Member

Choose a reason for hiding this comment

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

--ext will not work in eslint 9+

Copy link
Contributor Author

@SychevAndrey SychevAndrey Feb 19, 2025

Choose a reason for hiding this comment

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

removed lint command for now. By the way, all our packages use exact same lint command, should we create a ticket to refactor it?

--btn-border-width: 1px;
--btn-border-color: transparent;
--btn-border-style: solid;
--btn-radius: var(--radius-md);
Copy link
Member

Choose a reason for hiding this comment

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

i think we need some base variables on the theme layout for global things like:

  1. controls radius - it may be used for buttons, inputs, text areas (examples)
  2. maybe padding (like spacing between elements)

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 added vars for border, but I'm not sure about spacing right now. First of all, we can use tailwind directly, they have spacing units like p(padding) and m(margin) based on rem, they have container units like w- and h- based on rem.
Plus, creating the layout and grid units is more about product, not the UI-kit itself until it's very opinionated and have to be used as is which is not true in our case. We can create components / recommendation/ guidelines of how to use spacing in the product.

@SychevAndrey SychevAndrey requested a review from Wroud February 20, 2025 08:49
Comment on lines 9 to 1
.p {
p {
Copy link
Member

Choose a reason for hiding this comment

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

why has class now changed to a global style? this is CSS module we should not use global selectors like that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@SychevAndrey SychevAndrey requested a review from Wroud February 21, 2025 11:55
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