Skip to content

Fix audit items 7 and 10, build deploys with solve data (v0.11.3) - #56

Merged
weevilgenius merged 3 commits into
mainfrom
claude/project-thread-tkfohz
Oct 31, 2026
Merged

weevilgenius merged 3 commits into
mainfrom
claude/project-thread-tkfohz

Conversation

@weevilgenius

@weevilgenius weevilgenius commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Requested by Barry · project thread

Fixes items 7 and 10 from the Ponytail repo audit, and builds the deployed game with solve data collection on. This branch is the one this thread works on, so item 7 joined the item 10 PR rather than starting a new branch.

Item 7: Share fails silently

On browsers without a share sheet, Share copied the link with no failure handler. A missing or refused clipboard left the button doing nothing, and the rejection went unhandled. It now flashes "Could not copy" for 1.5 seconds, matching how Copy solve data reports a failure (src/index.ts).

Solve data in deploys

Both Firebase workflows set VITE_COLLECT_SOLVE_DATA: 'true' on the pnpm run build step only, so the live site and previews keep the solve log and the Copy solve data button. Unit tests still run with the flag unset; they stub it where they need it.

Item 10: stale docs and comments (comments only)

  • AGENTS.md: drops the pointer to docs/summary.md, which doesn't exist.
  • scripts/offline.ts: two JSDoc comments no longer say the comparison apps share the worker scope. The generated sw.js is unchanged.
  • src/index.ts: the STORAGE_PREFIX comment explains why the prefix is kept.

v0.11.3 with changelog lines for the Share fix and the solve record returning.

Checks

  • pnpm run check passes (324 tests).
  • VITE_COLLECT_SOLVE_DATA=true pnpm run build succeeds, and the bundle includes Copy solve data.
  • In Chromium with the share sheet removed, Share showed "Link copied" when the clipboard was allowed and "Could not copy" when it was refused. Both reverted to "Share" after 1.5 seconds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SGfak3CRUUVwG8x6w8D3gr

AGENTS.md pointed to a docs/summary.md that does not exist, and comments
in scripts/offline.ts and src/index.ts described the bake-off builds as
sharing the app's origin, which was only true on GitHub Pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGfak3CRUUVwG8x6w8D3gr
@weevilgenius weevilgenius self-assigned this Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 530c7d0):

https://stumped-game--pr56-claude-project-threa-w2lo7xxp.web.app

(expires Sat, 07 Nov 2026 14:44:59 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dfc2bf844eeac82ebd1846d84aacfdcd42e42a2f

Share copied the link with no failure handler, so a refused clipboard
left the button doing nothing. It now flashes "Could not copy", like
Copy solve data.

The deploy and preview workflows build with VITE_COLLECT_SOLVE_DATA=true
so the live game keeps the solve log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGfak3CRUUVwG8x6w8D3gr
@weevilgenius weevilgenius changed the title Fix stale references in docs and comments Fix audit items 7 and 10, build deploys with solve data (v0.11.3) Oct 31, 2026
@weevilgenius
weevilgenius merged commit 217790a into main Oct 31, 2026
2 checks passed
@weevilgenius
weevilgenius deleted the claude/project-thread-tkfohz branch October 31, 2026 14:48
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