Skip to Content
BBRICKSv0.7.4
Screens

PR · Challenge builder

New challenge, step 1 (Basics) beside the summary card that checks the budget against the wallet.

New challenge, step 1 (Basics) beside the summary card that checks the budget against the wallet. Composed in PrScreensChallenges.tsx from BRICKS exports only, in the pr theme, with the PR Portal v3 mock's numbers.

Challenge builder

New challenge, step 1 (Basics) beside the summary card that checks the budget against the wallet.

Pinned to TRNDR preset
Code
import { useLanguage } from '@ergasti/bricks';
import { PrBuilderScreen } from '../../../packages/bricks/src/gallery/screens/PrScreensChallenges';

function PrBuilder() { return <PrBuilderScreen 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".
  • PageGrid split="8-4" align="start" stickyAside (0.7.0): the step on the left, the summary in a side column that stays in view.
  • Stepper (steps, current, onStep) over BuilderStepCard (0.7.0): the step's title, "Step 1 of 4", the fields, and a ruled footer with Back (disabled on step 1) and Continue →.
  • The fields are ChallengeBasicsFields (0.7.0): who it's for (with "All brands · TRNDR-wide"), the name, the dates and what creators will read, with the inline decision tags from decisions. Steps 2 and 3 are ChallengeRewardFields and ChallengeAudienceFields; one ChallengeDraft from defaultChallengeDraft('glow') feeds them all.
  • ChallengeSummary layout="flat" flatDensity="mock" beside it: rewards (with inlineHint), budget (hold, available), warnings, steps and onEditStep.