CB-4619 user scope settings (#2471)

* CB-4619 feat: update gql schema

* CB-4808 bulk update user parameters

* CB-4808 param type fix

* CB-4619 feat: updateUserPreferences API


* CB-4619 refactor: settings api

* CB-4619 refactor: move file

* CB-4619 refactor: settings api

* CB-4619 fix: pr review

* CB-4619 refactor: remove web-based product settings

* CB-4619 fix: after pr review

* CB-4619 refactor: move product conf to cloudbeaver conf

* CB-4619 fix: hide settings bar and log exception with changing session language

* CB-4619 fix: revert after merge

* CB-4808 new settings api

* CB-4808 update product.conf format

* CB-4808 update product.conf format

* CB-4619 feat: support server provided settings

* CB-4619 feat: prettify settings

* CB-4619 chore: map sql editor settings group

* CB-4808 add use short/long object name settings to CloudBeaver

* CB-4808 update default product.conf

* CB-4808 mode short/long settings to SQLModelPreferences

* CB-4808 review fix

* CB-4619 refactor: unit tests

* CB-4619 fix: prevent websocket opening spam

* CB-4619 fix: dependencies

* CB-4619 fix: remove extra theme loading

* CB-4619 fix: rename settings alias resolver file

* CB-4619 fix: after review

* CB-4619 fix conflicts

* CB-4619 rename server property

* CB-4619 remove shortname property

* CB-4619 fix legacy product conf reading

* CB-4619 merge root and runtime configurations

* CB-4619 chore: remove log viewer setting

* CB-4619 integer fields with env variables fix

* CB-4619 fix: property naming

* CB-4619 fix: parseJSONFlat null values

* CB-4619 fix: settings loading

* CB-4619 fix: save only actual settings

---------

Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com>
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
Alexey
2024-03-28 10:30:52 +00:00
committed by GitHub
co-authored by Aleksandr Skoblikov kseniaguzeeva Evgenia Bezborodova
parent b54dd5380d
commit eaa26dfe52
380 changed files with 5094 additions and 3051 deletions
@@ -16,14 +16,17 @@ import { Settings } from '@cloudbeaver/plugin-settings-panel';
import style from './SettingsAdministration.m.css';
const clientScope = ['server'];
export const SettingsAdministration = observer<AdministrationItemContentProps>(function SettingsAdministration() {
const translate = useTranslate();
const serverSettingsService = useService(ServerSettingsService);
const notificationService = useService(NotificationService);
const styles = useS(style);
const changed = serverSettingsService.isEdited();
async function handleSave() {
if (!serverSettingsService.isChanged) {
if (!changed) {
return;
}
try {
@@ -44,8 +47,6 @@ export const SettingsAdministration = observer<AdministrationItemContentProps>(f
serverSettingsService.resetChanges();
}
const changed = serverSettingsService.isChanged;
return (
<Form context={form} className={s(styles, { form: true })}>
<ColoredContainer parent vertical wrap gap>
@@ -59,7 +60,7 @@ export const SettingsAdministration = observer<AdministrationItemContentProps>(f
</ToolsAction>
</ToolsPanel>
</Group>
<Settings source={serverSettingsService} />
<Settings source={serverSettingsService} accessor={clientScope} />
</ColoredContainer>
</Form>
);