Skip to content

Show the help a specification carries instead of hiding it in a title - #223

Merged
sorenwacker merged 1 commit into
mainfrom
builder-help-markers
Aug 4, 2026
Merged

Show the help a specification carries instead of hiding it in a title#223
sorenwacker merged 1 commit into
mainfrom
builder-help-markers

Conversation

@sorenwacker

Copy link
Copy Markdown
Owner

Guidance in the builder was attached as native title attributes. A native tooltip stays invisible until hovered for about a second, never appears on touch, and on some machines does not render at all — so help written into a profile was reaching nobody. Reported from a machine where no native tooltip renders anywhere.

What changed

static/js/help-markers.js converts every title in the builder into a small focusable "?" beside its label. It removes the title afterwards so a browser that does render native tooltips does not show a second copy, and re-runs on htmx:afterSwap so a partial loaded later is covered without knowing about any of this.

The bubble is appended to body. Every panel in the builder clips its overflow, which cut the first attempt off at the edge of the section its marker belonged to.

Skipped deliberately: controls with their own hover behaviour (button, a, input, select), which keep their native title rather than gaining a focusable child in the way of the thing they label.

Help text that did not exist

The entity editor's four fields — Name, Description, Ontology Term, SEEK role — carried no help at all, and neither did the field form's five section headings (Basic, Markers, Type Settings, Constraints, Advanced). Both now explain themselves, including the distinction between an entity's ontology term and a field's, and the fact that SEEK role re-types a node without moving it in the hierarchy.

Note

This is still hand-written help in two templates, which is how a fork silently lost all of it once before. Deriving the markers from the specification's own field documentation would mean no element can be missed and the text cannot drift — worth doing as a follow-up.

Guidance was attached as native `title` attributes, which stay invisible until
hovered for about a second, never appear on touch, and on some machines do not
render at all -- so help written into a profile never reached the person filling
it in. Every title becomes a focusable "?" beside its label, with the bubble on
body because each panel clips its overflow and cut the old one off at the
section edge. The entity editor's four fields and the field form's five section
headings had no help text at all; they do now.
@sorenwacker
sorenwacker merged commit d767c78 into main Aug 4, 2026
4 checks passed
@sorenwacker
sorenwacker deleted the builder-help-markers branch August 4, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant