4237 Commits
Author SHA1 Message Date
AnastasiyaandEvgenia 70b6fc25a9 CB-6088 fix upper cases in localization; add localization (#3168)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-30 16:46:47 +01:00
sergeyteleshevandEvgenia efd0be6a1a Cb 5448 sql assist doesnt work after alias with enabled use long object names (#3140)
* CB-5448 adds replacementOffset logic to autocomplete so we have table long names setting

* CB-5448 cleanup

* CB-5448 cleanup

* CB-5448 pr fixes

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-30 11:41:30 +01:00
ca83a1f167 CB-5734 return template configuration for auth provider (#3162)
* CB-5734 return template configuration for auth provider

* CB-5734 feat: fetch templateConfiguration

---------

Co-authored-by: Sychev Andrey <44414066+SychevAndrey@users.noreply.github.com>
Co-authored-by: Andrey Sychev <nukemoore@gmail.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-27 17:58:15 +01:00
3c73cb2aa8 CB-4756 feat: save grouping panel state between remounts (#3158)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
2024-12-26 11:00:55 +01:00
sergeyteleshevandDaria Marutkina 8f61321169 CB-5978 api token change description (#3160)
* CB-5978 hides API Token provider during configuration wizzard

* CB-5978 hides API token only for config mode (fix)

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-12-25 16:15:48 +01:00
aa778e0f94 CB-6059 create team with uppercase fix (#3142)
* CB-6059 create team with uppercase fix

* CB-6069 fixes error with team creation with teamId in upper case

* CB-6059 fix potential npe

---------

Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-12-25 12:36:53 +01:00
398f9b775e Cb 5988 plugin template (#3136)
* CB-5988 generate plugin template

* CB-5988 add add plugin script

* CB-5988 review fixes

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
2024-12-24 14:20:08 +01:00
78aafaf9aa CB-3508 create events for session async tasks (#3036)
* CB-3508 create events for session async tasks

* CB-3508 remove redundant events

* CB-3508 update async web task event logic

* CB-6000 refactor: migrate AsyncTask code to core-root package

* CB-6000: fix

* CB-3508 use only update async task event

* CB-3508 add result info to async task event

* CB-6000 feat: change the way of updating task state

* CB-6000 refactor: rename type and property

* CB-6000 fix: use id from server

* CB-3508 do not have results in task info event

* CB-6000 changes after BE update

* CB-6000 fix: set only status on status update

* CB-3508 fixes after review

* CB-6000 refactor: task id

return back task id generation and saving on creation. Added second map filled on running and linking backend Id and frontend Id. Added helper method to get task

* CB-6000 refactor: handle race condition

add pending events map to save last status if it's came earlier than we saved the task

* CB-6000 refactor: AsyncTask creation

* CB-3508 fixes build

* CB-6000 fix: retry update task info later if locked

* CB-6000 refactor: add a comment about delayed update

---------

Co-authored-by: Andrey Sychev <nukemoore@gmail.com>
Co-authored-by: Sychev Andrey <44414066+SychevAndrey@users.noreply.github.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-12-24 13:45:16 +01:00
Serge Rider 48e0cda85d dbeaver/pro#3857 24.3.2 version bump 2024-12-17 20:52:08 +01:00
855d5914ef CB-5074 fix: temporary fix of setting undefined as locale (#3139)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
2024-12-17 16:43:53 +01:00
sergeyteleshevandEvgenia eada3fddb5 CB-5955 Add create connection/folder actions in navigator tree (#3130)
* CB-5955 adds create menu (connection, folder)

* CB-5955 hides folder creation for non authorized users

* CB-5955 fixes label

* CB-5955 disable new connection

* CB-5955 shows create actions only for folders and connections nodes

* CB-5955 cleanup

* CB-5955 Add handler to hide create menu when no items are available

* CB-5955 Refactor handler to directly bind elementsTreeActionHandler for folder creation

* CB-5955 pr fixes

* CB-5955 creates connection according to the selected in tree project + tree selection refactor

* CB-5955 reverts old behavior with Generate SQL submenu for connections

* CB-5955 cleanup

* CB-5955 adds connection via menu into any folder

* CB-5955 updates TS references

* CB-5955 cleanup

* CB-5955 pr fixes

* CB-5955 pr fixes

* CB-5955 pr fixes

* CB-5955 cleanup

* CB-5955 fixes bug with dissapeared create connection button at top bar

* CB-5955 pr fixes

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-16 17:01:32 +01:00
alex 92c7cef0c6 CB-6039 prevent click through menu (#3134)
* CB-6039 prevent click through menu

* CB-6039
2024-12-16 14:02:43 +03:00
alexandEvgenia ea342f058b Cb 4071 data grid context menu (#3114)
* CB-5831 migrate data grid context menu

* CB-5831 use switch instead of return

* CB-5831 migrate save actions

* CB-5831 apply primary color

* CB-4071 simplify logic

* CB-4071 simplify logic

* CB-4071 change naming

* CB-4071 review fixes

* CB-4071 add items based on condition

* CB-4071 remove old context menu

* CB-4071 pass handlers to panel

* CB-4071 add gap to the menu

* CB-4071 check data source

* CB-4071 support prev behaviour

* CB-4071 make context more strict

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-12 18:50:21 +03:00
alexandEvgenia db9df1f810 Cb 5831 refresh whole tree (#3129)
* CB-5831 outdate children when refresh node

* CB-5831 freeze resource until tree is constructed

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-12 14:20:16 +03:00
Sychev AndreyandDaria Marutkina 2f80d1ce13 CB-3332 shortcuts improvements (#3126)
* CB-3332 refactor: data-viewer shortcuts

move them to the plugin folder, make them IKeyBinding shape to use in transformKeys

* CB-3332 refactor: change ctrl hotkey to mod

* CB-3332 refactor: use new DATA_VIEWER_SHORTCUTS, don't replace backspace

* CB-3332 refactor: remove redundant shortcuts, update naming

* CB-3332 feat: introduce new shortcuts for rows managing

In order to let mac users use shortcuts, Insert key was changed to KeyR

* CB-3332 feat: move shift key to the beginning of all shortcuts

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-12-12 14:19:34 +03:00
6830e34b2a CB-5933 Connection state is not synchronized with other resources triggering connection state (#3119)
* CB-5933. Added event for disconnect datasource

* CB-5933. Added to gql

* CB-5933 adds handlers for disconnected/connected events

* CB-5933. Rename topic

* CB-5933. Rename topic

* CB-5933. Added event for connect to database

* СB-5933 adds ConnectionDisconnectEventHandler

* CB-5933. Fixed typo

* CB-5933 fixes disconnect handler + adds connect handler for connections

* CB-5933 fix for connected event

* СB-5933 marks outdated connected/disconnected connections on event handling

* CB-5933 cleanup

* CB-5933 pr fixes

* CB-5933 pr fixes

* CB-5933. Refactor after review

---------

Co-authored-by: denis.sinelnikov <denis.sinelnikov@dbeaver.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-12 11:27:12 +01:00
22af3b1c5e CB-5935 removes perform update for changing connection view (#3124)
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-12-11 13:16:09 +03:00
d09bb9bb58 CB-4070 Migrate Project form to form template (#3101)
* CB-4070 small layout issues problems from the ticket comments

* CB-4070 ux fixes for project create/edit behavior

* CB-4070 pr fixes

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-12-11 11:05:27 +03:00
Alexeyandsergeyteleshev 2357b0a0cf fix: dev server websocket proxy (#3122)
Co-authored-by: sergeyteleshev <iamsergeyteleshev@gmail.com>
2024-12-06 14:14:58 +03:00
Sychev Andreyandmr-anton-t a835f7e215 Cb 5860 bump versions (#3116)
* CB-5860 chore: bump versions

* CB-5860 chore: bump i18next

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2024-12-06 07:39:49 +03:00
alex 85bfcc0674 CB-4898 remove extra deps (#3100) 2024-11-28 12:04:47 +03:00
sergeyteleshev ff2cc51c11 CB-5872 adds instruction with link for AWS product updation (#3098) 2024-11-26 22:33:27 +08:00
Serge Rider 979cecff04 dbeaver/pro#3712 24.3.1 version bump 2024-11-25 23:25:38 +04:00
b2a0a88983 CB-5918 Add new plugin (#3081)
* CB-5918 add holidays plugin

* CB-5918 add plugin-holidays as a reference to product default

* CB-5918 fix holidays plugin, add icons

* CB-5918 fix: don't run many renders simultaneously

* CB-5918 fix: flakes respawn

previously flakes kept x position that looked weird especially when user resize the window making it bigger

* CB-5918 refactor: adjust flakes size and speed

make flakes bigger and a little bit slower, reduce amount of flakes

* CB-5918 refactor: make flakes look like flakes

add shape prop to create different shapes of snowflakes

add drawSnowflake to render snowflakes

* CB-5918 Extract Logo registration to separate plugin

In order to customize Logo for different occasions without creating circular dependencies with other plugins

* CB-5918 refactor: update exports in holiday plugin

* CB-5918 feat: make logo src a prop

use holidays service to set custom logo

* CB-5918 refactor: update logos

* CB-5918 refactor: snowflakes removing faster if more flakes

* CB-5918 refactor: reduce action icon rotation on click

* CB-5918 fix: deps

* CB-5918 fix: ts-config reference

* CB-5918 refactor: use debounce for resizing

* CB-5918 refactor: add throttle to handleMouseMove

* CB-5918 refactor: update logo

* CB-5918 fix: start date

* CB-5918 feat: add rotation to snowflakes

* CB-5918 fix: dep version

* CB-5918: refactor: split up app logo plugin to public and admin parts

* CB-5918 refactor: split holidays plugin up to two parts: admin and public

* CB-5918 refactor: avoid using anonymous functions in Christmas class

* CB-5918 refactor: HolidayActionButton

* CB-5918 refactor: IHoliday interface naming

* CB-5918 fix: update TS refs

* CB-5918 fix: legacy color notation and lost this

* CB-5918 refactor: remove redundant plugin bootstrap export

* CB-5918 refactor: rename private property

* CB-5918 refactor: use IconButton core block inside HolidayActionButton

* CB-5918 refactor: add check in addHoliday method

* CB-5918 refactor: simplify logoSrc condition

* CB-5918 refactor: remove redundant styles

* CB-5918 refactor: use descriptive names for plugins bootstrap

* CB-5918 refactor:  specify dep version

* CB-5918 refactor: improve Christmas class readability

* CB-5918 refactor: use lazy import for logo

* CB-5918 refactor: export lazy components properly

* CB-5918 fix: holiday end date

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2024-11-25 21:09:01 +03:00
alexandDaria Marutkina 285a216b4c CB-5125 do not trigger logo in configuration stage (#3096)
* CB-5125 do not trigger logo in configuration stage

* CB-5125 use publicDisabled field instead

* CB-5125 bind method

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-25 18:13:54 +01:00
alex 6a82a3155f CB-5506 support directional selections (#3095) 2024-11-25 18:18:26 +03:00
alexandDaria Marutkina bde31c3653 CB-5960 sort features (#3089)
* CB-5960 sort features

* CB-5960 sort providers

* CB-5960 sort on component level

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-22 17:59:15 +03:00
990fbe28f5 CB-5895. Added new parameter link to buy license for getProductInfo API (#3080)
* CB-5895. Added new parameter link to buy license for getProductInfo API

* CB-5951 add purchase field

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
2024-11-22 13:16:41 +01:00
alexandEvgenia 56b9eab16f CB-5919 avoid unnecessary navigations tasks (#3090)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-21 17:27:25 +03:00
Sychev AndreyandEvgenia 94aaf7bf5e CB-5703 refactor: optimize data grid onScroll handler (#3071)
handleScroll in DataGrid entails small performance degradation due to el.scrollTop, el.clientHeight, el.scrollHeight calls and hence reflow of layout, more on that here: https://gist.github.com/paulirish/5d52fb081b3570c81e3a/565c05680b27c9cfd9f5e971d295cd558c3e1843

What is done:
1. throttle added to not fire handleScroll on every render, because the main goal of that function is to detect when a user approaches the end of a page = reduce number of calls

2. Inside the handler the code was  refactored in a way that we get scrollTop only once to calculate toBottom and inverse the clause logic and replace early return (!A || !B) with a clause with (A && B) logic to not check B on every call which is also triggering reflow.

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-21 16:00:56 +03:00
alexandDaria Marutkina e56a298acc CB-5573 ask for commit confirmation on connection edit recconect (#3085)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-20 17:08:45 +01:00
AnastasiyaandDaria Marutkina 21a70c33a3 CB-5947 fix server config descriptions (#3079)
* CB-5947 fix server config descriptions

* Update ru.ts change description

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-20 12:54:19 +03:00
4323578b03 СB-5796 Metadata/data editor - error when changing server settings (#3051)
* СB-5796 make no connection to db if it is already connected

* Revert "СB-5796 make no connection to db if it is already connected"

This reverts commit 4459891e06.

* CB-5796 adds extra checks to connection shield for proper connection

* CB-5796 fixes for case with table

* CB-5796 adds loader between switching from simple to advanced connection type

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: alex <48489896+devnaumov@users.noreply.github.com>
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-20 09:37:02 +03:00
Serge Rider bbe0e15370 dbeaver/pro#3641 24.3.0 version bump 2024-11-12 22:01:04 +01:00
cee8f00b9e CB-5016 add disable import option to global config (#3058)
* CB-5016 add disable import option to global config

* CB-5016 refactor: move logic from DataViewerSettingService to DataImportSettingsService

* CB-5016 refactor: simplify

* CB-5016 refactor: move disable import locale token to data-import-plugin

* CB-5016 refactor: ru locale

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
Co-authored-by: alex <48489896+devnaumov@users.noreply.github.com>
2024-11-12 18:33:22 +01:00
Sychev AndreyandDaria Marutkina a23c2c2a55 CB-5775 refactor: make default group text aligned with other tabs (#3064)
* CB-5775 refactor: make default group text aligned with other tabs

* CB-5775: return accidentally removed gap prop

* CB-5775 refactor: return TextPlaceholder back

* CB-5775 refactor: make style important

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-12 18:27:15 +01:00
sergeyteleshev 110546a022 CB-5833 Fix e-mails recognition for SSO (#3019) 2024-11-12 16:17:49 +00:00
sergeyteleshevandEvgenia 3b9275c00a CB-5891 User - error after disabling and deleting (#3056)
* CB-5891 on disable user changes form state according to its real state

* CB-5891 pr fixes

* CB-5891 cleanup

* CB-5891 pr fixes

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-11 14:27:04 +03:00
59c924c3d7 CB-5555 fix cursor going to the beginning on undo/redo (#3055)
This commit handles the situations and sets fallback when there are text changes but selection has not been set (for example, its position outside of the doc). It that case we set the cursor in the end of the result string. It helps us to keep the cursor position more consistent.

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2024-11-11 14:24:29 +03:00
sergeyteleshevandalex f1d1bb2bc2 CB-5691 AI prompt - add shortcut for Translate action (#3059)
* CB-5691 adds ctrl+enter submit for textarea in form

* CB-5691 removes unneeded prop: disableCtrlEnterSubmit

---------

Co-authored-by: alex <48489896+devnaumov@users.noreply.github.com>
2024-11-11 14:23:27 +03:00
Sychev Andrey c9a87275db CB-3757 fix: change white-space prop (#3065) 2024-11-11 14:21:24 +03:00
Sychev AndreyandDaria Marutkina addeeb0c28 CB-5765 refactor: remove word local from the phrase (#3063)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-08 16:01:12 +01:00
alexandEvgenia 7735550544 CB-5743 add autoGenerated field to api (#3043)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-08 15:59:31 +01:00
alexandmr-anton-t f75caccb73 CB-5907 add labels to user and team form (#3049)
* CB-5907 add labels to user and team form

* CB-5907 fix structure

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
2024-11-07 13:25:34 +03:00
Sychev AndreyandDaria Marutkina 33c75c5ee4 CB-5878 add title for inline editor button (#3042)
* CB-5878 add title for inline button

* CB-5878 refactor: change reject to cancel, add other locales

---------

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
2024-11-06 14:41:55 +03:00
sergeyteleshevandEvgenia 30e4e6c9bf CB-5892 removes min fetch size setting (#3039)
* CB-5892 removes min fetch size setting

* CB-5892 edits min fetch to 10

---------

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-06 14:38:57 +03:00
sergeyteleshevandEvgenia 7c8c506870 CB-5290 handles messages and closing for readonly scripts (#3034)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
2024-11-06 14:37:25 +03:00
Ainur 4380ac1f3c CB-5738 api for tokens (#3023) 2024-11-05 12:32:08 +00:00
Alexey 80c757f25b dbeaver/dbeaver-vscode#38 feat: navigation tree (#3038)
* dbeaver/dbeaver-vscode#38 feat: navigation tree

* dbeaver/dbeaver-vscode#38 chore: code style

* dbeaver/dbeaver-vscode#38 chore: rename `navRefreshNode` -> `navReloadNode`
2024-11-04 14:36:25 +03:00
Serge Rider a51bb2f4dc dbeaver/pro#3537 24.2.5 version bump 2024-10-30 05:43:23 +01:00