From a0a4317d717924c4acb88f45ab9867958e73ac34 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:09:30 +0300 Subject: [PATCH] F: Improve Manuals and Help UI --- rsconcept/frontend/src/components/icons.tsx | 2 +- .../dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx | 8 +- .../ai/dialogs/dlg-create-prompt-template.tsx | 2 + .../form-prompt-template.tsx | 1 + .../prompt-templates-page/templates-tabs.tsx | 5 + .../items/cc/help-concept-structuring.tsx | 10 + .../features/help/items/help-assistant.tsx | 20 ++ .../features/help/items/help-thesaurus.tsx | 146 ++++++------- .../features/help/items/ui/help-library.tsx | 24 +- .../features/help/items/ui/help-rslist.tsx | 4 + .../frontend/src/features/help/labels.ts | 206 +++++++++--------- .../src/features/help/models/help-topic.ts | 3 + .../help/pages/manuals-page/topic-page.tsx | 4 + .../dlg-create-block/dlg-create-block.tsx | 2 +- .../features/oss/dialogs/dlg-edit-block.tsx | 3 + .../frontend/src/features/rsform/labels.ts | 8 +- 16 files changed, 253 insertions(+), 195 deletions(-) create mode 100644 rsconcept/frontend/src/features/help/items/cc/help-concept-structuring.tsx create mode 100644 rsconcept/frontend/src/features/help/items/help-assistant.tsx diff --git a/rsconcept/frontend/src/components/icons.tsx b/rsconcept/frontend/src/components/icons.tsx index 2df88406..8d7a2d2a 100644 --- a/rsconcept/frontend/src/components/icons.tsx +++ b/rsconcept/frontend/src/components/icons.tsx @@ -83,7 +83,7 @@ export { TbGps as IconCoordinates } from 'react-icons/tb'; export { IoLibrary as IconLibrary2 } from 'react-icons/io5'; export { BiDiamond as IconTemplates } from 'react-icons/bi'; export { TbHexagons as IconOSS } from 'react-icons/tb'; -export { BiScreenshot as IconConceptBlock } from 'react-icons/bi'; +export { MdOutlineSelectAll as IconConceptBlock } from 'react-icons/md'; export { TbHexagon as IconRSForm } from 'react-icons/tb'; export { TbAssembly as IconRSFormOwned } from 'react-icons/tb'; export { TbBallFootball as IconRSFormImported } from 'react-icons/tb'; diff --git a/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx b/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx index 86e1fbba..ba8e4804 100644 --- a/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx +++ b/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx @@ -1,5 +1,7 @@ import { Suspense, useState } from 'react'; +import { HelpTopic } from '@/features/help'; + import { ComboBox } from '@/components/input/combo-box'; import { Loader } from '@/components/loader'; import { ModalView } from '@/components/modal'; @@ -14,7 +16,11 @@ export function DlgAIPromptDialog() { const { items: prompts } = useAvailableTemplatesSuspense(); return ( - + void handleSubmit(onSubmit)(event)} submitInvalidTooltip='Введите уникальное название шаблона' className='cc-column w-140 max-h-120 py-2 px-6' + helpTopic={HelpTopic.ASSISTANT} >