Skip to Content
BBRICKSv0.7.4
Screens

PR · Brand

One brand (Glow Lab): stat tiles, affiliate program, gift rules and stock, challenges, top creators, PR owner, wallet and recent activity.

One brand (Glow Lab): stat tiles, affiliate program, gift rules and stock, challenges, top creators, PR owner, wallet and recent activity. Composed in PrScreensCore.tsx from BRICKS exports only, in the pr theme, with the PR Portal v3 mock's numbers.

Brand

One brand (Glow Lab): stat tiles, affiliate program, gift rules and stock, challenges, top creators, PR owner, wallet and recent activity.

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

function PrBrand() { return <PrBrandScreen 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". titleLead (0.7.0) puts the BrandAvatar size="lg" before the name in the h1. View as brand goes in the frame's tools.
  • PageGrid cols={4} (0.7.0) of four Tile size="stat" (sales, orders, creators, wallet), then PageGrid split="8-4" align="start" with a stack in each column.
  • AffiliateProgramCard (0.7.0): since when, the status pill, the commission (commissionText, 0.7.0), creators and waiting to join, then Edit program, Pause (with its reason dialog) and "Review 1 join request →".
  • Gift rules: three SettingRow density="tight" with Switch variant="ios". The cooldown row holds a NumberSetting (unit, min, max, defaultValue, alwaysShowReset) and greys out with off. The gift stock line under it links with TextLink size="sm" (0.7.0).
  • Challenges as mini rows (IconSquare, PrStatusPill), and the top creators with TierChip; "All creators" is a TextLink.
  • Right column: the PR owner (its "Change" TextLink opens ChangeOwnerDialog, the person's alerts line is Muted), BrandWalletCard (available, held, balance, feePercent, feeIsDefault, topUpMethods="card") whose adjust and fee actions open AdjustWalletDialog and BrandFeeDialog, and AuditLogList with compact and dot={false}. The three dialogs are 0.7.0.