-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add remote promo sheet (#5140)
* feat: initial work on generalizing promo sheet checks and remote promo sheet component * more work on remote promo sheets * update queries * Update arc.graphql to expose promoSheet and promoSheetCollection * update campaign checks and consume getPromoSheet query * write promoSheet and promoSheetCollection queries * add remote promo sheet route and name * add a couple mmkv STORAGE_IDS to control whether or not we show promos * add remote promo sheets feature flag * tweak remote promo sheet logic * fix signing remote images * more sanity checks and refetch interval * add RemotePromoSheetProvider and remove unnecessary campaignChecks * tweak checks and add Context/Provider for controlling remote promo sheets * re-enable firstLaunch and hasViewed checks * another sanity check * fix hasNonZeroAssetBalance * update check fns * add campaign storage to @storage model * update fns and remove some unused ones * update arc.graphql query to include priority * update provider and sheet to use @storage * add priority tag to collection query * update check for campaign to use @/storage and abstraction of check-fns to reduce boilerplate * adjust asset check fns * syncronize feature unlocks and campaign checks * add notifications promo and cleanup analytic events * add nft offers promo sheet and cleanup priority logic * fix conflicting nft offers asset type with contentful * replace PromoSheet analytics with v2 * revert graphql arc config change and cleanup local promo sheets * enable i18n in contentful and pass locale through * enable i18n clientside * update language * remove unused campaigns folder and uncomment check * remove unused campaigns folder * fix lint and func name * pass all locales through localized fields * change default colors to hex * add specific address for testing preview purposes * final touches * re-add hasShown check * add isPreviewing actionFn to bypass hasShown check * get color from theme if primary/secondary button has that prop * add network to asset check
- Loading branch information
Showing
40 changed files
with
1,004 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.