Skip to content

Render branches as an HTML list of child links in CanopyBrowseHtmlHan… - #28

Merged
noha merged 1 commit into
mainfrom
add-html-branch-navigation
Jul 27, 2026
Merged

Render branches as an HTML list of child links in CanopyBrowseHtmlHan…#28
noha merged 1 commit into
mainfrom
add-html-branch-navigation

Conversation

@noha

@noha noha commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

…dler

A branch now renders as an HTML page (title + one link per child node) when Accept: text/html, instead of falling back to JSON. Leaf rendering (value + edit form) is unchanged; PUT on a branch still delegates to the JSON handler.

Child links are absolute (//), which sidesteps the trailing-slash relative-resolution issue that had this deferred - no canonicalization needed.

  • handleHtmlRequest: branch + GET -> branchPageFor:path:.
  • branchPageFor:path: / childHref:key: added.
  • The old "branch stays JSON even with html Accept" test is replaced by tests for the list rendering, absolute nested child links, and branch-stays-JSON when Accept is not html.

Note: tests were written but NOT executed in this session (Pharo MCP was unavailable here) - verification still pending.

…dler

A branch now renders as an HTML page (title + one link per child node) when
Accept: text/html, instead of falling back to JSON. Leaf rendering (value +
edit form) is unchanged; PUT on a branch still delegates to the JSON handler.

Child links are absolute (/<path>/<key>), which sidesteps the trailing-slash
relative-resolution issue that had this deferred - no canonicalization needed.

- handleHtmlRequest: branch + GET -> branchPageFor:path:.
- branchPageFor:path: / childHref:key: added.
- The old "branch stays JSON even with html Accept" test is replaced by tests
  for the list rendering, absolute nested child links, and branch-stays-JSON
  when Accept is not html.

Note: tests were written but NOT executed in this session (Pharo MCP was
unavailable here) - verification still pending.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@noha
noha merged commit 88ae1b5 into main Jul 27, 2026
4 checks passed
@noha
noha deleted the add-html-branch-navigation branch July 27, 2026 18:33
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.

1 participant