Skip to Content
BBRICKSv0.7.4
Screens

Creators · Groups

Groups of creators, a group's drawer, the group form and the special-commission request.

Groups of creators, a group's drawer, the group form and the special-commission request. Composed in BrandSubScreens.tsx from BRICKS exports only, with the v3 brand mock's numbers.

Creators › Groups

The groups banner, a GroupCard per group (approved, standard, asked) and the new-group card.

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 Groups() { return view('creators-groups', useLanguage()); }

A group open

GroupPanel in the drawer: sales, commission, the special commission and the members.

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 GroupDrawer() { return view('group-drawer', useLanguage()); }

Editing a group

GroupForm in a modal: the name and the MembersPicker with the members ticked.

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 GroupFormModal() { return view('group-form', useLanguage()); }

Asking for a special commission

SpecialCommissionForm in a modal: % of sale or EGP per item, and why.

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 SpecialCommission() { return view('group-commission', useLanguage()); }

How it is built

  • Banner tone="info" over an auto-fill grid of GroupCards (members, sales, commission state: approved, standard or asked) and a NewCard.
  • Group drawer: Drawer hideTitle with GroupPanel (onAskCommission, onEdit, onOpenCreator).
  • Edit form: Modal (title, hint) with GroupForm mode="edit", initial, people and takenNames.
  • Special commission: Modal with SpecialCommissionForm and its defaults.