From 51339b3f9acfa5a6c7bac064e6751626641b11e4 Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Thu, 20 Aug 2026 18:29:27 +0500 Subject: [PATCH] appeals --- index.html | 2 + public/favicon.svg | 23 ++++ src/features/feedback/FeedbackForm.tsx | 29 +++- src/features/feedback/model.ts | 43 +++++- .../feedback/sections/AppealSection.tsx | 125 ++++++++++-------- .../feedback/sections/AuthorSection.tsx | 8 -- src/features/feedback/texts.ts | 6 +- src/features/feedback/validateFeedback.ts | 24 +++- 8 files changed, 177 insertions(+), 83 deletions(-) create mode 100644 public/favicon.svg diff --git a/index.html b/index.html index f09364a..54ca492 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@ + + Обращение в HR diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..617e8ce --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/features/feedback/FeedbackForm.tsx b/src/features/feedback/FeedbackForm.tsx index 56d259f..20868a8 100644 --- a/src/features/feedback/FeedbackForm.tsx +++ b/src/features/feedback/FeedbackForm.tsx @@ -1,4 +1,13 @@ -import { Alert, Button, CollapseSection, FormActions, FormCard } from '@tnsu/ui-kit'; +import { + Alert, + Button, + CollapseSection, + FormActions, + FormCard, + FormGrid, + Toggle +} from '@tnsu/ui-kit'; +import { Field } from '../../components/Field/Field'; import { AppealSection } from './sections/AppealSection'; import { AuthorSection } from './sections/AuthorSection'; import { ThankYouScreen } from './ThankYouScreen'; @@ -16,10 +25,6 @@ export const FeedbackForm: React.FC = () => { return ( -
- {TEXTS.privacyNotice} -
- {formError ? (
{formError} @@ -34,6 +39,20 @@ export const FeedbackForm: React.FC = () => { + {/* Спрашиваем в самом конце и только у именных обращений: у анонимного + ответа всё равно не будет, вопрос был бы бессмысленным. */} + {!data.isAnonymous ? ( + + + set('wantsFeedback', v)} + onLabel="Да" + /> + + + ) : null} +