From 12c202adff80739adc31cd552f94194e94492f90 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 15 Jul 2025 13:30:41 +0300 Subject: [PATCH] F: Implementing PromptEdit pt1 --- .../ai/components/badge-shared-template.tsx | 18 ++++ .../ai/components/icon-shared-template.tsx | 10 ++ .../ai/dialogs/dlg-create-prompt-template.tsx | 2 +- .../tab-edit-template.tsx | 11 --- .../form-prompt-template.tsx | 90 +++++++++++++++++ .../tab-edit-template/index.tsx | 1 + .../tab-edit-template/tab-edit-template.tsx | 69 +++++++++++++ .../tab-edit-template/toolbar-template.tsx | 41 ++++++++ .../tab-list-templates.tsx | 98 ++++++++++++++++--- .../prompt-templates-page/templates-tabs.tsx | 2 +- .../library-page/use-library-columns.tsx | 2 +- .../editor-constituenta/form-constituenta.tsx | 2 +- rsconcept/frontend/src/utils/labels.ts | 1 + 13 files changed, 321 insertions(+), 26 deletions(-) create mode 100644 rsconcept/frontend/src/features/ai/components/badge-shared-template.tsx create mode 100644 rsconcept/frontend/src/features/ai/components/icon-shared-template.tsx delete mode 100644 rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template.tsx create mode 100644 rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/form-prompt-template.tsx create mode 100644 rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/index.tsx create mode 100644 rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/tab-edit-template.tsx create mode 100644 rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/toolbar-template.tsx diff --git a/rsconcept/frontend/src/features/ai/components/badge-shared-template.tsx b/rsconcept/frontend/src/features/ai/components/badge-shared-template.tsx new file mode 100644 index 00000000..d6da3bdb --- /dev/null +++ b/rsconcept/frontend/src/features/ai/components/badge-shared-template.tsx @@ -0,0 +1,18 @@ +import { globalIDs } from '@/utils/constants'; + +import { IconSharedTemplate } from './icon-shared-template'; + +interface BadgeSharedTemplateProps { + value: boolean; +} + +/** + * Displays location icon with a full text tooltip. + */ +export function BadgeSharedTemplate({ value }: BadgeSharedTemplateProps) { + return ( +
Список пуст
+
+