Skip to content

feat(/offerwall): add Offerwall preview in editor#563

Merged
DarianM merged 10 commits intomainfrom
preview_offerwall
Feb 13, 2026
Merged

feat(/offerwall): add Offerwall preview in editor#563
DarianM merged 10 commits intomainfrom
preview_offerwall

Conversation

@DarianM
Copy link
Member

@DarianM DarianM commented Feb 12, 2026

Closes #553

@DarianM DarianM requested a review from sidvishnoi February 12, 2026 17:20
const offerwallRef = useRef<OfferwallModal>(null)

const setCssVars = (elem: OfferwallModal, profile: OfferwallProfile) => {
elem.setFontFamily(profile.font.name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider this:

  1. Using the font value from profile, add <link> element with font stylesheet.
  2. Then, set --wm-font-family on element with the right font here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That way, OfferwallModal becomes independent of cdnUrl and font loading. The preview component (and the embed script) knows how to load the font.

Base automatically changed from fix_bg_preview_builder to main February 13, 2026 09:37
@github-actions
Copy link

github-actions bot commented Feb 13, 2026

Deployment results

Worker Alias URL Outcome
API - staging success
CDN - 38524709 success
App - 2baf7e98 success

Logs #21993312084

@DarianM DarianM requested a review from sidvishnoi February 13, 2026 14:24
@sidvishnoi sidvishnoi changed the title feat(frontend): preview Offerwall component in the editor section feat(/offerwall): add Offerwall preview in editor Feb 13, 2026
@DarianM DarianM merged commit e8ec838 into main Feb 13, 2026
6 checks passed
@DarianM DarianM deleted the preview_offerwall branch February 13, 2026 15:56
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.

[Functionality] Offerwall preview component for editor

2 participants