diff --git a/app/src/assets/brands/github.svg b/app/src/assets/brands/github.svg
deleted file mode 100644
index e3be0e551c..0000000000
--- a/app/src/assets/brands/github.svg
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
diff --git a/app/src/components/app-sidebar/conversations-panel.tsx b/app/src/components/app-sidebar/conversations-panel.tsx
index ee67462ad7..73a6c92c5d 100644
--- a/app/src/components/app-sidebar/conversations-panel.tsx
+++ b/app/src/components/app-sidebar/conversations-panel.tsx
@@ -477,24 +477,6 @@ export function ConversationsPanel({ hidden = false }: { hidden?: boolean }) {
- {/*
- * What Bots made in these conversations, kept as things of their own: the Artifacts
- * page, the one destination in this panel that is not a conversation.
- */}
-
- (
-
-
- Artifacts
-
- )}
- />
-
) : null}
+ {/*
+ * What Bots made in these conversations, kept as things of their own: the Artifacts
+ * page, the one destination in this panel that is not a conversation.
+ */}
+
+ (
+
+
+ Artifacts
+
+ )}
+ />
+
{searching ? (
diff --git a/app/src/components/bot-profile/routines-summary.tsx b/app/src/components/bot-profile/routines-summary.tsx
index 8618bfb4b4..0b10c9ca11 100644
--- a/app/src/components/bot-profile/routines-summary.tsx
+++ b/app/src/components/bot-profile/routines-summary.tsx
@@ -2,7 +2,7 @@ import { useQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { Fragment } from "react";
import { PageRows, PageSection } from "@/components/layout/page-shell";
-import { RoutineRow, routineCount } from "@/components/routines/routine-row";
+import { RoutineRow } from "@/components/routines/routine-row";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { loadFailure } from "@/lib/load-failure";
@@ -47,9 +47,13 @@ export function BotRoutinesSummary({ agentId }: { agentId: string }) {
return (
- {routineCount(listed.length)}
-
+ }
+ size="sm"
+ variant="ghost"
+ >
+ {failed ? "All routines" : `All routines (${all.length})`}
+
}
title="Routines"
>
@@ -76,14 +80,6 @@ export function BotRoutinesSummary({ agentId }: { agentId: string }) {
Every goal this Bot had is completed.
)}
- }
- size="sm"
- variant="ghost"
- >
- All routines ({all.length})
-
);
}
diff --git a/app/src/components/browser/teach-steps.tsx b/app/src/components/browser/teach-steps.tsx
index b8a6fc020d..d23f5de725 100644
--- a/app/src/components/browser/teach-steps.tsx
+++ b/app/src/components/browser/teach-steps.tsx
@@ -4,7 +4,7 @@ import { Link } from "@tanstack/react-router";
import { type ReactNode, useEffect, useState } from "react";
import { ComputerBlocked } from "@/components/computer/computer-blocked";
import { IconArrowLeft } from "@/components/icons";
-import { PageRows } from "@/components/layout/page-shell";
+import { PageCard, PageRows } from "@/components/layout/page-shell";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Item, ItemContent } from "@/components/ui/item";
@@ -121,7 +121,7 @@ export function TeachSteps({ state }: { state: BrowserApiState }) {
}
>
-
+
-
+
);
} else if (live) {
@@ -161,7 +161,7 @@ export function TeachSteps({ state }: { state: BrowserApiState }) {
title="Recording in your browser"
description="Do the task in your browser. When you're done, press Stop at the top of the tab and save."
>
-
+ setStep(2)}>Record another}
>
-
+
@@ -298,7 +298,7 @@ function SavedStep({
}
>
-
+
{learning.loaded ? (
<>
diff --git a/app/src/components/connections/apps-toolbar.tsx b/app/src/components/connections/apps-toolbar.tsx
index f40eb357d3..848ba870ef 100644
--- a/app/src/components/connections/apps-toolbar.tsx
+++ b/app/src/components/connections/apps-toolbar.tsx
@@ -7,8 +7,8 @@ import {
InputGroupAddon,
InputGroupInput,
} from "@/components/ui/input-group";
+import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import type { PluginsProvider } from "@/lib/plugins/provider-vocabulary";
-import { cn } from "@/lib/utils";
export function browseAppsLink(provider: PluginsProvider | null) {
if (!provider)
@@ -31,30 +31,41 @@ export function AppsNavigation({
provider: PluginsProvider | null;
browsing?: boolean;
}) {
- const style = (active: boolean) =>
- cn(
- "border-b-2 border-transparent px-1 pb-2 text-sm font-medium text-muted-foreground",
- active && "border-foreground text-foreground",
- );
return (
-
+ }
+ value={browsing ? "browse" : "yours"}
+ >
+
+
+ }
+ value="yours"
+ >
+ Your apps
+
+
+ }
+ value="browse"
+ >
+ Browse apps
+
+
+
);
}
@@ -62,19 +73,23 @@ export function AppsToolbar({
search,
onSearch,
mayAdd,
+ ref,
+ count,
placeholder = "Search apps",
children,
}: {
search: string;
onSearch: (value: string) => void;
mayAdd: boolean;
+ ref?: React.Ref;
+ count?: string;
placeholder?: string;
children?: ReactNode;
}) {
return (
-
+
-
+
@@ -86,6 +101,11 @@ export function AppsToolbar({
onChange={(event) => onSearch(event.target.value)}
/>
+ {count && (
+
+ {count}
+
+ )}
{mayAdd && (
}>
diff --git a/app/src/components/layout/page-parts.tsx b/app/src/components/layout/page-parts.tsx
index 84f4ebff44..065a831df6 100644
--- a/app/src/components/layout/page-parts.tsx
+++ b/app/src/components/layout/page-parts.tsx
@@ -325,7 +325,7 @@ export function PageCard({
/**
* What a section says when it has nothing to list, drawn as shadcn's empty state.
*
- * Flat where the rows would be, as the rows are, so the section keeps its shape: the icon says what kind of
+ * The dashed outline marks the space where rows will appear. The icon says what kind of
* thing would be here, the title says that there is none, the description says how one arrives, and
* `action` is the button that adds the first one when the page has one to offer.
*
@@ -345,10 +345,10 @@ export function PageEmpty({
}) {
return (
// `isolate` gives the pattern its own stacking context, so it sits behind the text, not on it.
-
+
{/* The pattern is decoration: see `.empty-pattern` in styles.css and its tokens in theme.css. */}
-
+
{Icon ? (
diff --git a/app/src/components/manage/skill-page.tsx b/app/src/components/manage/skill-page.tsx
index 2072ac0d6b..f2553c5bdf 100644
--- a/app/src/components/manage/skill-page.tsx
+++ b/app/src/components/manage/skill-page.tsx
@@ -1,12 +1,7 @@
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { Link, linkOptions, useNavigate } from "@tanstack/react-router";
import { useState } from "react";
-import {
- IconBolt,
- IconChevronRight,
- IconFileOff,
- IconPencil,
-} from "@/components/icons";
+import { IconBolt, IconFileOff, IconPencil } from "@/components/icons";
import {
PageEmpty,
PageRows,
@@ -18,6 +13,7 @@ import {
switchedOn,
useBotCalled,
} from "@/components/manage/bot-switch-rows";
+import { DeleteRow } from "@/components/routines/delete-row";
import { SkillAgents } from "@/components/skills/skill-agents";
import { SkillFields } from "@/components/skills/skill-fields";
import { SkillOverview, skillByline } from "@/components/skills/skill-overview";
@@ -31,13 +27,6 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
-import {
- Item,
- ItemActions,
- ItemContent,
- ItemDescription,
- ItemTitle,
-} from "@/components/ui/item";
import { Switch } from "@/components/ui/switch";
import { toast } from "@/components/ui/toast";
import { grantRoster } from "@/lib/agents/grant-roster";
@@ -190,8 +179,7 @@ export function SkillPage({
cancel: (
@@ -222,13 +210,19 @@ export function SkillPage({
) : undefined
}
backButton={back}
- description={skillByline(skill, me?.id, paths.edition)}
+ description={
+ <>
+ {skill.summary && (
+ {skill.summary}
+ )}
+
+ {skillByline(skill, me?.id, paths.edition)}
+
+ >
+ }
title={skill.title}
>
-
- {skill.summary ?
{skill.summary}
: null}
-
-
+
{error ? (
@@ -238,7 +232,7 @@ export function SkillPage({
{/* Their own skill on their own Bots: what a person may grant in the team edition. */}
{!manages && yours ? (
-
+
) : null}
@@ -316,34 +310,21 @@ export function SkillPage({
)}
- {/* A row that opens the confirmation, as deleting a Bot is on its own page. */}
- {/* Teams are the team edition's: with one person there is nobody to grant a skill to. */}
- {paths.edition === "team" ? (
+ {paths.edition === "team" && (
- ) : null}
- setRemoving(true)} type="button" />
- }
- size="sm"
- >
-
- Delete
-
- People can't run it any more, and no Bot offers it. You
- can't undo this.
-
-
-
-
-
-
+ )}
+ setRemoving(true)}
+ />
diff --git a/app/src/components/memory/memories.tsx b/app/src/components/memory/memories.tsx
index 121ceca4a6..3eaf769f14 100644
--- a/app/src/components/memory/memories.tsx
+++ b/app/src/components/memory/memories.tsx
@@ -8,6 +8,7 @@ import {
PageRows,
PageSection,
} from "@/components/layout/page-shell";
+import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Dialog,
@@ -201,9 +202,9 @@ function dayOf(iso: string, now: Date = new Date()): string | null {
/** "Needs review", as a label: the fact waits on the person, so it is drawn in `warning`. */
function NeedsReview() {
return (
-
+
Needs review
-
+
);
}
diff --git a/app/src/components/organizations/organization-settings-page.tsx b/app/src/components/organizations/organization-settings-page.tsx
index 5f47e28cd9..76947b97af 100644
--- a/app/src/components/organizations/organization-settings-page.tsx
+++ b/app/src/components/organizations/organization-settings-page.tsx
@@ -234,42 +234,34 @@ function PlanRow() {
) : null}
{/*
- * An employee admin can pay for the members who aren't employees. Under the bar, not
- * beside it, so the bar keeps its width in a narrow window.
+ * An employee admin can pay for the members who aren't employees. Whole on a phone
+ * too: a row's description stops at two lines.
*/}
{employeePaysForOthers(plan) && plan.addCardUrl ? (
- <>
- {/* Whole on a phone too: a row's description stops at two lines. */}
-
- {OTHERS_NEED_A_CARD}
-
-
- {cardAction(plan)}
-
- >
+
+ {OTHERS_NEED_A_CARD}
+
) : null}
- {/*
- * Once most of it is used, where the server sent the way to add a card. Under the bar,
- * as the employee's button is, so the bar keeps its width in a narrow window.
- */}
- {trialRunningLow(plan) && plan.addCardUrl ? (
+
+ {/*
+ * The way to add a card, where the server sent one: once most of the trial is used, or
+ * for an employee admin, who can pay for the members who aren't employees. In the row's
+ * actions, on the right, on a line of their own under the bar, so the bar keeps its width
+ * in a narrow window.
+ */}
+ {(employeePaysForOthers(plan) || trialRunningLow(plan)) &&
+ plan.addCardUrl ? (
+
{cardAction(plan)}
- ) : null}
-
+
+ ) : null}
>
);
diff --git a/app/src/components/plan/card-needed-dialog.tsx b/app/src/components/plan/card-needed-dialog.tsx
index ffe1ddeba4..475412173f 100644
--- a/app/src/components/plan/card-needed-dialog.tsx
+++ b/app/src/components/plan/card-needed-dialog.tsx
@@ -4,6 +4,7 @@ import sentry from "@/assets/sentry.webp";
import { AbstractAvatar } from "@/components/agents/abstract-avatar";
import { IconCheck, IconPlayerPause } from "@/components/icons";
import { PersonAvatar } from "@/components/organizations/person-avatar";
+import { Badge } from "@/components/ui/badge";
import { Button, buttonVariants } from "@/components/ui/button";
import {
Dialog,
@@ -74,7 +75,7 @@ import { queryClient } from "@/query-client";
/**
* Bots can't run until a card is added: the free trial is used up, or the last payment failed.
- * Top to bottom: the person's Bots, faded, marked Paused; the title, and a line with the size of
+ * Top to bottom: the person's Bots, marked Paused; the title, and a line with the size of
* the trial the server sent, how many Bots that paused and that nothing is lost; the trial's bar,
* full. An admin then gets a plan card (the price and what adding the card does) and the one way
* on (`addCardUrl`, the server's verdict on who may add a card) with Not now beside it. A member gets the owners and admins to ask, as rows
@@ -217,8 +218,9 @@ export function CardNeededDialog() {
const BOTS_SHOWN = 4;
/**
- * The person's Bots, faded and overlapping, with a Paused pill: what the stop means, shown. Up to
- * four, and the rest counted.
+ * The person's Bots, overlapping, with a Paused badge: what the stop means, shown. Up to four, and
+ * the rest counted on a circle the size of an avatar. The badge says they are paused, so the
+ * avatars keep their own colors rather than a faded shade of their own.
*/
function PausedBots({ bots }: { bots: readonly AgentProfile[] }) {
const shown = bots.slice(0, BOTS_SHOWN);
@@ -229,7 +231,7 @@ function PausedBots({ bots }: { bots: readonly AgentProfile[] }) {
{shown.map((bot, index) => (
0 && "-ml-2.5",
)}
key={bot.id}
@@ -243,10 +245,10 @@ function PausedBots({ bots }: { bots: readonly AgentProfile[] }) {
) : null}
-
-
+
+
Paused
-
+
);
}
@@ -265,7 +267,7 @@ function PlanCard() {
-
+
{PRICE_AMOUNT}
{" "}
{PRICE_PER}
@@ -316,6 +318,11 @@ function AdminsToAsk({
{shown.map((admin, index) => (
{index > 0 ? : null}
+ {/*
+ * Flush with the label above and the dialog's title: every `Item` size pads 10px or more
+ * in from the sides, and none has no inset. These rows are read, not pressed, so there is
+ * no hover fill for the padding to make room for.
+ */}
diff --git a/app/src/components/plugins/broker-directory.tsx b/app/src/components/plugins/broker-directory.tsx
index f677ab7129..1776f9e507 100644
--- a/app/src/components/plugins/broker-directory.tsx
+++ b/app/src/components/plugins/broker-directory.tsx
@@ -102,6 +102,9 @@ import { connectionsQueryOptions } from "@/lib/plugins/queries";
/** Placeholder rows while the directory loads: enough to fill the view, not to suggest a count. */
const LOADING_ROWS = ["a", "b", "c", "d", "e", "f"];
+/** The results' section on Browse apps, which a category or "Browse all apps" scrolls back to. */
+const RESULTS_ID = "directory-results";
+
/** Where the directory was opened from: a person's Connections, or Admin's Apps. */
export type DirectoryPlace = "connections" | "admin";
@@ -207,17 +210,18 @@ export function BrokerDirectory({
enabled: !showFeatured,
});
const toolbar = React.useRef(null);
- const results = React.useRef(null);
function choose(next: DiscoveryCategory | null, showAll = false) {
setCategory(next);
setAll(showAll);
setSearch("");
setQuery("");
- if (results.current && toolbar.current) {
+ // Back to the results' title when it has scrolled up under the stuck toolbar.
+ const results = document.getElementById(RESULTS_ID);
+ if (results && toolbar.current) {
const bottom = toolbar.current.getBoundingClientRect().bottom;
- if (results.current.getBoundingClientRect().top < bottom) {
- results.current.style.scrollMarginTop = `${toolbar.current.offsetHeight}px`;
- results.current.scrollIntoView({ block: "start" });
+ if (results.getBoundingClientRect().top < bottom) {
+ results.style.scrollMarginTop = `${toolbar.current.offsetHeight}px`;
+ results.scrollIntoView({ block: "start" });
}
}
}
@@ -272,6 +276,11 @@ export function BrokerDirectory({
...entries.filter((entry) => entry.appId !== null),
]
: entries;
+ /*
+ * Browse apps lays the directory out as a grid of separate cards, not one `PageRows` list: the
+ * layout skill's accepted Connections tiles precedent, because apps are picked out by their mark
+ * rather than read down a list. Admin's directory stays a list of rows.
+ */
const Rows = discover ? "div" : PageRows;
/*
* WHERE AN ADDED KEY VERSION'S PAGE IS, beside the sign-in it was offered under. Its key form opens
@@ -314,7 +323,6 @@ export function BrokerDirectory({
return (
header+nav+*]:mt-0" : undefined}
backButton={
discover
? undefined
@@ -326,76 +334,85 @@ export function BrokerDirectory({
{discover && (
<>
-
-
+ {/*
+ * The chosen category is `secondary`, pressed: the filled main variant stays the
+ * toolbar's Add, the page's one filled button.
+ */}
+
-
@@ -481,7 +498,7 @@ export function BrokerDirectory({
{listed.map((entry, index) => {
@@ -508,17 +525,8 @@ export function BrokerDirectory({
>
-
- {entry.title}
-
-
+ {entry.title}
+
{entry.summary}
diff --git a/app/src/components/plugins/plugin-logo.tsx b/app/src/components/plugins/plugin-logo.tsx
index 8c86a3f882..87c3249b06 100644
--- a/app/src/components/plugins/plugin-logo.tsx
+++ b/app/src/components/plugins/plugin-logo.tsx
@@ -1,16 +1,16 @@
import { appKey } from "@openbot/shared/audit-filters";
import type * as React from "react";
import { useState } from "react";
-import githubLogo from "@/assets/brands/github.svg";
import notionLogo from "@/assets/brands/notion.svg";
import { IconBrandGoogleDrive, IconPlug } from "@/components/icons";
import { cn } from "@/lib/utils";
/**
- * ON A WHITE TILE IN DARK MODE, BECAUSE SOME MARKS DISAPPEAR WITHOUT ONE. GitHub's mark is black,
- * and on the dark page it all but vanished. A vendor's artwork is never recoloured, so dark mode
- * gives every mark a white tile instead: the same rule the framework marks follow
- * (`agents/harness-mark.tsx`). Every mark reads on white.
+ * ON A WHITE TILE IN DARK MODE, BECAUSE SOME MARKS DISAPPEAR WITHOUT ONE. A logo loaded from an
+ * address is a picture with its colors baked in, and a black one all but vanished on the dark page.
+ * A vendor's artwork is never recoloured, so dark mode gives every loaded mark a white tile instead:
+ * the same rule the framework marks follow (`agents/harness-mark.tsx`). Every mark reads on white.
+ * A mark bundled in the code (`BundledMark`) takes `currentColor` and needs no tile.
*/
export const LOGO_TILE = "rounded-sm dark:bg-white dark:p-0.5";
@@ -25,18 +25,45 @@ export function appVendorLogo(id: string): string | undefined {
}
/**
- * GitHub's mark for its account tile and page, bundled like Notion's, so it is the same in every
- * organization and loads nothing from outside. Slack has none bundled yet: its tile keeps its own
- * icon, which a logo address loaded from the directory left blank in WebKit.
+ * A mark drawn in the code rather than loaded as a picture: an SVG that takes `currentColor`, so it
+ * follows light and dark, a skin and a customer's theme, and needs no white tile.
+ */
+export type BundledMark = (props: { className?: string }) => React.ReactNode;
+
+/**
+ * GitHub's Invertocat, from GitHub_Logos.zip at https://brand.github.com/foundations/logo, drawn
+ * in `currentColor`. It was a black picture on a white tile in dark mode; as a shape it takes the
+ * tile's own text color in either theme, as every other glyph on these tiles does.
+ */
+export function GithubMark({ className }: { className?: string }) {
+ return (
+
+ );
+}
+
+/**
+ * GitHub's mark for its account tile and page, bundled, so it is the same in every organization and
+ * loads nothing from outside. Slack has none bundled yet: its tile keeps its own icon, which a logo
+ * address loaded from the directory left blank in WebKit.
*/
export function identityVendorLogo(
provider: "github" | "slack",
-): string | undefined {
- return provider === "github" ? githubLogo : undefined;
+): BundledMark | undefined {
+ return provider === "github" ? GithubMark : undefined;
}
/**
- * An app's logo, or its initial where it has none.
+ * An app's logo, or its initial where it has none. The logo is an address to load, or a mark
+ * bundled in the code (`BundledMark`), which draws in the text color with no tile.
*
* The initial rather than a generic plug because a list of apps that all show the same plug is a
* column of identical tiles, which tells nobody anything; "T" and "G" at least tell Todoist from
@@ -47,12 +74,16 @@ export function PluginLogo({
name,
fallback,
}: {
- logo?: string | null;
+ logo?: string | BundledMark | null;
name?: string;
/** Drawn instead of the initial when there is no logo or it fails: a vendor's own icon. */
fallback?: React.ReactNode;
}) {
const [failedUrl, setFailedUrl] = useState(null);
+ if (typeof logo === "function") {
+ const Mark = logo;
+ return ;
+ }
if (!logo || failedUrl === logo) {
if (fallback) return fallback;
return name ? : ;
diff --git a/app/src/components/responsibilities/goal-page.tsx b/app/src/components/responsibilities/goal-page.tsx
index 90640ff4ef..195855a58b 100644
--- a/app/src/components/responsibilities/goal-page.tsx
+++ b/app/src/components/responsibilities/goal-page.tsx
@@ -262,45 +262,41 @@ export function GoalPage({
return (
-
- action.mutate({
- id: goal.id,
- action: active ? "resume" : "pause",
- })
- }
- />
-
- {goal.status === "active" ? "On" : "Paused"}
-
-
- )
- }
- description={
- <>
-
- {summaryFor(goal, triggers.data, routines)}
-
- {/* What starts it. A paused goal's summary already says nothing does. */}
- {goal.status === "active" ? (
- {`Its ${starters} start it.`}
- ) : null}
- >
- }
+ description={summaryFor(goal, triggers.data, routines)}
title={goal.title}
>
- {/* What else can be done to it. The page title names it, so this first section has no heading. */}
+ {/* What can be done to it now. The page title names it, so this first section has no heading. */}
+ {goal.status !== "completed" ? (
+ <>
+
+
+ On
+
+ {goal.status === "active"
+ ? `Its ${starters} start it.`
+ : `Paused. Its ${starters} won't start it.`}
+
+
+
+ {/* Binary and immediate: it takes effect when switched, there is no save. */}
+
+ action.mutate({
+ id: goal.id,
+ action: active ? "resume" : "pause",
+ })
+ }
+ />
+
+
+
+ >
+ ) : null}
{goal.status === "active" ? (
<>
+
+ {
+ remove.reset();
+ setConfirmingDelete(true);
+ }}
+ title="Delete goal"
+ />
{action.error ? (
@@ -528,21 +534,6 @@ export function GoalPage({
- {/* Away from the everyday controls, at the bottom. */}
-
-
- {
- remove.reset();
- setConfirmingDelete(true);
- }}
- title="Delete goal"
- />
-
-
-