diff --git a/webui/src/features/forms/FormInstancePage.tsx b/webui/src/features/forms/FormInstancePage.tsx index 5310842..cde0aa8 100644 --- a/webui/src/features/forms/FormInstancePage.tsx +++ b/webui/src/features/forms/FormInstancePage.tsx @@ -1,8 +1,7 @@ import { Archive, ArrowLeft, BadgeCheck, ClipboardCheck, ExternalLink, RefreshCw, Save, Send, Trash2 } from "lucide-react"; import { useCallback, useEffect, useMemo, useState } from "react"; import { useParams } from "react-router"; -import { ActionToolbar, - ActionBlockerHint, +import { ActionBlockerHint, Button, ConfirmDialog, DescriptionItem, @@ -23,6 +22,7 @@ import { ActionToolbar, usePlatformModuleInstalled, usePlatformLanguage, useUnsavedDraftGuard, + WorkspaceActionBar, WorkspaceFrame, type PlatformRouteContext } from "@govoplan/core-webui"; @@ -379,21 +379,28 @@ export default function FormInstancePage({ settings, auth }: PlatformRouteContex return (
- - - {definition && {localized.title}} - {instance && } - {instance && recordsAvailable && !editableLifecycle && + + {definition && {localized.title}} + {instance && } + } + primaryActions={instance && recordsAvailable && !editableLifecycle ? - } - - + : undefined} + helpAction={} + /> {error && diff --git a/webui/src/features/forms/FormsRuntimePage.tsx b/webui/src/features/forms/FormsRuntimePage.tsx index 1bb5ecb..ca4dc83 100644 --- a/webui/src/features/forms/FormsRuntimePage.tsx +++ b/webui/src/features/forms/FormsRuntimePage.tsx @@ -1,7 +1,6 @@ -import { Link2, RefreshCw, ShieldCheck, UserRoundPlus } from "lucide-react"; +import { Link2, ShieldCheck, UserRoundPlus } from "lucide-react"; import { useCallback, useEffect, useState } from "react"; -import { ActionToolbar, - Button, +import { Button, DocumentationHelpLink, DismissibleAlert, LoadingIndicator, @@ -15,6 +14,7 @@ import { ActionToolbar, i18nMessage, useGuardedNavigate, usePlatformLanguage, + WorkspaceActionBar, WorkspaceFrame, type PlatformRouteContext } from "@govoplan/core-webui"; @@ -69,46 +69,49 @@ export default function FormsRuntimePage({ settings, auth }: PlatformRouteContex return (
- - - {canAdmin && + void load(), loading }} + className="forms-runtime-toolbar" + contextActions={<> + {canAdmin && - } - {canAdmin && + } + {canAdmin && - } - {canAssist && + } + + {i18nMessage("i18n:govoplan-forms-runtime.form_count", { total })} + } + createAction={canAssist ? - } - - {i18nMessage("i18n:govoplan-forms-runtime.form_count", { total })} - - + : undefined} + helpAction={} + /> {error &&