From 38cd91765a545a93d4071f3c1d303d718c0bf661 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 17 Mar 2024 19:24:12 +0300 Subject: [PATCH] Naming refactoring and minor UI fixes --- .../frontend/src/app/Navigation/Logo.tsx | 2 +- .../src/components/ConstituentaSelector.tsx | 4 +- .../frontend/src/components/ui/Checkbox.tsx | 3 +- .../src/components/ui/CheckboxTristate.tsx | 4 +- .../src/components/ui/LabeledValue.tsx | 4 +- .../frontend/src/context/RSFormContext.tsx | 6 +-- .../DlgConstituentaTemplate/ArgumentsTab.tsx | 4 +- .../ConstituentaTab.tsx | 4 +- .../DlgConstituentaTemplate.tsx | 14 +++---- rsconcept/frontend/src/models/library.ts | 7 +++- rsconcept/frontend/src/models/rsform.ts | 39 +++++++++++++------ rsconcept/frontend/src/models/rsformAPI.ts | 13 ++++++- .../EditorConstituenta/EditorConstituenta.tsx | 4 +- .../RSFormPage/EditorRSList/EditorRSList.tsx | 10 ++--- .../pages/RSFormPage/EditorRSList/RSTable.tsx | 4 +- .../EditorTermGraph/EditorTermGraph.tsx | 18 ++++----- .../RSFormPage/EditorTermGraph/TermGraph.tsx | 9 +++-- .../RSFormPage/EditorTermGraph/ViewHidden.tsx | 12 +++--- .../frontend/src/pages/RSFormPage/RSTabs.tsx | 10 ++--- .../ViewConstituents/ConstituentsSearch.tsx | 4 +- .../ViewConstituents/ConstituentsTable.tsx | 6 +-- .../ViewConstituents/ViewConstituents.tsx | 6 +-- 22 files changed, 106 insertions(+), 81 deletions(-) diff --git a/rsconcept/frontend/src/app/Navigation/Logo.tsx b/rsconcept/frontend/src/app/Navigation/Logo.tsx index b5491fc9..6358d18d 100644 --- a/rsconcept/frontend/src/app/Navigation/Logo.tsx +++ b/rsconcept/frontend/src/app/Navigation/Logo.tsx @@ -10,7 +10,7 @@ function Logo() { return ( Логотип КонцептПортал { + (option: { value: ConstituentaID | undefined; label: string }, inputValue: string) => { const cst = items?.find(item => item.id === option.value); return !cst ? false : matchConstituenta(cst, inputValue, CstMatchMode.ALL); }, diff --git a/rsconcept/frontend/src/components/ui/Checkbox.tsx b/rsconcept/frontend/src/components/ui/Checkbox.tsx index 2b7d877c..ac0c6860 100644 --- a/rsconcept/frontend/src/components/ui/Checkbox.tsx +++ b/rsconcept/frontend/src/components/ui/Checkbox.tsx @@ -51,7 +51,6 @@ function Checkbox({ className={clsx( 'flex items-center gap-2', // prettier: split lines 'outline-none', - 'text-start', cursor, className )} @@ -79,7 +78,7 @@ function Checkbox({ ) : null} -