Goal
Nav-links in the TextFrame node navigation (parent chain, children list) currently display raw node IDs. Replace these with human-readable text previews using the existing deriveLabel utility. IDs can still be shown as a secondary detail in the text-focus view.
What to do
- In
TextFrame.tsx, wherever nav-link labels are rendered (parent chain, child list buttons), replace node.id with deriveLabel(node):
deriveLabel priority: properties.title → properties.source (filename) → first 80 chars of node.text → fallback to node.id
- For the child list: show derived label as the button text; show
node.id as title attribute (visible on hover) and optionally as a secondary line in the text-focus view
- For the parent chain breadcrumb: same — derived label as display text, ID in tooltip
- Keep the
type-badge (document/chunk/expression) next to each label for quick scanning
Relates to
Acceptance criteria
- Nav-links display meaningful text (title, filename, or text excerpt) instead of raw UUIDs
- IDs remain accessible (hover tooltip or secondary text in text-focus view)
- Works gracefully when no title/text is available (falls back to ID silently)
Goal
Nav-links in the TextFrame node navigation (parent chain, children list) currently display raw node IDs. Replace these with human-readable text previews using the existing
deriveLabelutility. IDs can still be shown as a secondary detail in the text-focus view.What to do
TextFrame.tsx, wherever nav-link labels are rendered (parent chain, child list buttons), replacenode.idwithderiveLabel(node):deriveLabelpriority:properties.title→properties.source(filename) → first 80 chars ofnode.text→ fallback tonode.idnode.idastitleattribute (visible on hover) and optionally as a secondary line in the text-focus viewtype-badge(document/chunk/expression) next to each label for quick scanningRelates to
properties.title/properties.sourcefor this to show non-ID labels on document nodesAcceptance criteria