feat: surface GramFrame version as Pan button tooltip#181
Merged
Conversation
Hovering the Pan button now shows "GramFrame vX.Y.Z" via a native title tooltip, giving support a subtle way to read an instance's version from the browser UI without adding permanent on-screen chrome. The tooltip is readable even while the button is disabled (before the user has zoomed in), so it can be checked on request at any time. Version comes from the existing getVersion(). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01UrV8WBAsULghxpC6j7d9J5
Contributor
PR PreviewPreview deployment is ready! View Preview Last updated: 2026-06-26T09:38:46.146Z |
…uilds - state.js: replace the stale hardcoded version '0.0.1' with getVersion() so state.version tracks package.json like the Pan button tooltip does. - pr-preview.yml: run `yarn generate-version` before build:standalone in both the deploy-main and deploy-preview jobs. Previously only release.yml embedded the real version, so the live GitHub Pages demo and PR previews both showed "vDEV". Now they show the actual package.json version. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01UrV8WBAsULghxpC6j7d9J5
IanMayo
pushed a commit
to DeepBlueCLtd/pptx-legacy-transform
that referenced
this pull request
Jun 26, 2026
Adopt GramFrame v0.1.13. Changes since v0.1.11 are non-breaking for our
integration (no class/attribute API changes):
- v0.1.12: refresh markers/harmonics tables when clearing a gram
(DeepBlueCLtd/GramFrame#180).
- v0.1.13: single version source of truth, version embedded in
demo/preview builds, GramFrame version surfaced as the Pan-button
tooltip (DeepBlueCLtd/GramFrame#181).
This is a pure bundle + VERSION bump — no generator or CSS changes:
- Replace all three gramframe.bundle.js copies (scripts/vendor/gramframe/,
theme/gramframe-oxygen/resources/, presentation/assets/embeds/) with the
v0.1.13 bundle (byte-identical across the three; the in-bundle VERSION
string now reads 0.1.13).
- Bump both VERSION files to v0.1.13.
- Refresh the stale version reference in theme/gramframe-oxygen/README.md
(was v0.1.9) to match resources/VERSION.
Landing this on main retriggers the package-release workflow (theme/**
is a release path), cutting a fresh air-gap deliverable zip.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HXpaibPmL8HyKjHUuRthyi
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
Adds a subtle way to read a GramFrame instance's version from the browser UI, for debugging user issues — without adding any permanent on-screen chrome.
Hovering the Pan button now shows
GramFrame vX.Y.Zas a nativetitletooltip. Because tooltips render even on disabled buttons, the version is readable whether or not the user has zoomed in yet — so support can guide a user to it on request at any time ("hover over the Pan button, what number shows up?").Why the Pan button
There's no header/logo element to hang a tooltip on, and the Pan button is a natural fit — Pan mode's guidance panel already references the version (
GramFrame v${getVersion()}inPanMode.js), so this reuses the same source of truth (getVersion()fromsrc/utils/version.js, which is rewritten to the realpackage.jsonversion at release time).Change
A single conditional in
src/components/ModeButtons.jssetsbutton.titlewhen building thepanmode button.Notes / follow-ups (not in this PR)
version: '0.0.1'hardcoded instate.jsthat doesn't trackpackage.json. Worth consolidating ontogetVersion()in a follow-up if desired.tscerror on the./gramframe.cssside-effect import is unrelated to this change (present on a clean tree).🤖 Generated with Claude Code
https://claude.ai/code/session_01UrV8WBAsULghxpC6j7d9J5
Generated by Claude Code