Screens
PR · Challenges
Affiliate programs › Challenges, Live in the cards view: KPIs, status tabs, the toolbar with the cards / table switch and the challenge cards.
Affiliate programs › Challenges, Live in the cards view: KPIs, status tabs, the toolbar with the cards / table switch and the challenge cards. Composed in PrScreensChallenges.tsx from BRICKS exports only, in the pr theme, with the PR Portal v3 mock's numbers.
Challenges
Affiliate programs › Challenges, Live in the cards view: KPIs, status tabs, the toolbar with the cards / table switch and the challenge cards.
Pinned to TRNDR preset
Code
import { useLanguage } from '@ergasti/bricks';
import { PrChallengesScreen } from '../../../packages/bricks/src/gallery/screens/PrScreensChallenges';
function PrChallenges() { return <PrChallengesScreen language={useLanguage()} />; }How it is built
- The frame is
PrPortalFrame(0.7.0), as on every framed PR page: the v3 nav with counts, the Open decisions card, the PR person row with sign-out,HeaderSearch, the bell and the raspberry "+ New". - Campaigns / Challenges
PillTabs,PageGrid cols={4}(0.7.0) of fourKpiCards, then the statusPillTabswith counts and the scopeSegmented. ListToolbarwith search, type and audienceselects, sort, the cards / tableSegmentedinfilters, and export.- One row type feeds both views:
PrChallengeRow(0.7.0). The cards view isDataTable mode="cards" cardColumns={3}(0.7.0) withrenderCarddrawingPrChallengeCard {...toPrChallengeCard(row)}(0.7.0):timeProgress,daysLeft,goal,reward,rewardKind,noGiftsLefton gift rewards,topthree for leaderboards,people,held,money={{ decimals: 'auto' }}. The table view ischallengeTableColumns(language, {}, { decimals: 'auto' })(0.7.0).