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:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user