Introducing a new way to review your PRs.

Read the announcement

semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools.

View on GitHub

21 documents · Updated Nov 23, 2026

docs / in-product-help-system

In-product help system

The in-product help system gives web console users short, contextual guidance beside the page or dialog they are using. It joins localized Markdown sources to the controls they describe, checks that relationship during the frontend build, and renders safe help content with focus and visibility links back to the active controls.

This page complements the web console, project workflows, and real-time updates pages.

Help content model

The help system has two content types: page help for a full console view and dialog help for a form or modal workflow. Each document has one key, one English source, and optional translations that use the same key.

Document sources

English page sources live in web/src/help/pages/, while dialog sources live in web/src/help/dialogs/. A source names the Vue form or forms that expose its described controls. Its sections use the controls' literal data-testid values as anchors, so the text stays tied to the user interface rather than to a component's internal state. The template dialog source covers the settings that define task execution, including source code, inputs, prompts, and run-time choices. (web/…/project-settings.md• L1-12, web/…/inventory-ansible.md• L1-12, web/…/template.md• L1-13, web/…/parse.mjs• L21-25)

Translations sit beside the English source as <key>.<locale>.md. The locale must be one of the interface languages. This keeps help language selection aligned with the web console's normal localization set. (web/…/index.js• L1-10, web/…/plugin.mjs• L14-30)

References: web/…/index.js• L1-10 web/…/parse.mjs• L21-25 web/…/template.md• L1-13 web/…/plugin.mjs• L14-30

Dialog source families

The dialog sources describe the main choices that shape task execution. The Ansible inventory source explains how a task finds hosts and credentials through static text, a repository file, or managed records. The schedule source explains how a template or workflow starts on a time rule and how saved task parameters follow the template's allowed options. (web/…/inventory-ansible.md• L5-10, web/…/inventory-ansible.md• L42-75, web/…/schedule.md• L5-10, web/…/schedule.md• L17-42)

These sources have matching localized siblings for the supported interface languages. The translated documents keep the same control anchors and explain the same conditional fields, including schedule targets, time rules, and tool-specific task options. (web/…/inventory-ansible.cs.md• L1-12, web/…/inventory-ansible.zh_tw.md• L1-12, web/…/schedule.de.md• L1-11, web/…/schedule.zh_cn.md• L1-9)

The template dialog source is the broadest task-configuration guide. It explains how a task template selects an application and code source, supplies inventories and variables, controls prompts and task limits, and enables app-specific behavior such as build or deploy flow. Its localized siblings keep the same form declaration, skipped sub-dialog fields, and anchored sections while translating the guidance. (web/…/template.md• L1-49, web/…/template.de.md• L1-54, web/…/template.ja.md• L1-36, web/…/template.zh_tw.md• L1-40)

References: web/…/inventory-ansible.md• L5-75 web/…/inventory-ansible.cs.md• L1-12 web/…/inventory-ansible.zh_tw.md• L1-12 web/…/schedule.md• L5-42 web/…/schedule.de.md• L1-11 web/…/schedule.zh_cn.md• L1-9 web/…/template.md• L1-49 web/…/template.de.md• L1-54 web/…/template.ja.md• L1-36 web/…/template.zh_tw.md• L1-40

Document structure

Each source starts with front matter that names its form sources and can mark controls that are intentionally not described. The document then provides a title, an introduction, and one anchored section for each described control. The supported content is deliberately small: paragraphs, simple lists, code blocks, inline code, bold text, and secure external links. (web/…/parse.mjs• L129-180, web/…/parse.mjs• L263-352)

This structure lets the application draw the content from data instead of inserting source Markdown as HTML. It also gives validation a stable shape for comparing translations and matching sections to controls. (web/…/parse.mjs• L1-6, web/…/validate.mjs• L24-42)

References: web/…/parse.mjs• L1-6 web/…/parse.mjs• L129-180 web/…/parse.mjs• L263-352 web/…/validate.mjs• L24-42

Build-time validation

The Vite help plugin turns each help source into a frontend module during the build. It rejects content that cannot be safely rendered or that no longer matches the controls and language contracts of the console.

Document compilation

The compiler parses the source into a tree and checks that every named form exists. It then checks that every section anchor and every skipped control is present in one of those forms. A Vue component that names a missing help key also fails the build, which prevents a visible help button from pointing to absent content. (web/…/plugin.mjs• L38-86, web/…/plugin.mjs• L123-142, web/…/validate.mjs• L98-135)

The source and its translations become separate modules. The runtime can load a document on first use instead of loading every help page with the initial console view. (web/…/index.js• L13-22, web/…/index.js• L56-61)

References: web/…/plugin.mjs• L38-86 web/…/plugin.mjs• L123-142 web/…/index.js• L13-22 web/…/index.js• L56-61

Translation contract

Every translation must describe the same controls in the same order as its English source. It must keep the same form list, skipped controls, code blocks, and link targets. Translators can change the language of the prose and section titles, but they cannot change the behavior described by the source. (web/…/validate.mjs• L44-95)

The interface language list is taken from web/src/lang/, and the translation checks verify that every help document has a version for every interface language. They also check that translated section titles match the labels shown by the related controls. (web/…/plugin.mjs• L20-30, web/…/help-translations.spec.js• L45-77)

References: web/…/validate.mjs• L44-95 web/…/plugin.mjs• L20-30 web/…/help-translations.spec.js• L45-77

Coverage contract

The help coverage checks make contextual help a product rule for editable console forms. User-facing EditDialog forms must name a help document unless they are explicitly exempt, and every form field must have a section or an intentional skip entry. Plain dialogs use HelpDialog when they need the same support. (web/…/help-coverage.spec.js• L1-29, web/…/help-coverage.spec.js• L44-81)

References: web/…/help-coverage.spec.js• L1-29 web/…/help-coverage.spec.js• L44-81

Localized document delivery

The runtime chooses help language from the active interface locale. It first uses the exact locale, then its base language without a region, and finally English when no matching document exists. (web/…/index.js• L35-60)

The document registry exposes whether a key exists and loads only the selected document. A component can therefore show its help button only when an English source exists, while a failed load reports an error without blocking the page or dialog. (web/…/HelpDocsHost.js• L68-91, web/…/HelpDocsHost.js• L174-209)

When the interface language changes while help is open, the host reloads the visible document in the new language. When help is closed, it discards the old document and waits until the next open. (web/…/HelpDocsHost.js• L133-147)

References: web/…/index.js• L35-60 web/…/HelpDocsHost.js• L68-91 web/…/HelpDocsHost.js• L133-147 web/…/HelpDocsHost.js• L174-209

Contextual rendering

The Vue help components share one host model. The host owns document loading, open state, the active section, and the list of controls that are not currently visible. The panel owns the help layout and reports pointer or keyboard focus back to the host.

Dialog help

EditDialog provides help for the common form-dialog path. A help-doc key adds a help button to the dialog title and opens the panel beside the form card. HelpDialog provides the same behavior for a plain v-dialog, so custom dialogs can expose help without becoming EditDialog instances. (web/…/EditDialog.vue• L33-53, web/…/EditDialog.vue• L130-137, web/…/HelpDialog.vue• L1-18, web/…/HelpDialog.vue• L20-39)

The dialog host keeps the panel inside the dialog overlay and its focus boundary. On wide screens the card and panel share the window; on narrow screens the panel overlays the dialog. Closing the dialog also closes help and removes the control highlight. (web/…/HelpDocsHost.js• L94-115, web/…/HelpDialog.vue• L84-103, web/…/help-dialog.spec.js• L97-125, web/…/help-dialog.spec.js• L156-167)

References: web/…/EditDialog.vue• L33-53 web/…/EditDialog.vue• L130-137 web/…/HelpDialog.vue• L1-39 web/…/HelpDocsHost.js• L94-115

Page help

HelpPage wraps the page content and places the panel beside it when the window is wide enough. The page supplies a help key and receives a small slot API for the button, so the page can place the contextual help action in its own toolbar or header. (web/…/HelpPage.vue• L1-31, web/…/HelpPage.vue• L48-84)

The page content and the panel remain separate. This keeps the panel from becoming one of the controls it describes while still allowing the host to observe focus and visibility inside the page content. (web/…/HelpPage.vue• L17-30, web/…/help-page.spec.js• L139-147)

References: web/…/HelpPage.vue• L1-31 web/…/HelpPage.vue• L48-84 web/…/help-page.spec.js• L139-147

Panel behavior

HelpPanel presents the document introduction and one section card per anchored control. The active section follows the control in focus or the section under the pointer. The host marks the related control with a visual highlight and the panel scrolls to the section for a control that receives focus. (web/…/HelpPanel.vue• L33-68, web/…/HelpDocsHost.js• L245-321)

The panel marks sections for controls that are not currently shown as disabled. This supports forms whose fields change with a selected type or page views whose controls change with tabs. A mutation observer updates the missing-control list as the host changes. (web/…/HelpPanel.vue• L40-67, web/…/HelpDocsHost.js• L323-365)

The shared button exposes the same open state for pages and dialogs, with different accessible labels. HelpContent renders only known block types and creates external links only for HTTPS targets. (web/…/HelpButton.vue• L5-29, web/…/HelpContent.js• L1-36)

References: web/…/HelpPanel.vue• L33-68 web/…/HelpDocsHost.js• L245-365 web/…/HelpButton.vue• L5-29 web/…/HelpContent.js• L1-36

Help flow

The following flow shows how a source document becomes localized contextual help in the console.

flowchart LR
    S[English help source] --> V[Build-time parse and checks]
    T[Locale translation] --> V
    F[Vue page or dialog] --> R[Help document reference check]
    V --> M[Compiled document module]
    M --> L[Load selected locale on open]
    R --> L
    L --> H[HelpDocsHost]
    H --> P[HelpPanel]
    H --> C[Highlighted active control]
    P --> H

The build creates the content contract before the browser sees it. At runtime the host joins the selected document to the controls in the current page or dialog, so users can move between the guidance and the control without leaving their current task. (web/…/plugin.mjs• L157-171, web/…/HelpDocsHost.js• L174-209)

References: web/…/plugin.mjs• L157-171 web/…/HelpDocsHost.js• L174-209 web/…/HelpPanel.vue• L11-68

Change checklist

When these files or sections are changed, remember to consider these:

  • When a form control's data-testid changes, update its anchored help section and any translation section titles.
  • When a form adds or removes an input, update the document section or its intentional skip list so coverage checks still describe the form.
  • When a help key or component reference changes, keep the key tied to exactly one page or dialog source and keep the Vue reference to the English key.
  • When an interface locale is added, add its help translation for every source document before relying on the locale in the console.
  • When a translation changes code or link text, keep the code block and HTTPS target identical to the English source.
  • When a dialog source changes its conditional fields or form list, update every locale sibling with the same anchors and section order.
  • When the template help changes, update its locale siblings together because the template guide spans shared task settings and app-specific conditional fields.

Important failure modes

TriggerConsequenceGuard
A section anchor no longer exists in its named formThe frontend build fails instead of shipping help for the wrong control.Build-time field validation matches anchors to literal data-testid values.
A component names a missing document keyThe frontend build fails and prevents a dead help button.The Vite plugin checks help-doc references in Vue files.
A translation omits, reorders, or adds a sectionThe translation is rejected because its guidance no longer matches the source controls.Translation validation compares section keys and order.
A form hides a documented controlIts help section is disabled and cannot become active until the control is visible.The host tracks visible anchors and the panel reports hidden fields.
A help document fails to load at runtimeThe panel stays closed and the console reports the load error through its snackbar event.The host catches load errors before opening the panel.

Key files

FileWhy to read it
web/…/index.jsDefines document discovery, locale fallback, and lazy loading.
web/…/plugin.mjsShows the build contract and checks for source, form, translation, and Vue-reference errors.
web/…/parse.mjsDefines the supported help document shape and safe content subset.
web/…/validate.mjsDefines source-to-form and translation consistency checks.
web/…/HelpDocsHost.jsCoordinates loading, focus, active controls, hidden controls, and panel state.
web/…/HelpPanel.vueRenders document sections and the active or hidden states.
web/…/HelpPage.vueProvides contextual help for full pages.
web/…/EditDialog.vueProvides contextual help for the standard form dialog.
web/…/HelpDialog.vueProvides contextual help for plain dialogs.
web/…/HelpContent.jsConverts the validated document tree into safe Vue content.
web/…/project-settings.mdIllustrates a page source with multiple forms and intentional skipped content.
web/…/inventory-ansible.mdIllustrates localized dialog guidance for Ansible inventory sources and credentials.
web/…/schedule.mdIllustrates localized dialog guidance for template or workflow schedules and conditional task parameters.
web/…/template.mdIllustrates the task-template dialog source for code, execution settings, prompts, and app-specific task behavior.