Repository navigation
Every create field explains itself, and the ones only a human can fill say so - #149
Merged
Merged
Conversation
…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]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
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
labelledInputto 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)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
ideation/Known, not fixed here
On the live
domainsselection Topics renders empty while Area readsideation/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.yoursmark.