Skip to content

Add helpers browser/clipboard exports and mobile canvas download#14

Merged
jeffgo10 merged 2 commits into
masterfrom
feat/helpers-browser-clipboard-mobile-download
Jun 28, 2026
Merged

Add helpers browser/clipboard exports and mobile canvas download#14
jeffgo10 merged 2 commits into
masterfrom
feat/helpers-browser-clipboard-mobile-download

Conversation

@jeffgo10

Copy link
Copy Markdown
Owner

Summary

Extracts cross-platform CrowdBadge helpers into @jeffgo10/helpers@0.3.0: mobile-safe PNG download, in-app browser detection, and a clipboard copy hook.

Changes

Area Detail
@jeffgo10/helpers/image Mobile blob object URL download; canvasToPngDataUrl
@jeffgo10/helpers/browser isRestrictedInAppBrowser for Meta/WeChat WebViews
@jeffgo10/helpers/clipboard useCopyLink React hook
Tests Co-located Jest coverage for all new/changed modules

Test plan

  • pnpm test --filter=@jeffgo10/helpers (41 tests)
  • pnpm run build:packages
  • Merge → CI publishes @jeffgo10/helpers@0.3.0
  • CrowdBadge consumer PR to import new subpaths and remove local duplicates

Made with Cursor

jeffgo10 and others added 2 commits June 28, 2026 11:56
- Bump @jeffgo10/helpers to 0.3.0 with ./browser and ./clipboard exports
- Merge CrowdBadge mobile blob download path and canvasToPngDataUrl into ./image
- Add isRestrictedInAppBrowser and useCopyLink with co-located tests

Co-authored-by: Cursor <cursoragent@cursor.com>
- Add test for malformed data URL headers without a mime match

Co-authored-by: Cursor <cursoragent@cursor.com>
@jeffgo10 jeffgo10 merged commit c4d0659 into master Jun 28, 2026
1 check passed
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.

1 participant