Skip to content

Fix History Tool URL — use github-pages tpen-line-history#519

Merged
cubap merged 1 commit into
developmentfrom
5-2-tools-align
May 8, 2026
Merged

Fix History Tool URL — use github-pages tpen-line-history#519
cubap merged 1 commit into
developmentfrom
5-2-tools-align

Conversation

@thehabes
Copy link
Copy Markdown
Member

@thehabes thehabes commented May 8, 2026

Summary

Fix the broken Line History tool URL in Tools.defaultTools. The previous URL https://app.t-pen.org/components/line-history/index.js 404s — that file was deleted from tpen3-interfaces in commit 1c25cbe (Feb 2026). The replacement points at the github-pages build of the dedicated tpen-line-history repo, which still publishes a working tpen-line-history custom element.

This change rides along with the broader TPEN ↔ tool messaging contract cleanup (see CenterForDigitalHumanities/TPEN-interfaces#564 for the full story) but is independent of the protocol changes and could ship on its own.

Changes

  • classes/Tools/Tools.jsTools.defaultTools "History Tool" entry: url changed from https://app.t-pen.org/components/line-history/index.js to https://centerfordigitalhumanities.github.io/tpen-line-history/tpen-line-history.js. tagName (tpen-line-history), custom.enabled (true), and location (pane) unchanged. Loads as a custom element, not an iframe.

Coordinated cut

The other repos in this set are protocol changes; this PR is the registry fix that unblocks the History tool. Cross-repo PR list:

Test plan

Developer-validated locally on 2026-05-08:

  • npm run allTests passes — 187/187 ✅ (113 integration tests skipped, as expected without a live test stack).
  • In TPEN-interfaces, opened /transcribe against a project with the History tool, confirmed the custom element loads in the pane (no 404 in console). Live-line tracking on the local stack is gated on Hardcoded prod TPEN module URL prevents local-stack and dev-stack testing tpen-line-history#5 (the tool hardcodes https://app.t-pen.org/api/TPEN.js, so its TPEN module instance is siloed from the local interfaces' module instance — works on prod where the URLs dedupe).

Companion follow-up (deferred, does not block this cut)

The Tools.defaultTools History Tool URL pointed at
https://app.t-pen.org/components/line-history/index.js, which 404s — the
local component was deleted from tpen3-interfaces in 1c25cbe. The
github-hosted tpen-line-history custom element is the working artifact
and is published at:
https://centerfordigitalhumanities.github.io/tpen-line-history/tpen-line-history.js

tagName stays tpen-line-history so it continues to load as a custom
element (not an iframe).
Copy link
Copy Markdown
Member

@cubap cubap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, of course

@cubap cubap merged commit 841c57f into development May 8, 2026
3 checks passed
@cubap cubap deleted the 5-2-tools-align branch May 8, 2026 19:04
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