Skip to content

[M4] TextFrame: show text preview in nav-links instead of raw IDs #46

Description

@Korede-TA

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.titleproperties.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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions