Built merchant management, activity history, and the pipeline

This commit is contained in:
Oleksandr Prokhorenko
2026-09-24 20:50:15 +03:00
parent 5de240fda3
commit 382f6e8841
43 changed files with 4679 additions and 812 deletions
+7 -4
View File
@@ -215,17 +215,20 @@ export function QueryBoundary<T>({
);
return <>{children(query.data)}</>;
}
export function MerchantCard({ merchant }: { merchant: Merchant }) {
export function MerchantCard({ merchant, className }: { merchant: Merchant; className?: string }) {
const { t } = useTranslation();
const f = useFormat();
return (
<Link to={`/app/merchants/${merchant.id}`} className="surface hover-surface block p-4">
<Link
to={`/app/merchants/${merchant.id}`}
className={cn('surface hover-surface block p-4', className)}
>
<div className="flex items-center gap-3">
<Avatar name={merchant.name} small />
<div className="min-w-0">
<h3 className="truncate text-sm font-semibold">{merchant.name}</h3>
<p className="mt-0.5 text-xs text-muted-foreground">
{t(`industry.${merchant.industry}`)}
{merchant.industry ? t(`industry.${merchant.industry}`) : '—'}
</p>
</div>
<MoveUpRight
@@ -335,7 +338,7 @@ export function ActivityFeed({
{t(event.fromStatus ? 'dashboard.moved' : 'dashboard.added')}{' '}
<span className="font-medium text-foreground">{t(`statuses.${event.toStatus}`)}</span>
<span className="mx-1.5">·</span>
{event.actor.name}
{event.actor?.name ?? t('workflow.system')}
</p>
{event.note && (
<p className="mt-2 rounded-lg bg-muted p-3 text-xs leading-relaxed">{event.note}</p>