Trails (<kweb-trails>)
Purpose
Show recent navigation steps as breadcrumbs. Allow replay, and saving as journeys.
Inputs
Events listened to
kweb:selection-changed (record step)
kweb:web-switch (clear or switch trail context)
Data required
- recent steps (maintained by app shell)
- optional saved journeys list
Outputs
Events emitted
kweb:trail-step on hover/click
kweb:trail-save on save action
UI and interactions
- Show last 6–10 nodes.
- Hover previews a step, click commits.
- “Save” turns the current trail into a named journey.
Definition of done
- [ ] Trail updates on navigation.
- [ ] Trail supports preview/commit.
- [ ] Trail can be saved.
✒️
edit (requires access)