Follow-up to #22.
Problem #
#22 asked to always show the Watched repos block. The branch shows it for every valid lexicon NSID, so on a new automation the block is still hidden until an NSID is typed in full. Users who scan the form before picking a lexicon still don't know it exists, which was the problem #22 set out to fix.
Evidence #
app/islands/AutomationForm.tsx:3210: the Watched repos fieldset is wrapped in{isValidNsid(lexicon) && (…)}.- The same gate hides the "Fires when anyone writes a record…" hint at
AutomationForm.tsx:3192. - Seen on the New automation page: an empty Lexicon NSID shows only Trigger events under it; typing
site.standard.documentmakes the hint, the Watched repos block and its alert appear at once, pushing the rest of the form down.
Expected #
- The Watched repos block is always in the form, empty NSID included, as "(optional)" with the "all repos" default.
- Before a valid NSID, the wording that names the NSID falls back to something generic (e.g. "Watching all repos: a matching record written by anyone triggers this automation."). The "(required)" state and its NSID-specific line still switch on once the NSID is known to need watched repos.
- The layout doesn't jump when the NSID becomes valid: only text inside the block changes.
- Watched repos entered before the NSID are kept when it is picked or changed.
Acceptance criteria #
Out of scope #
Whether the "Fires when anyone writes a record…" hint should also show before an NSID: leave it as it is unless it needs to move for the layout to stay stable.
Queued: the loop will work on this version of the issue.
loop:queued cid=bafyreiehdgt27ww3lqqw6uno6tswwx4dkvfe27uqjzyfazi42vcok55fwq