Page MenuHomeSealhub

Add option to customize breadcrumb labels in Sealious-playground
Closed, ResolvedPublic3 Points

Description

Sealious Playground now has automatically generated breadcrumbs:

image.png (1,512×557 px, 47 KB)

But the labels on those breadcrumbs are just the ActionNames, so they are not very human-readable.

This task is about adding an option to customize the labels of the breadcrumb.

Each route now exposes an actionName that is then read by sealgen and taken into consideration when creating variables in urls.ts. So a page with actionName set to MyPage will cause a const named MyPageURL to be created in urls.ts. Those urls are then read in order to build the url_tree present in routes.ts. Breadcrumbs are built using this url_tree.

Changes that need to be done:

  1. Make sealgen add export breadcrumbLabel to each route generated with npx sealgen add-route. It should expect the const to be a function that takes context and returns string, or just a string. Both should be properly handled
  2. Put that action label in the url_tree
  3. Make the breadcrumbs.tsx page use the breadcrumbLabel if it's present in the tree. If it's not, fall back to actionName

Details

Tested by
kuba-orlik
Coded by
ziomek
Reviewed by
kuba-orlik
Action required from
ziomek

Revisions and Commits

Restricted Differential Revision
rPLAY Sealious playground
Restricted Differential Revision
rSGEN sealgen
Restricted Differential Revision
rREWRITE Configurable rewriter
Restricted Differential Revision

Event Timeline

ziomek updated Coded by, added: ziomek.
ziomek moved this task from To do to Doing on the Kanban board.
ziomek added a revision: Restricted Differential Revision.Feb 26 2026, 18:28
ziomek added a revision: Restricted Differential Revision.Feb 26 2026, 18:38
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: FilipI; removed: ziomek.
jenkins-user added a subscriber: ziomek.
jenkins-user moved this task from Review to Doing on the Kanban board.
jenkins-user updated Reviewed by, added: kuba-orlik.
jenkins-user updated Action required from, added: ziomek; removed: FilipI.
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: kuba-orlik; removed: ziomek.
jenkins-user assigned this task to ziomek.
jenkins-user moved this task from Review to Ready for testing on the Kanban board.
jenkins-user updated Action required from, added: AmeliaB, • Koossa, karolwojtowicz87, brtkuu, prostyfranek, zbartosz, radoptak; removed: kuba-orlik.
jenkins-user updated Tested by, added: kuba-orlik.
jenkins-user moved this task from Ready for testing to Ready to land on the Kanban board.
jenkins-user updated Action required from, added: ziomek; removed: AmeliaB, • Koossa, karolwojtowicz87, brtkuu, prostyfranek, zbartosz, radoptak.
Restricted Repository Identity added a commit: Restricted Diffusion Commit.May 14 2026, 19:06