@hanzo/app 0.2.54 → 0.2.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TeamPreview.js +3 -1
- package/package.json +1 -1
package/dist/TeamPreview.js
CHANGED
|
@@ -186,8 +186,10 @@ function Panel({ org, supervised, onMode, asks, done, handoffs, onOpen }) {
|
|
|
186
186
|
const { t } = useI18n();
|
|
187
187
|
const clock = useClock();
|
|
188
188
|
const mission = MISSIONS[org];
|
|
189
|
+
// The four steps shown: the last two done, then what is next.
|
|
190
|
+
const from = mission ? Math.max(0, Math.min(done.length - 2, mission.steps.length - 4)) : 0;
|
|
189
191
|
const agents = ORGS.find((o) => o.id === org)?.agents.filter((a) => LIMITS[a]).slice(0, 3) ?? [];
|
|
190
|
-
return (_jsxs(YStack, { flex: 1, minH: 0, overflow: "hidden", gap: 10, p: 12, bg: "$sunken", "$platform-web": FOOT, children: [_jsxs(Box, { icon: ShieldCheck, title: t('How agents act'), children: [_jsx(Mode, { supervised: supervised, onSet: onMode }), _jsx(Text, { fontSize: "$1", lineHeight: 16, color: "$soft", children: supervised ? t('Agents ask before each tool, connector or site. Spending limits stay on.') : t('Agents run tools on their own and stop for anything risky. Spending limits stay on.') })] }), _jsx(Box, { icon: UserRound, title: t('Needs a person'), aside: _jsx(Text, { "data-motion": "rise", fontSize: "$1", fontWeight: "700", color: "$ink", "data-i18n-ltr": true, children: asks.length }, asks.length), children: asks.length ? (asks.slice(0, 3).map((a) => (_jsxs(XStack, { "data-motion": "rise", render: _jsx("button", { type: "button", "aria-label": t('Open #{channel}', { channel: channelOf(a.room) }), onClick: () => onOpen(a.room) }), items: "center", gap: 8, p: 4, rounded: 8, bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px', textAlign: 'start' }, children: [_jsx(Avatar, { id: a.who, size: 20 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", lineHeight: 16, color: "$ink", numberOfLines: 2, children: t(a.say, { what: t(a.what) }) })] }, a.id)))) : (_jsx(Text, { fontSize: "$1", color: "$soft", children: t('Nothing right now.') })) }), mission ? (_jsxs(Box, { icon: Target, title: t(mission.title), aside: _jsx(Text, { fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: t('{done} of {total}', { done: done.length, total: mission.steps.length }) }), children: [_jsx(Progress, { done: done.length, total: mission.steps.length }), _jsx(YStack, { gap: 5, children: mission.steps.slice(
|
|
192
|
+
return (_jsxs(YStack, { flex: 1, minH: 0, overflow: "hidden", gap: 10, p: 12, bg: "$sunken", "$platform-web": FOOT, children: [_jsxs(Box, { icon: ShieldCheck, title: t('How agents act'), children: [_jsx(Mode, { supervised: supervised, onSet: onMode }), _jsx(Text, { fontSize: "$1", lineHeight: 16, color: "$soft", children: supervised ? t('Agents ask before each tool, connector or site. Spending limits stay on.') : t('Agents run tools on their own and stop for anything risky. Spending limits stay on.') })] }), _jsx(Box, { icon: UserRound, title: t('Needs a person'), aside: _jsx(Text, { "data-motion": "rise", fontSize: "$1", fontWeight: "700", color: "$ink", "data-i18n-ltr": true, children: asks.length }, asks.length), children: asks.length ? (asks.slice(0, 3).map((a) => (_jsxs(XStack, { "data-motion": "rise", render: _jsx("button", { type: "button", "aria-label": t('Open #{channel}', { channel: channelOf(a.room) }), onClick: () => onOpen(a.room) }), items: "center", gap: 8, p: 4, rounded: 8, bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px', textAlign: 'start' }, children: [_jsx(Avatar, { id: a.who, size: 20 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", lineHeight: 16, color: "$ink", numberOfLines: 2, children: t(a.say, { what: t(a.what) }) })] }, a.id)))) : (_jsx(Text, { fontSize: "$1", color: "$soft", children: t('Nothing right now.') })) }), mission ? (_jsxs(Box, { icon: Target, title: t(mission.title), aside: _jsx(Text, { fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: t('{done} of {total}', { done: done.length, total: mission.steps.length }) }), children: [_jsx(Progress, { done: done.length, total: mission.steps.length }), _jsx(YStack, { gap: 5, children: mission.steps.map((step, i) => ({ step, i })).slice(from, from + 4).map(({ step, i }) => (_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Tick, { done: done.includes(i) }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: done.includes(i) ? '$ink' : '$soft', numberOfLines: 1, children: t(step) })] }, step))) })] })) : null, _jsx(Box, { icon: CornerDownRight, title: t('Handoffs'), children: handoffs.length ? ([...handoffs]
|
|
191
193
|
.reverse()
|
|
192
194
|
.slice(0, 4)
|
|
193
195
|
.map((h) => (_jsxs(XStack, { "data-motion": "rise", items: "center", gap: 6, children: [_jsx(Avatar, { id: h.from, size: 18 }), _jsx(CornerDownRight, { size: 11, color: "var(--muted-foreground)", "aria-hidden": true, "data-i18n-mirror": true }), _jsx(Avatar, { id: h.to, size: 18 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: "$ink", numberOfLines: 1, children: t('{from} to {to}', { from: who(h.from).name, to: who(h.to).name }) }), _jsx(Text, { fontSize: 11, color: "$faint", "data-i18n-ltr": true, children: clock(h.time) })] }, `${h.time}/${h.from}/${h.to}`)))) : (_jsx(Text, { fontSize: "$1", color: "$soft", children: t('No handoffs yet today.') })) }), agents.length ? (_jsx(Box, { icon: Wallet, title: t('Spending limits'), children: agents.map((a) => (_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Avatar, { id: a, size: 18 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: "$ink", numberOfLines: 1, children: who(a).name }), _jsx(Text, { fontSize: 11, color: "$soft", "data-i18n-ltr": true, children: t('{week} a week · {task} a task', { week: `$${LIMITS[a].week}`, task: `$${LIMITS[a].task}` }) })] }, a))) })) : null] }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.55",
|
|
4
4
|
"description": "Hanzo's app: the shell and its apps (Home, Chat, Inbox, Contacts, Meet, Calendar, Drive, Board, Work, Bots), once, for every Hanzo surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|