Screens
Motivation · Gifts
Gift KPIs, rules and stock, the gift orders, a gift's drawer, the choose-gifts modal and a gift order's drawer.
Gift KPIs, rules and stock, the gift orders, a gift's drawer, the choose-gifts modal and a gift order's drawer. Composed in MotivationScreen.tsx (its view prop) from BRICKS exports only, with the v3 brand mock's numbers.
Motivation › Gifts
Gift KPIs, the read-only GiftRulesCard, GiftStockList and the gift orders table.
Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';
const view = (id: string, language: Lang) => {
const { Screen } = BRAND_SUB_SCREENS[id];
return <Screen language={language} />;
};
function Gifts() { return view('motivation-gifts', useLanguage()); }A gift product open
DrawerHead, stock figures and who picked it.
Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';
const view = (id: string, language: Lang) => {
const { Screen } = BRAND_SUB_SCREENS[id];
return <Screen language={language} />;
};
function GiftDrawer() { return view('gift-drawer', useLanguage()); }Choosing gift products
GiftProductsPicker in a modal: products, units and what is already picked.
Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';
const view = (id: string, language: Lang) => {
const { Screen } = BRAND_SUB_SCREENS[id];
return <Screen language={language} />;
};
function ChooseGifts() { return view('gifts-choose', useLanguage()); }A gift order open
DrawerHead with the creator, the picked date and status, and the delivery steps.
Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';
const view = (id: string, language: Lang) => {
const { Screen } = BRAND_SUB_SCREENS[id];
return <Screen language={language} />;
};
function GiftOrder() { return view('gift-order', useLanguage()); }How it is built
view="gifts": aBanner, thenStatGrid columns={5}ofKpiCards. Shipped, Not delivered and Delivered set the table's status chip throughactive/onClick.GiftRulesCard readOnly(pick, one per challenge, 90-day cooldown) besideGiftStockList(onOpen,onChoose).- In a
Card:ListToolbar(search, chips, sort, export,collapseFiltersBelow={600}) andDataTableof gift orders (CreatorCell, gift, date,StatusPill) with aPager. view="gift":Drawer hideTitlewithDrawerHead(ProductThumblead),KeyValueandRowItems(heading) of who picked it.view="choose":ModalwithGiftProductsPicker(pickedandunitsper product).view="giftOrder":DrawerwithDrawerHead(Avatarlead),KeyValueand aStepTimelinefor delivery.