Skip to content

feat(growth): add embeddable campaign leaderboard widget snippet (#1370) - #1407

Closed
frammawiliansyah wants to merge 1 commit into
FinesseStudioLab:mainfrom
frammawiliansyah:feat/issue-1370
Closed

frammawiliansyah wants to merge 1 commit into
FinesseStudioLab:mainfrom
frammawiliansyah:feat/issue-1370

Conversation

@frammawiliansyah

@frammawiliansyah frammawiliansyah commented Sep 30, 2026 •

Copy link
Copy Markdown

Description

Resolves #1370

Introduces a lightweight, embeddable JavaScript snippet and backend endpoint enabling third-party blogs and community sites to render live campaign leaderboards.

Key Changes

  • backend/src/routes/embedWidget.js: Added /api/v1/widgets/leaderboard/:campaignId endpoint with CORS enabled and caching headers.
  • frontend/public/embed.js: Created embed script handling iframe instantiation and responsive auto-resizing.
  • backend/src/routes/embedWidget.test.js: Added route test coverage for payload validation and error responses.

Verification

  • Verified endpoint responses and status codes via Node test runner.
  • Validated widget iframe injection across simulated external DOM containers.

@frammawiliansyah frammawiliansyah changed the title feat(growth): Add campaign leaderboard widget embed snippet for external blogs (#1370) feat(growth): add embeddable campaign leaderboard widget snippet (#1370) Sep 30, 2026
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.

feat(growth): Add campaign leaderboard widget embed snippet for external blogs

2 participants