Fix History Tool URL — use github-pages tpen-line-history#519
Merged
Conversation
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).
This was referenced May 8, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the broken Line History tool URL in
Tools.defaultTools. The previous URLhttps://app.t-pen.org/components/line-history/index.js404s — that file was deleted fromtpen3-interfacesin commit1c25cbe(Feb 2026). The replacement points at the github-pages build of the dedicatedtpen-line-historyrepo, which still publishes a workingtpen-line-historycustom 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.js—Tools.defaultTools"History Tool" entry:urlchanged fromhttps://app.t-pen.org/components/line-history/index.jstohttps://centerfordigitalhumanities.github.io/tpen-line-history/tpen-line-history.js.tagName(tpen-line-history),custom.enabled(true), andlocation(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 allTestspasses — 187/187 ✅ (113 integration tests skipped, as expected without a live test stack)./transcribeagainst 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 hardcodeshttps://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)