Screens
Analytics
Range and challenge filters, metric tiles, the trend, best sellers, products and sales by challenge.
Range and challenge filters, metric tiles, the trend, best sellers, products and sales by challenge. The composition is AnalyticsScreen.tsx; every part of it is a BRICKS export.
Analytics
Sales trend, the funnel and the breakdowns.
Pinned to TRNDR preset
Code
import { useLanguage } from '@ergasti/bricks';
import { AnalyticsScreen } from '../../../packages/bricks/src/gallery/screens/AnalyticsScreen';
function Analytics() { return <AnalyticsScreen language={useLanguage()} />; }How it is built
Toolbar:Segmentedrange and aSelectBox(hideLabel) infilters, Export CSV inactions.- Four
Tile size="metric"withdeco, aDeltawith "vs previous 30 days" (no sparkline, as in the mock),selectedandonSelect. The selected tile picks theAreaTrendseries. AreaTrendin aCard, withxLabels.- Best creators:
DataTablewithRankMedal(inline),CreatorCellwithtier, orders,Money compact(figure="creator_sales") and aShareBar. It pages 5 at a time withPager. - Products:
ProductCell, andMoney compactover aDeltaper row; a row click opens the product drawer (see Details drawers). - Sales by challenge:
HBarswithdisplayasMoney compact, per-rowtone, andselectable: falseon the row that has no page.