Commit Graph
49 Commits
Author SHA1 Message Date
ffe3d45017 dbeaver/pro#5789 replace Buttons styles (#3468)
* dbeaver/pro#5789 refactor: add ButtonIcon component instead of Button.Icon

* dbeaver/pro#5789 refactor: button components across whole application to use UIKit button and UIKit variables

- Rewrite Button.css(former button.module.css) file to define button styles for better maintainability and scalability
- Added props to the Button component for Icons: 'size' and 'placement', currently used only in PropertiesTable (Add property)
- Changed button modifiers to 'variant' swapping unelevated mod to primary(default one, so mod just deleted) and outlined mod to variant secondary.
- In one case changed raised mod to danger variant (deleting a license)

* dbeaver/pro#5789 refactor: fix Button component styling and removed redundant css file

* dbeaver/pro#5789 style: clean up button formatting across multiple components

* dbeaver/pro#5789 refactor: update Tailwind CSS import to use layer directive

* dbeaver/pro#5789 refactor[kit]: add disabled state styles for buttons

* dbeaver/pro#5789 refactor: enhance button styles for disabled state

* dbeaver/pro#5789 fix button problems

* dbeaver/pro#5789 fix: change layer name from theme to base in color styles

* dbeaver/pro#5789 refactor: update button padding from 16px to 15px

* dbeaver/pro#5789 refactor: adjust button gap and update InputFiles button props

* dbeaver/pro#5789 style: center align button in SSHKeyUploader component

* dbeaver/pro#5789 fix: update button classes to use inline-flex for better alignment

* dbeaver/pro#5789 fix: remove initial background from tab styles

* dbeaver/pro#5789 fix: move cursor pointer rule to button container

* dbeaver/pro#5789 fix: update checkbox SVG fill property for proper rendering

* dbeaver/pro#5789 fix: add variant prop to Button component for styling options

* dbeaver/pro#5789 fix: add InlineEditor to CSS layer to compete with theme Important! border-color

* dbeaver/pro#5789 fix: add min-width to button styles for consistency

* dbeaver/pro#5789 refactor: adjust margin for trigger element in context menu

first of all it's done to fix autotests and the second reason is to visually balance the cell with menu

* dbeaver/pro#5789 fix: make boolean great again

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
2025-05-27 16:59:01 +08:00
655613ccf1 CB-6089 write file stream directly to http response (#3301)
* CB-6089 write file stream directly to http response

* CB-6089 write file stream directly to http response

* CB-6089 write file stream directly to http response

* CB-6089 write file stream directly to http response

* CB-6089 write file stream directly to http response

* CB-6089 remove deprecated method

* CB-6089 change ParquetExporter buffer size

* CB-6089 remove extra async

* CB-6089 add info text

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
2025-03-11 17:45:24 +01:00
Sychev Andreyandmr-anton-t a4102b28dd Feat/dbeaver/vscode#86/storybook integration (#3251)
* feat: add ui-kit package to common-react

* feat: add tailwind and ladle to ui-kit, use ui-kit in ce

* feat: create custom properties for button and checkbox using tailwind values as default

* feat: create simple button with 2 variants

* feat: create simple checkbox

* refactor: update after rebase

* feat: experiments with button and checkbox

* feat: add buttons sizes, adjust btn loader, add interactive story instead of many stories

* fix: add license

* fix: a11y issues with color contrast

* fix: mdx stories support

* feat: experiments with icons

* feat: try custom rendering

* docs: add small kinda docs for button

* refactor:  css layers

* chore: deps

* chore: remove buildinfo from git

* chore: remove tsbuildinfo from git

* fix: vertical tab overflow

* feat: use UIKit button as base for Cloudbeaver button

* fix: box-sizing problems

* refactor: button styles use BEM model

* refactor: separate base tokens from aliases

* refactor: add some defaults, write all properties in snake case

* refactor: rename button classes, add ui-kit prefix

* refactor: remove redundant story, omit a couple of props, add example to ladle

* refactor: add general sizes tokens, update license

* feat: add scaffold for input component

* refactor: update deps

* refactor: remove links

* refactor: change props naming, add prefixes in checkbox, removes validation nodes in input

* refactor: partially revert "feat: use UIKit button as base for Cloudbeaver button" to keep the old Button interface without changes

Original commit SHA: 62bb1fe9a0.

* Revert "refactor: update deps"

This reverts commit f7d6533967.

* refactor: update deps once again

* refactor: rename ui-kit prefix

* chore: update deps

* refactor: Button Icon Interface

* refactor: use JSDoc for placement comment

* refactor css custom props for Button

* refactor: introduce opacity custom property, fix icon margin property

* fix: button text should not wrap;

* fix: tailwindcss version

* fix: tailwindcss version

* refactor: remove checkbox styles, keep only wireframe

* refactor: move input-related css variables to the dedicated folder

* refactor: remove unused input props

* refactor: btn loader animation

* refactor: use nesting for states, refactor classnames using BEM delimiters

* refactor: introduce btn-border-width prop, removed redundant btn-padding-block since we use fixed heights

* refactor: input and button

* fix: input

* chore: deps

* chore: deps

* chore: add vite as dev dep

* refactor: button variants

* chore: yarn install

* fix: loading button should not react on hover

* docs: add stories about tokens

* chore:  remove lint command

* refactor: add prefix to css variables

* refactor: add base border-radius and border-width for controls

* fix: don't import tailwind in style files

* fix: add tailwindcss import for ladle

* fix: base radius variable

* refactor: rename css var

* refactor: add tw prefix for tailwind classes and vars

* fix: styles in easy-config

* fix: after tailwind reset paddings don't in width anymore, compensate

* fix: don't show outline on mouse click

* refactor: change btn state classes, remove not loading for hover because it's strange that button reacts on click when in loading state, but not on hover.

* fix: icons

* fix: add letter-spacing to normalize to prevent tailwind reset it with inherit value

* fix: welcome page selector

* fix: button outline uses a variable for width,  proper loading state in aria, icon class name

* feat: add global styles for UI-kit ladle

* docs: refactored stories composition, added stories

* refactor: simplify loader, enable custom loaders, introduced token for btn loader, fix class names, updated stories

* docs: add global styles for ladle

* feat: use custom loader in cloudbeaver

* refactor: use oklch color space for color mixing in loaders

* docs: add readme

* fix: tsconfig, format ladle config

* docs: add short command for ladle, update readme

* fix: module export

* build: add vite plugin

* fix: remove aria-label for loading

* fix: yarn

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2025-02-25 21:04:57 +08:00
Alexey 6ad148850d refactor: migrate to pure esm CB-5684 (#2929)
* refactor: migrate to pure esm

* chore: revert `useDefineForClassFields` tsconf

* chore: remove patch.js
2024-09-21 07:06:37 +03:00
c3ae4acdfb Cb 5164 deps update (#2675)
* CB-5164 update sup deps

* CB-5164 update typescript and mobx

* CB-5164 update react

* CB-5164 fix: specify only major versions

* CB-5164 fix class format

---------

Co-authored-by: Aleksei Potsetsuev <wrouds@gmail.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2024-06-05 13:29:38 +03:00
4cb171ed19 CB-5180 rename .m -> .module (#2679)
Co-authored-by: Alexey <wrouds@gmail.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2024-06-04 20:31:45 +03:00
alexandDaria Marutkina f548406446 CB-4676 change delete button text to cancel (#2499)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-03-27 14:44:34 +03:00
d8f197e8a7 CB-3832 fix notification text visibility for export ones (#2305)
Co-authored-by: s.teleshev <s.teleshev@mu.se>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-01-17 10:11:58 +03:00
serge-rider 904375aa66 dbeaver/pro#2341 Copyright update 2024-01-10 10:31:38 +03:00
alexandmr-anton-t 4d7ea213d4 CB-4392 support string type in useErrorDetails (#2235)
* CB-4392 support string type in useErrorDetails

* CB-4392 remove ExportNotification controller

* CB-4392 get error type from interface

* CB-4392 check hasDetails before pass callback

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2023-12-22 15:56:01 +01:00
5117dcc106 CB-4266 change notification display (#2184)
* CB-4266 notifications fixed size

* CB-4266 action snack bar fixed size

* CB-4266 snack bar fixed size

* CB-4266 export notification fixed size

* CB-4266 DataSynchronizationNotification fixed size

* CB-4266 ProcessSnackbar fixed size

* Revert "CB-4266 ProcessSnackbar fixed size"

This reverts commit 6a780e387f.

* CB-4266 all notifications container has 172px height

* CB-4266 revert styles

* CB-4266 use divs in notifications after removing of reshadow styles

* CB-4266 add license

* CB-4266 show only 1 notification visible

* CB-4266 export notification uses pre tag

* Revert "CB-4266 show only 1 notification visible"

This reverts commit 5e4b237abd.

* CB-4266 display notifications in fixed height window one by one

---------

Co-authored-by: s.teleshev <s.teleshev@mu.se>
Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
2023-12-13 17:38:07 +03:00
Alexey 4550a71298 Refactor CB-3819 resources (#2031)
* CB-3819 refactor: split resources to modules

* CB-3819 refactor: move resource API to separate package

* CB-3819 refactor: move resource API to separate package

* CB-3819 refactor: split to submodules

* CB-3819 chore: update ts configuration

* CB-3819 refactor: move administration top bar to separate plugin

* CB-3819 feat: update tests

* CB-3819 chore: add pre scripts

* CB-3819 fix: prebuild tests-runner

* chore: restore cache for jest-tests github action

* chore: update configs

* chore: add frontend build action

* chore: rename build frontend github action

* chore: include test dependencies

* fix: default product build script

* chore: update github action

* chore: rename validation github action

* chore: update typescript cache key

* chore: update naming for github actions

* chore: run tests on ubuntu

* CB-3819 fix: pre build tasks

* CB-3819 fix: ignore order

* CB-3819 fix: remove prettier from gql sdk
2023-10-05 23:36:54 +03:00
Alexeyanddariamarutkina 187d7e3aae CB-3255 fix: exporting element name (#1713)
* CB-3255 fix: exporting element name

* CB-3255 fix: node export

* CB-3255 fix: keep containerNodePath

---------

Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
2023-05-30 18:13:12 +03:00
Alexey 2b25b3ac8e Chore/prettier (#1706)
* chore: add prettier

* chore: format code
2023-05-28 02:42:14 +03:00
Alexey e1f9f1858b chore: update copyright year to 2023 (#1579) 2023-03-31 16:54:30 +03:00
Alexey 1f553fe315 CB-3193 refactor: suspense for data loading (#1524)
* CB-3193 refactor: suspense for data loading

* CB-3193 refactor: errors api

* CB-3193 fix: remove warn message
2023-03-06 18:59:05 +03:00
Wroud e2bc7b0f3d CB-2501 refactor: plugins structure 2022-10-04 16:32:09 +03:00
Wroud 19df786211 fix(plugin-blocks): CB-2030 pass persistent prop to snackbar 2022-08-23 22:26:59 +03:00
Wroud 46588ff3cc refactor: CB-2243 core-navigation-tree, plugin-datasource-context-switch, plugin-log-viewer, plugin-navigation-tree 2022-07-19 22:33:05 +03:00
Nikita Akilov fac1d3954d dbeaver/dbeaver-ee#1372 update copyright for year 2022 2022-01-18 19:47:55 +03:00
Naumov Alexey 1020dbfee4 feat(core-sdk): CB-1403 add AsyncTaskInfo fragment 2021-11-26 13:35:34 +03:00
Naumov Alexey 691c88b38c feat(core-sdk): CB-1403 add quota error 2021-11-26 00:08:00 +03:00
Wroud b6f80f9065 refactor: CB-1094 code style 2021-08-30 16:28:33 +03:00
Wroud ae41293003 chore: update copyright 2021-02-10 16:52:56 +03:00
serge-rider 77240bead3 Copyright update (2021) 2021-02-08 23:03:48 +03:00
Wroud 6504c02c88 chore: migrate to mobx 6 2021-01-18 23:44:21 +03:00
Wroud 3333d7da15 chore: update mobx to 6, use mobx-react-lite 2021-01-18 21:29:09 +03:00
Wroud 8bd37e43d8 fix(plugin-data-export): CB-580 query overflow styles 2020-12-02 15:31:02 +03:00
Wroud 28dde0d74a fix(core-blocks): CB-580 snackbar styles 2020-12-02 15:26:14 +03:00
Naumov Alexey 8e7be51202 refactor(plugin-data-export): CB-479 controller.isPending -> status 2020-11-16 18:45:05 +03:00
Naumov Alexey 1a7f232c34 refactor(plugin-data-export): CB-479 fixed resolve type 2020-11-16 18:41:32 +03:00
Naumov Alexey f3b0eaad47 refactor(plugin-data-export): CB-479 replaced isSuccess, isPending, hasDetails with state (ENotificationType) 2020-11-16 18:35:38 +03:00
Naumov Alexey 2cb90a73b5 refactor(core-blocks): CB-479 remove message from SnackbarBody, revert closeable prop 2020-11-12 13:18:51 +03:00
Naumov Alexey 9108044268 refactor(core-blocks): CB-479 apply reusable snackbar components to all types of snackbars 2020-11-09 15:57:57 +03:00
Naumov Alexey c33174de07 feat(core-blocks): CB-397 add process snackbar to show disconnecting process
CB-397
2020-11-03 20:01:08 +03:00
Naumov Alexey b8bc52c5f5 improvement(core-blocks): CB-185 remove use memo
CB-185
2020-10-15 18:04:12 +03:00
Naumov Alexey b889263741 improvement(core-blocks): CB-185 translate(title) => const translatedTitle;
CB-185
2020-10-15 17:32:49 +03:00
Naumov Alexey ee6053e671 improvement(core-blocks): CB-185 added ellipsis for snackbar title
CB-185
2020-10-15 17:03:11 +03:00
Naumov Alexey 06aef1c2ad improvement(core-blocks): CB-185 changed loader styles in custom snackbar
CB-185
2020-10-15 15:28:36 +03:00
Naumov Alexey 9c498e62c0 improvement(core-blocks): CB-185 custom snackbar redesign, styles fixes
CB-185
2020-10-15 13:34:53 +03:00
Wroud e340338c5c chore: linting improvements 2020-10-11 20:58:46 +03:00
Wroud 4363633d71 chore: lint improvements 2020-10-08 21:06:24 +03:00
Wroud 5d27f2b8f2 chore: lint improvements 2020-10-05 19:36:24 +03:00
Wroud bf4a8d1e60 fix(core-events): CB-217 improve notifications typings 2020-10-05 16:48:25 +03:00
Wroud bd66fada51 fix(core-notifications): CB-217 some refactoring 2020-10-05 02:22:33 +03:00
Naumov Alexey ad7c373e81 feature(core-blocks): refactored custom notification function
CB-217
2020-10-04 14:54:29 +03:00
Wroud fc9cb15644 refactor(core): extract connections and notifications to own package
CB-186
2020-08-06 13:48:13 +03:00
Wroud ccd067f841 fix: remove type attr from link tag 2020-07-13 13:46:58 +03:00
Wroud ff1928b2b8 chore: remastered build system 2020-06-19 19:31:20 +03:00