Skip to content

Every create field explains itself, and the ones only a human can fill say so - #149

Merged
brettheap merged 1 commit into
mainfrom
change/create-fields-explained
Aug 9, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/create-fields-explained

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

"explain all the fields on this form. The title, summary, topics, look empty"

Empty meant two different things and the form couldn't say which — a value the machine cannot know, versus one it looked for and didn't find. Every field now carries a help line, and the two only a human can supply are marked yours.

field what it is why it may be empty
Title the H1, and how it reads in every wheel and list naming a topic is the one judgment a selection can't make for you
Summary one sentence in the header, read by doc-health and by anyone deciding whether to open this never generated — a placeholder summary reaching the queue is what that rule exists to prevent
Topics declared keywords, from the terms every selected document shares your selection shares none, and the create needs at least one
Area where the file lands inside ideation/ filled from the staging topic this convergence names
Status the lifecycle header a new document is never born ratified
Kind the header contract's vocabulary —

Known, not fixed here

On the live domains selection Topics renders empty while Area reads ideation/staging/document-catalog-adoption/ — and that slug is derived from the shared terms, so the server found terms the form didn't receive. The help line would explain an honest empty; this one isn't honest. It's a real defect I haven't root-caused, recorded rather than described away.

Verification

  • pytest — 2821 passed, 19 skipped, exit 0.
  • Live: every field shows its help; Title and Summary carry the yours mark.

…l say so

Brett: "explain all the fields on this form. The title, summary, topics, look
empty."

EMPTY MEANT TWO DIFFERENT THINGS and the form could not say which — a value
the machine cannot know, and a value it looked for and did not find. Every
field now carries a help line saying what it is for, and the two that only a
human can supply are MARKED `yours` rather than merely blank:

  * Title   — the H1, and how the document reads in every wheel and list.
              Empty because naming a topic is the one judgment a selection
              cannot make for you.
  * Summary — one sentence, in the header, read by doc-health and by every
              reader deciding whether to open this. Never generated: a
              placeholder summary reaching the queue is exactly what that
              rule exists to prevent.
  * Topics  — the declared keywords, filled from the terms EVERY selected
              document shares. Empty means the selection shares none, and the
              create needs at least one.
  * Area    — where the file lands inside `ideation/`, from the staging topic
              this convergence names.
  * Status  — the lifecycle header; a new document is never born ratified.
  * Kind    — the header contract's vocabulary (`note`,
              `capability-proposal`, …).

Suites 2821 passed (exit 0).

KNOWN, NOT FIXED HERE: on the live `domains` selection Topics renders EMPTY
while Area reads `ideation/staging/document-catalog-adoption/` — and that slug
is derived from the shared terms, so the server found terms the form did not
receive. The help line above would explain an honest empty; this one is not
honest, and it is a real defect I have not root-caused. Recorded rather than
described away.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 9, 2026 23:35

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap
brettheap merged commit c3b0b46 into main Aug 9, 2026
1 check passed
@brettheap
brettheap deleted the change/create-fields-explained branch August 9, 2026 23:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the staging workbench “create document” form by adding per-field explanatory help text and visually marking the fields that must be supplied by a human (“yours”), addressing confusion where “empty” could mean either “not computable” or “not found”.

Changes:

  • Extend labelledInput to support a required marker and a per-field help line.
  • Add explicit help copy for Title, Summary, Topics, Area, Status, and Kind in the create form.
  • Add CSS styles for the help text and the “yours” marker.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/ideation_dashboard/web/views/swb-create.js Adds required/help rendering to labelledInput and supplies new help text for each create form field.
scripts/ideation_dashboard/web/styles.css Styles the new per-field help text and the “yours” marker.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 70 to +76
const input = document.createElement("input");
input.type = "text";
input.value = value == null ? "" : String(value);
input.setAttribute("aria-label", label);
if (o.placeholder) input.setAttribute("placeholder", o.placeholder);
row.appendChild(input);
if (o.help) row.appendChild(el("span", "swb-chelp", o.help));
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.

2 participants