Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
63c2684
Polish app discovery and connection management
samjulien Dec 1, 2026
4f3de43
Exercise the full directory when connecting PostHog with a key
samjulien Dec 1, 2026
81b9943
Page category searches and keep app cards stable while scrolling
samjulien Dec 1, 2026
8f0ae52
Merge remote-tracking branch 'origin/main' into codex/apps-discovery-…
samjulien Dec 1, 2026
c83344b
Merge remote-tracking branch 'origin/main' into codex/apps-discovery-…
samjulien Dec 1, 2026
4dc3cf3
Tune directory shortcuts against vendor listings and clarify the memb…
samjulien Dec 1, 2026
24731fb
Merge remote-tracking branch 'origin/main' into codex/apps-discovery-…
samjulien Dec 1, 2026
7de85a5
Merge remote-tracking branch 'origin/main' into codex/apps-discovery-…
samjulien Dec 1, 2026
287ea9f
Apps and permissions polish
samjulien Dec 2, 2026
747ebf7
Test that GitHub's logo changes only its mark, not whether it reads c…
samjulien Dec 2, 2026
5ea5e27
Address review: copy failure, Copied, Approvals switches, one-item Add
samjulien Dec 2, 2026
a53e10b
Bundle GitHub's mark; Slack keeps its own icon
samjulien Dec 2, 2026
923a6ee
Bundle Slack's mark beside GitHub's
samjulien Dec 2, 2026
4486738
Apps' empty state no longer names the old Add custom MCP button
samjulien Dec 2, 2026
7b354a5
Take the Slack mark out; load app logos eagerly
samjulien Dec 2, 2026
5850447
Merge branch 'main' of https://github.com/CopilotKit/OpenBot into cla…
samjulien Dec 2, 2026
8de0e73
Move the release note from CHANGELOG.md to the pull request's descrip…
samjulien Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/src/assets/brands/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions app/src/components/approvals/ask-first-copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ export const ASK_FIRST_TITLE = "Extra vigilant";

export const ASK_FIRST_DESCRIPTION =
"Require your approval for every change to your apps, websites, and files, including routine edits and updates.";

/*
* The same setting on Settings → Approvals, asked as the question it answers: which changes a Bot
* asks before. Onboarding offers it as one switch, Extra vigilant, and the words above stay its own.
* Here it is a select beside the other "when does a Bot ask" rows, and "Extra vigilant: Risky
* changes" read as a contradiction.
*/
export const ASK_BEFORE_TITLE = "Ask before";

export const ASK_BEFORE_DESCRIPTION =
"Bots always ask before risky changes. Choose Every change to approve routine edits and updates to your apps, websites, and files too.";

export const ASK_BEFORE_LABELS = {
risky: "Risky changes",
every: "Every change",
} as const;
11 changes: 8 additions & 3 deletions app/src/components/approvals/rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,15 @@ export function RuleRow({
{locked ? <ItemDescription>Locked</ItemDescription> : null}
</ItemContent>
<ItemActions>
{/* Locked, the same select, shown and not changeable: one control on every row. */}
{locked ? (
<span className="text-muted-foreground text-sm">
{labels[rule.behaviour]}
</span>
<LabelSelect
disabled
label={`Behaviour for ${title}`}
labels={labels}
onChange={() => undefined}
value={rule.behaviour}
/>
) : (
<>
<LabelSelect
Expand Down
20 changes: 12 additions & 8 deletions app/src/components/approvals/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ import { failureSaid } from "@/lib/load-failure";
import { queryClient } from "@/query-client";
import {
ALWAYS_ASKS,
ASK_FIRST_DESCRIPTION,
ASK_FIRST_TITLE,
ASK_BEFORE_DESCRIPTION,
ASK_BEFORE_LABELS,
ASK_BEFORE_TITLE,
HANDED_TO_YOU,
} from "./ask-first-copy";
import { HOST_LABELS, LabelSelect, RuleForm, RuleRow } from "./rules";
Expand Down Expand Up @@ -129,17 +130,20 @@ export function ApprovalSettings() {
<IconHandStop />
</ItemMedia>
<ItemContent>
<ItemTitle>{ASK_FIRST_TITLE}</ItemTitle>
<ItemTitle>{ASK_BEFORE_TITLE}</ItemTitle>
<ItemDescription className="line-clamp-none">
{ASK_FIRST_DESCRIPTION}
{ASK_BEFORE_DESCRIPTION}
</ItemDescription>
</ItemContent>
<ItemActions>
<Switch
aria-label={ASK_FIRST_TITLE}
checked={inbox.data?.enabled ?? false}
<LabelSelect
disabled={inbox.isLoading || preferences.isPending}
onCheckedChange={(enabled) => preferences.mutate({ enabled })}
label={ASK_BEFORE_TITLE}
labels={ASK_BEFORE_LABELS}
onChange={(value) =>
Comment thread
samjulien marked this conversation as resolved.
Resolved
preferences.mutate({ enabled: value === "every" })
}
value={inbox.data?.enabled ? "every" : "risky"}
/>
</ItemActions>
</Item>
Expand Down
65 changes: 53 additions & 12 deletions app/src/components/connections/apps-toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { Link } from "@tanstack/react-router";
import type { ReactNode } from "react";
import { IconPlus, IconSearch } from "@/components/icons";
import { IconChevronDown, IconPlus, IconSearch } from "@/components/icons";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import {
InputGroup,
InputGroupAddon,
Expand Down Expand Up @@ -32,11 +38,7 @@ export function AppsNavigation({
Your apps
</Link>
<Link
to={
provider === "arcade"
? "/connections/browse/arcade"
: "/connections/browse/composio"
}
to={browsePath(provider)}
data-testid="account-browse"
aria-current={browsing ? "page" : undefined}
className={style(!!browsing)}
Expand All @@ -47,16 +49,60 @@ export function AppsNavigation({
);
}

function browsePath(provider: PluginsProvider) {
return provider === "arcade"
? "/connections/browse/arcade"
: "/connections/browse/composio";
}

/**
* The toolbar's one filled button. "Add", with what can be added in a menu: an app from the
* directory, or a custom app by its MCP address. The button used to say "Add custom MCP", which
* named the rarer of the two and in words most people don't use.
*/
function AddMenu({ browse }: { browse: PluginsProvider | null }) {
Comment thread
samjulien marked this conversation as resolved.
Resolved
// With nothing to browse (on Browse apps itself, or with no directory), there is one thing to add:
// a plain button, one press, as before.
if (!browse) {
return (
<Button size="sm" render={<Link to="/connections/new" />}>
<IconPlus data-icon="inline-start" />
Add custom app
</Button>
);
}
return (
<DropdownMenu>
<DropdownMenuTrigger render={<Button size="sm" />}>
<IconPlus data-icon="inline-start" />
Add
<IconChevronDown data-icon="inline-end" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-44">
<DropdownMenuItem render={<Link to={browsePath(browse)} />}>
Browse apps
</DropdownMenuItem>
<DropdownMenuItem render={<Link to="/connections/new" />}>
Custom app (MCP)
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
);
}

export function AppsToolbar({
search,
onSearch,
mayAdd,
browse = null,
placeholder = "Search apps",
children,
}: {
search: string;
onSearch: (value: string) => void;
mayAdd: boolean;
/** The directory "Add" offers to browse, where it isn't the page already open. */
browse?: PluginsProvider | null;
placeholder?: string;
children?: ReactNode;
}) {
Expand All @@ -75,12 +121,7 @@ export function AppsToolbar({
onChange={(event) => onSearch(event.target.value)}
/>
</InputGroup>
{mayAdd && (
<Button size="sm" render={<Link to="/connections/new" />}>
<IconPlus />
Add custom MCP
</Button>
)}
{mayAdd && <AddMenu browse={browse} />}
</div>
{children}
</div>
Expand Down
23 changes: 23 additions & 0 deletions app/src/components/connections/identity-connection-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import {
type LinkableProvider,
LinkedAccountSection,
linkableProviderTitle,
providerIcon,
} from "@/components/settings/linked-accounts";
import {
identityVendorLogo,
PluginLogo,
} from "@/components/plugins/plugin-logo";
import {
linkedNotice,
visibleLinkedNotice,
Expand Down Expand Up @@ -73,6 +78,7 @@ export function IdentityConnectionPage({
<PageShell
backButton={{ label: "Apps", linkProps: { to: "/connections" } }}
description={IDENTITY_SUMMARIES[provider]}
media={<IdentityMark provider={provider} />}
title={title}
>
{notice ? (
Expand All @@ -98,6 +104,23 @@ export function IdentityConnectionPage({
);
}

/**
* The vendor's mark beside the page's title, as on its tile in Apps: GitHub's bundled mark, and
* Slack's own icon.
*/
function IdentityMark({ provider }: { provider: LinkableProvider }) {
const Icon = providerIcon(provider);
return (
<ItemMedia className="size-10" variant="icon">
<PluginLogo
fallback={<Icon className="size-5" />}
logo={identityVendorLogo(provider)}
name={linkableProviderTitle(provider)}
/>
</ItemMedia>
);
}

/**
* A brokered GitHub app, where one is enabled. It is a separate connection — tools that read and
* change repositories as you — and the Connections list leaves its row out so GitHub is listed once,
Expand Down
25 changes: 19 additions & 6 deletions app/src/components/layout/page-parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,34 @@ export function PageColumn({
export function PageHeader({
action,
description,
media,
title,
}: {
action?: React.ReactNode;
description?: React.ReactNode;
/** A mark before the title, such as an app's logo tile. */
media?: React.ReactNode;
title: string;
}) {
const heading = (
<h1
className="font-semibold text-2xl tracking-tight"
data-slot="page-title"
>
{title}
</h1>
);
return (
<header className="flex flex-col gap-2" data-slot="page-header">
<div className="flex flex-row items-center justify-between gap-4">
<h1
className="font-semibold text-2xl tracking-tight"
data-slot="page-title"
>
{title}
</h1>
{media ? (
<div className="flex min-w-0 items-center gap-3">
{media}
{heading}
</div>
) : (
heading
)}
{action}
</div>
{description ? (
Expand Down
10 changes: 9 additions & 1 deletion app/src/components/layout/page-shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ export function PageShell({
children,
className,
description,
media,
title,
width = "prose",
backButton,
}: {
/** Sits on the title's baseline. For the page's one primary verb, if it has one. */
action?: React.ReactNode;
/** A mark beside the title, for a page about one app: its logo tile. */
media?: React.ReactNode;
children: React.ReactNode;
className?: string;
description?: React.ReactNode;
Expand Down Expand Up @@ -64,7 +67,12 @@ export function PageShell({
const bar = showToggle || !!backButton;

const header = (
<PageHeader title={title} action={action} description={description} />
<PageHeader
title={title}
action={action}
description={description}
media={media}
/>
);

const barRow = bar ? (
Expand Down
21 changes: 20 additions & 1 deletion app/src/components/plugins/plugin-logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
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";
Expand All @@ -22,6 +24,17 @@ export function appVendorLogo(id: string): string | undefined {
return appKey(id) === "notion" ? notionLogo : 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.
*/
export function identityVendorLogo(
provider: "github" | "slack",
): string | undefined {
return provider === "github" ? githubLogo : undefined;
}

/**
* An app's logo, or its initial where it has none.
*
Expand All @@ -32,12 +45,16 @@ export function appVendorLogo(id: string): string | undefined {
export function PluginLogo({
logo,
name,
fallback,
}: {
logo?: string | 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<string | null>(null);
if (!logo || failedUrl === logo) {
if (fallback) return fallback;
Comment thread
samjulien marked this conversation as resolved.
Resolved
return name ? <AppInitial name={name} /> : <IconPlug className="size-4" />;
}

Expand All @@ -47,7 +64,9 @@ export function PluginLogo({
src={logo}
className={cn("size-6 object-contain", LOGO_TILE)}
referrerPolicy="no-referrer"
loading="lazy"
// Eager: in WebKit a lazy logo sometimes never starts loading and fires no error, so the
// tile stayed blank and the fallback never ran. A 24px mark gains nothing from waiting.
loading="eager"
onError={() => setFailedUrl(logo)}
/>
);
Expand Down
Loading