Skip to content

fix(ui): open librarium abs paths in the Web UI - #6

Open
Citizen4our wants to merge 1 commit into
mainfrom
fix/webui-librarium-abs-path
Open

fix(ui): open librarium abs paths in the Web UI#6
Citizen4our wants to merge 1 commit into
mainfrom
fix/webui-librarium-abs-path

Conversation

@Citizen4our

Copy link
Copy Markdown
Collaborator

Synopsis

Pasting a human Tabularium URL such as /projects/turret/design/sas-architecture-tracker.md on the Web UI dumped the session at the library root. The SPA only knew /entries/… and ?open=; the catch-all routed every other path to /entries.

Solution

Unknown paths are treated as librarium paths: a last segment containing . opens preview via /entries/<dir>?open=<abs>, otherwise the path is a directory. Unit tests run in CI; Selenium covers document and directory deep links.

Checklist

  • Created PR:
    • In draft mode
    • Name contains Jira ticket ID
    • Has assignee
  • Before review:
    • Documentation is updated (CHANGELOG)
    • Tests are updated
    • Changes conform code style
    • CHANGELOG entry is added
    • Draft mode is removed
  • Review is completed and changes are approved
  • Before merge:
    • PR's name and description are correct and up-to-date
    • All temporary labels are removed
    • PR's changes are prepared for squash merging

Test plan

  • Open https://tb-web…/projects/turret/design/sas-architecture-tracker.md — lands on /entries/…?open=… with preview, not /entries
  • Open a directory URL without /entries — file list for that dir, no ?open=
  • cd ui && npm test

Made with Cursor

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