9dd8e4a944
Add a northstar and ready vertical slices for making html_examples start at an index, splitting implemented examples into focused pages, proving infinite-scroll by scrolling, and keeping smoke/docs/requirements aligned.
2.9 KiB
2.9 KiB
id, type, status, title, refs
| id | type | status | title | refs | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NS-0004 | northstar | ready | html_examples index and per-example pages |
|
Objective
Make examples/html_examples behave like a copy-pasteable pattern gallery instead of one long demo page: / is an index with navigation, each implemented htmx-style pattern has a focused page using the exact htmx slug as the visible name, and infinite-scroll is proved by real scrolling rather than a click-only load-more control.
Authority
AGENTS.mdsaysexamples/html_examplesis the copy-paste HTML pattern gallery for htmx-style examples, with exact htmx URL slugs visible and behavior translated to boring.heml, generated resources, and server-owned Rust state. req: htmx_equivalents/001 req: htmx_equivalents/003 req: htmx_equivalents/005 req: examples/005 req: examples/007 req: examples/012 req: page_swap/007 req: page_swap/008examples/html_examples/README.mddefines the pattern matrix, current implemented/deferred/refused boundaries, and the stable run/open command.examples/html_examples/src/main.rsandtemplates/gallery.hemlcurrently render all implemented examples on/, includinginfinite-scrollas a revealed form with a visibleReveal more rowsbutton.hemx-xtask/src/main.rsowns the focused browser smoke command that must prove no-reload dynamic interactions and the html_examples runtime path. req: test/006
Close when
/is an index/landing page, not the long live example gallery.- Implemented examples have focused routes/pages whose visible names preserve the htmx example slugs from the README matrix.
infinite-scrolllives on its own focused page and is primarily exercised by scrolling to a sentinel, not by clicking a load-more button.- README, smoke, and any requirement/doc changes keep the run command, pattern matrix, and verification authority honest.
- Any real product decision needed before implementation is captured as a blocked slice with the exact missing decision.
Verification
workledger checkworkledger listcargo test -p hemx-html-examplescargo test -p hemx-xtaskcargo run -p hemx-xtask -- html-examples-smokeredgate health --strict && redgate lint
Non-goals
- Do not create a router framework, docs generator, client component runtime, selector-targeting model, or second browser runner.
- Do not promote deferred/integration-owned/refused README rows unless a later slice proves the full vertical behavior.
- Do not hide click-to-load behavior inside
infinite-scroll; keep click-triggered loading and scroll-triggered loading as distinct examples.
Evidence
- Work mapping created at HEAD
379ed02; implementation slices should update this section only when they complete or block.