diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4e24d2..915632c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,11 +38,16 @@ jobs: # folder once, so the download unzips straight to the folder Chrome loads # (uploading a .zip would hand people a zip inside a zip). - name: Stage extension (unpacked folder) + env: + # on a pull request, the PR's own head (github.sha there is a temporary merge commit) + BUILD_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }} run: | mkdir -p dist/podkey # vendor/ holds the sidestr engine the spend window imports (MV3 forbids remote code) cp -r manifest.json src popup vendor $([ -d icons ] && echo icons) LICENSE PRIVACY.md dist/podkey/ find dist/podkey -name '*.test.js' -delete + # the commit this package was built from, shown beside the version in the popup + printf '{"commit":"%s","built":"%s"}\n' "$BUILD_COMMIT" "$(date -u +%Y-%m-%dT%H:%MZ)" > dist/podkey/build.json - name: Check the folder holds every file the extension loads run: | diff --git a/.gitignore b/.gitignore index 5afa9ee..b996138 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ dist/ .idea/ src/background.bundle.js popup/popup.bundle.js +build.json diff --git a/popup/popup.css b/popup/popup.css index 299d032..6c9de6b 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -702,6 +702,20 @@ input:focus-visible + .slider { color: var(--text-faint); } +/* ---- Version: quiet, on every screen ---- */ +.version { + text-align: center; + padding: 6px 0 2px; + font-family: var(--mono); + font-size: 10.5px; + color: var(--text-faint); + user-select: text; +} + +.version:empty { + display: none; +} + /* ---- Scrollbars ---- */ .trusted-list::-webkit-scrollbar, .event-preview::-webkit-scrollbar { diff --git a/popup/popup.html b/popup/popup.html index 11da8f4..f4c2b89 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -314,6 +314,9 @@