Skip to content

Templates: keep list in place, Steps heading, browser icon, per-step bindings - #411

Merged
alexeygrigorev merged 3 commits into
mainfrom
template-ui-t2088
Nov 11, 2026
Merged

alexeygrigorev merged 3 commits into
mainfrom
template-ui-t2088

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

Intake cdb7e0b4-b52f-440f-84c1-4de6b1b9319f (t1998u, t1999u, t2000u, t2003u, t2004u; t2002u linked-event reading superseded and not implemented).

  • t1998u: selecting a template no longer jumps the list. The list pane is built detached, and a detached element ignores scrollTop, so the saved offset never applied. Now it is restored once the list is attached.
  • t1999u: heading What a new card runs → Steps.
  • t2000u: browser-required steps show a globe icon (aria-label Browser required) beside the step name. The due offset stays on the right, and the Browser required text is gone.
  • t2003u/t2004u: clicking a Steps row opens that step's settings in place, with links to exactly its own instructionDocId (process doc, plus the instruction_step_id anchor; template.* docs are listed as the step's Template) and its instructionsUrl. Nothing comes from the template-wide docs list. No template or event data is changed.

Tests: node --test frontend/test/templates-surface-steps.test.mjs (bindings, heading, icon placement, due-date preservation, row detail links, scroll restore).

…'s own process doc and template bindings

- restore the list scroll after the rebuilt list is attached (a detached element ignored scrollTop, so selecting a card jumped the list to the top)
- rename the heading to Steps
- show a browser icon beside browser-required step names instead of 'Browser required' text, keeping the due offset on the right
- clicking a Steps row opens that step's instructions and settings in place, with links to exactly its instruction_doc_id (process doc, or template for template.* docs) and step anchor

Intake cdb7e0b4 (t1998u, t1999u, t2000u, t2003u, t2004u)
The Templates surface imports src/surfaces/tasks/template-steps.js, but
the file was never declared in backend/src/docs/frontend-assets.json, so
verify-frontend-artifact failed the build with 'frontend import is
missing from asset manifest'.
@alexeygrigorev
alexeygrigorev merged commit 6814f7d into main Nov 11, 2026
4 checks passed
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