feat: wire report form page, remove section placeholder

All eight sections of the old stroy-bot-* web parts are now reachable
from the app. Unknown routes fall back to the hub.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Тимур Городецкий
2026-10-16 10:08:07 +05:00
parent 072d246eed
commit 92b578d806
5 changed files with 27 additions and 22 deletions
@@ -53,7 +53,7 @@ export const ReportForm: React.FC<Props> = ({ params }) => {
}
const isSaved = !!report.successMessage;
const runAsync = (action: () => Promise<void>) => (): void => {
const runAsync = (action: () => Promise<void>): (() => void) => (): void => {
action().catch(() => undefined);
};
@@ -23,7 +23,7 @@ const stopPropagation = (event: React.KeyboardEvent): void => event.stopPropagat
export const PickerCreateForm: React.FC<Props> = ({ create, requiresUnit, nestedInTitle, parentCandidates }) => {
const { draft, isCreating, errorMessage } = create;
const change =
(field: keyof IPickerCreateDraft) =>
(field: keyof IPickerCreateDraft): ((value: string) => void) =>
(value: string): void =>
create.changeDraft({ [field]: value });