fix(ui): align workflow and inspector semantic help
Verified with the coordinated workspace changes by devkit full run 2026-09-08T225814-186389-0000-3e3ed7cd (all seven phases passed). This shared UI pass does not mark the individual module reviews complete.
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
ActionToolbar,
|
||||
Button,
|
||||
DocumentationHelpLink,
|
||||
TextWithHelp,
|
||||
DismissibleAlert,
|
||||
FormField,
|
||||
ReferenceMultiSelect,
|
||||
@@ -212,17 +213,18 @@ export default function WorkflowInspector({
|
||||
<ActionToolbar surface="section-header" className="workflow-panel-heading">
|
||||
<span>
|
||||
<strong>Inspector</strong>
|
||||
<small>{definition?.label ?? node.type}</small>
|
||||
<TextWithHelp help={semanticDefinitionId && semanticStepAvailable ? <DocumentationHelpLink
|
||||
reference={{
|
||||
contextId: semanticHelpContext(semanticDefinitionId, node.id),
|
||||
documentationType: "user"
|
||||
}}
|
||||
label="Open step meaning"
|
||||
/> : undefined}>
|
||||
<small>{definition?.label ?? node.type}</small>
|
||||
</TextWithHelp>
|
||||
</span>
|
||||
<span className="workflow-inspector-actions">
|
||||
{semanticDefinitionId && semanticStepAvailable ? <>
|
||||
<DocumentationHelpLink
|
||||
reference={{
|
||||
contextId: semanticHelpContext(semanticDefinitionId, node.id),
|
||||
documentationType: "user"
|
||||
}}
|
||||
label="Open step meaning"
|
||||
/>
|
||||
<a
|
||||
className="btn btn-secondary"
|
||||
href={semanticAuthoringHref(semanticDefinitionId, node.id)}
|
||||
|
||||
@@ -602,8 +602,8 @@ export default function WorkflowPage({
|
||||
variant="collection"
|
||||
refreshable
|
||||
reloadAction={{ onReload: () => void reload(draft?.id), loading: loading || working }}
|
||||
title="Workflows"
|
||||
contextActions={<>
|
||||
<strong>Workflows</strong>
|
||||
{hasScope(auth, "workflow:instance:admin") ? (
|
||||
<IconButton
|
||||
label="Reconcile module standards"
|
||||
@@ -614,7 +614,7 @@ export default function WorkflowPage({
|
||||
/>
|
||||
) : null}
|
||||
</>}
|
||||
helpAction={<DocumentationHelpLink
|
||||
titleHelp={<DocumentationHelpLink
|
||||
reference={{ topicId: "workflow.editor", documentationType: "user" }}
|
||||
label="Open Workflow documentation"
|
||||
/>}
|
||||
@@ -709,14 +709,15 @@ export default function WorkflowPage({
|
||||
aria-label="Workflow description"
|
||||
/>
|
||||
</span>}
|
||||
helpAction={draft.id ? <>
|
||||
<DocumentationHelpLink
|
||||
title="Workflow"
|
||||
titleHelp={draft.id ? <DocumentationHelpLink
|
||||
reference={{
|
||||
contextId: semanticHelpContext(draft.id),
|
||||
documentationType: "user"
|
||||
}}
|
||||
label="Open workflow meaning"
|
||||
/>
|
||||
/> : undefined}
|
||||
helpAction={draft.id ?
|
||||
<a
|
||||
className="btn btn-secondary"
|
||||
href={semanticAuthoringHref(draft.id)}
|
||||
@@ -725,7 +726,7 @@ export default function WorkflowPage({
|
||||
>
|
||||
<BookOpen size={16} aria-hidden="true" /> Document meaning
|
||||
</a>
|
||||
</> : undefined}
|
||||
: undefined}
|
||||
primaryActions={<span className="workflow-command-bar">
|
||||
{draft.id ? (
|
||||
<select
|
||||
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
import type { PlatformTranslations } from "@govoplan/core-webui";
|
||||
|
||||
/** Module-owned translations for contextual headings. */
|
||||
export const generatedTranslations: PlatformTranslations = {
|
||||
en: {
|
||||
"Workflows": "Workflows",
|
||||
"Workflow": "Workflow",
|
||||
},
|
||||
de: {
|
||||
"Workflows": "Workflows",
|
||||
"Workflow": "Workflow",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@ import type {
|
||||
DashboardWidgetsUiCapability,
|
||||
PlatformWebModule
|
||||
} from "@govoplan/core-webui";
|
||||
import { generatedTranslations } from "./i18n/generatedTranslations";
|
||||
import "@xyflow/react/dist/style.css";
|
||||
import "./styles/workflow.css";
|
||||
|
||||
@@ -64,6 +65,7 @@ const workflowDashboardWidgets: DashboardWidgetsUiCapability = {
|
||||
};
|
||||
|
||||
export const workflowModule: PlatformWebModule = {
|
||||
translations: generatedTranslations,
|
||||
id: "workflow",
|
||||
label: "Workflow",
|
||||
version: "0.1.14",
|
||||
|
||||
Reference in New Issue
Block a user