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 theBrandAvatar size="lg"before the name in the h1. View as brand goes in the frame'stools. PageGrid cols={4}(0.7.0) of fourTile size="stat"(sales, orders, creators, wallet), thenPageGrid 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"withSwitch variant="ios". The cooldown row holds aNumberSetting(unit,min,max,defaultValue,alwaysShowReset) and greys out withoff. The gift stock line under it links withTextLink size="sm"(0.7.0). - Challenges as mini rows (
IconSquare,PrStatusPill), and the top creators withTierChip; "All creators" is aTextLink. - Right column: the PR owner (its "Change"
TextLinkopensChangeOwnerDialog, the person's alerts line isMuted),BrandWalletCard(available,held,balance,feePercent,feeIsDefault,topUpMethods="card") whose adjust and fee actions openAdjustWalletDialogandBrandFeeDialog, andAuditLogListwithcompactanddot={false}. The three dialogs are 0.7.0.