Skip to content

Show ancestor breadcrumb path in page view#15

Merged
lox merged 1 commit intolox:mainfrom
jordandcarter:page-view-ancestor-path
Mar 24, 2026
Merged

Show ancestor breadcrumb path in page view#15
lox merged 1 commit intolox:mainfrom
jordandcarter:page-view-ancestor-path

Conversation

@jordandcarter
Copy link
Copy Markdown
Contributor

Description

page view now shows the page's ancestor hierarchy above the title, parsed from the <ancestor-path> block already present in the Notion MCP fetch response.

TTY output

Teams › Pipelines
Guides
https://www.notion.so/...

Non-TTY output

Path: Teams > Pipelines
Title: Guides
URL: https://www.notion.so/...

Changes

  • Parse <parent-page> and <ancestor-N-page> tags from <ancestor-path> block
  • Add Ancestors field to pageMetadata struct
  • Display breadcrumb in renderPageHeader for both TTY and non-TTY modes
  • Ancestors are reversed from parent-first (MCP order) to root-first for natural reading

@jordandcarter jordandcarter force-pushed the page-view-ancestor-path branch from 5d7c1c1 to 850a992 Compare February 26, 2026 22:08
Parse the <ancestor-path> block from the Notion MCP fetch response
and display the page hierarchy above the title in page view output.

TTY output uses › separators (e.g. Teams › Pipelines › Guides),
non-TTY uses > separators with a Path: label.
@jordandcarter jordandcarter force-pushed the page-view-ancestor-path branch from 850a992 to 605627f Compare February 26, 2026 22:10
@lox lox merged commit d46601b into lox:main Mar 24, 2026
1 check 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.

2 participants