Repository navigation
✨ Kiosk 'Request a Hive' CTA badge for Twitch streams + channel metadata script - #16241
Conversation
…etadata script Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. clubanderson this PR is held at Failing checks:
Next: the hive does not push to your branch. Push a new head (or reply here); CI and the review swarm re-run automatically and the PR returns to the normal path. |
Use shared tokens (--fs-xl/--fs-2xl, --r-sm, --shadow-modal, --surface-0, --text, --brand) instead of raw px/hex values so the operator index.html style ratchet stays flat; drop the CSS comment that TestMatrixUIWiring read as an unscoped Matrix selector; allowlist pkg/webassets (shared by the spoke dashboard and hub Fleet page) in the dashboard import ratchets with justification. Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
Merge v5 8664848 without changing landed scripts. Independently reviewed complete scripts-tree union: all 67 existing entries unchanged; only the two monthly automation files and the byte-identical Twitch script from #16241 are added. Pin exactly 96c95ac. No runtime enrollment, privilege, weekly report source or canonical workflow changes. Signed-off-by: Andy Anderson <andy@clubanderson.com>
Closes #16236
Drive Twitch viewers of twitch.tv/hivecommons, /hivecommonsfleet and /hivecommonsmatrix to https://hive.hivecommons.dev/get-started.
What changed
1. Kiosk "Request a Hive" call-to-action badge
pkg/webassets/kioskcta: renders a bottom-right pill ("🐝 Want this for your repos?" + URL ≥ 22px) with a 110px QR code (go-qrcode, inlinedata:PNG — fits the hub CSP which forbids inline script/style but allowsimg-src data:). No inlinestyle=attributes; visibility is purelybody.kiosk-cta-onset by the page's boot JS.Start()via the<!-- hive-kiosk-cta -->placeholder; configurable withdashboard.kiosk_cta_url/dashboard.kiosk_cta_text. Matrix sits above the canvas at opacity .85./activity/public): same badge, configurable withHIVE_HUB_KIOSK_CTA_URL/HIVE_HUB_KIOSK_CTA_TEXT.?kiosk=1;&cta=offhides it. Never visible in the ordinary operator dashboard.pkg/webassets/kioskcta,pkg/dashboard/kiosk_cta_test.go,pkg/dashboard/kiosk_cta.test.js,pkg/hub/activity_kiosk_cta_test.go(present with kiosk=1, absent otherwise / with cta=off).2. Twitch channel metadata script
src/scripts/twitch-channel-cta.shPATCHeshelix/channels(title, category "Software and Game Development", tags) for the three channels.set -euo pipefail, idempotent,--dry-run,--only <channel>, verifies the category id viahelix/search/categories, never echoes tokens. Not executed — needs a per-channel user token withchannel:manage:broadcast(device-code flow documented).3. Docs
docs/streaming-the-activity-monitor.md: "Call-to-action overlay" and "Channel title, category, tags";docs/env-vars.mdrows; changelog fragment; api-reference citations refreshed (check-api-reference-citations.sh --fix).Screenshots (1920×1080, local build)
Activity Monitor kiosk:

Matrix kiosk (opacity .85, footer text stays bottom-left):

Hub public Fleet page kiosk:

Owner follow-ups (manual)
TWITCH_CLIENT_ID=… TWITCH_CLIENT_SECRET=… TWITCH_TOKEN_HIVECOMMONS=… … scripts/twitch-channel-cta.sh --dry-run, then without--dry-run.