Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 0 additions & 12 deletions app/src/assets/brands/github.svg

This file was deleted.

36 changes: 18 additions & 18 deletions app/src/components/app-sidebar/conversations-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -477,24 +477,6 @@ export function ConversationsPanel({ hidden = false }: { hidden?: boolean }) {
<SidebarContent ref={scrollRoot} className="scroll-fade-b">
<SidebarMenu>
<SidebarGroup className="gap-px pt-0">
{/*
* 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.
*/}
<SidebarMenuItem className="mb-1.5">
<SidebarMenuButton
render={(props) => (
<Link
{...props}
activeProps={{ className: "bg-foreground/5" }}
to="/artifacts"
>
<IconLayoutCollage className="size-4 text-muted-foreground" />
<span className="min-w-0 truncate">Artifacts</span>
</Link>
)}
/>
</SidebarMenuItem>
<SidebarMenuItem>
<InputGroup className="bg-background text-sm rounded-lg h-9">
<InputGroupInput
Expand Down Expand Up @@ -524,6 +506,24 @@ export function ConversationsPanel({ hidden = false }: { hidden?: boolean }) {
{searchable ? SEARCH_SCOPE : SEARCH_HINT}
</p>
) : 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.
*/}
<SidebarMenuItem className="mt-1.5">
Comment thread
samjulien marked this conversation as resolved.
Resolved
<SidebarMenuButton
render={(props) => (
<Link
{...props}
activeProps={{ className: "bg-foreground/5" }}
to="/artifacts"
>
<IconLayoutCollage className="size-4 text-muted-foreground" />
<span className="min-w-0 truncate">Artifacts</span>
</Link>
)}
/>
</SidebarMenuItem>
</SidebarGroup>
</SidebarMenu>
{searching ? (
Expand Down
20 changes: 8 additions & 12 deletions app/src/components/bot-profile/routines-summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -47,9 +47,13 @@ export function BotRoutinesSummary({ agentId }: { agentId: string }) {
return (
<PageSection
action={
<span className="text-muted-foreground text-sm tabular-nums">
{routineCount(listed.length)}
</span>
<Button
render={<Link params={{ agentId }} to="/bots/$agentId/routines" />}
size="sm"
variant="ghost"
>
{failed ? "All routines" : `All routines (${all.length})`}
</Button>
}
title="Routines"
>
Expand All @@ -76,14 +80,6 @@ export function BotRoutinesSummary({ agentId }: { agentId: string }) {
Every goal this Bot had is completed.
</p>
)}
<Button
className="mt-3"
render={<Link params={{ agentId }} to="/bots/$agentId/routines" />}
size="sm"
variant="ghost"
>
All routines ({all.length})
</Button>
</PageSection>
);
}
12 changes: 6 additions & 6 deletions app/src/components/browser/teach-steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -121,7 +121,7 @@ export function TeachSteps({ state }: { state: BrowserApiState }) {
</Button>
}
>
<PageRows className="mt-0 w-full max-w-md shadow-lg">
<PageCard className="w-full max-w-md">
<Item
size="sm"
render={
Expand Down Expand Up @@ -152,7 +152,7 @@ export function TeachSteps({ state }: { state: BrowserApiState }) {
choice={choice}
recording={false}
/>
</PageRows>
</PageCard>
</Slide>
);
} else if (live) {
Expand All @@ -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."
>
<PageRows className="mt-0 w-full max-w-md shadow-lg">
<PageRows className="mx-0 mt-0 w-full max-w-md">
<RecordingRow
recording={recording}
whileRecording={
Expand Down Expand Up @@ -219,7 +219,7 @@ export function TeachSteps({ state }: { state: BrowserApiState }) {
}
action={<Button onClick={() => setStep(2)}>Record another</Button>}
>
<PageRows className="mt-0 w-full max-w-md shadow-lg">
<PageRows className="mx-0 mt-0 w-full max-w-md">
<StoppedRow stopped={stopped} />
</PageRows>
</Slide>
Expand Down Expand Up @@ -298,7 +298,7 @@ function SavedStep({
</div>
}
>
<PageRows className="mt-0 w-full max-w-md shadow-lg">
<PageRows className="mx-0 mt-0 w-full max-w-md">
<StoppedRow stopped={stopped} />
{learning.loaded ? (
<>
Expand Down
72 changes: 46 additions & 26 deletions app/src/components/connections/apps-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -31,50 +31,65 @@ 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 (
<nav aria-label="App pages" className="mt-6 flex gap-5 border-b">
<Link
to="/connections"
search={{}}
aria-current={!browsing ? "page" : undefined}
className={style(!browsing)}
>
Your apps
</Link>
<Link
{...browseAppsLink(provider)}
data-testid="account-browse"
aria-current={browsing ? "page" : undefined}
className={style(!!browsing)}
>
Browse apps
</Link>
</nav>
<Tabs
render={<nav aria-label="App pages" />}
value={browsing ? "browse" : "yours"}
>
<TabsList variant="line">
<TabsTrigger
nativeButton={false}
render={
<Link
activeOptions={{ exact: true }}
aria-current={!browsing ? "page" : undefined}
to="/connections"
search={{}}
/>
}
value="yours"
>
Your apps
</TabsTrigger>
<TabsTrigger
data-testid="account-browse"
nativeButton={false}
render={
<Link
aria-current={browsing ? "page" : undefined}
{...browseAppsLink(provider)}
/>
}
value="browse"
>
Browse apps
</TabsTrigger>
</TabsList>
</Tabs>
);
}

export function AppsToolbar({
search,
onSearch,
mayAdd,
ref,
count,
placeholder = "Search apps",
children,
}: {
search: string;
onSearch: (value: string) => void;
mayAdd: boolean;
ref?: React.Ref<HTMLDivElement>;
count?: string;
placeholder?: string;
children?: ReactNode;
}) {
return (
<div className="sticky top-0 z-10 border-b bg-background py-2">
<div ref={ref} className="sticky top-0 z-10 border-b bg-background py-2">
<div className="flex items-center gap-2">
<InputGroup className="min-w-0 flex-1 bg-card">
<InputGroup className="min-w-0 flex-1">
<InputGroupAddon>
<IconSearch aria-hidden="true" />
</InputGroupAddon>
Expand All @@ -86,6 +101,11 @@ export function AppsToolbar({
onChange={(event) => onSearch(event.target.value)}
/>
</InputGroup>
{count && (
<span className="text-muted-foreground text-xs tabular-nums">
{count}
</span>
)}
{mayAdd && (
<Button render={<Link to="/connections/new" />}>
<IconPlus />
Expand Down
6 changes: 3 additions & 3 deletions app/src/components/layout/page-parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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.
<Empty className="relative isolate mt-2 overflow-hidden rounded-lg">
<Empty className="relative isolate mt-2 overflow-hidden rounded-lg border border-border">
{/* The pattern is decoration: see `.empty-pattern` in styles.css and its tokens in theme.css. */}
<div aria-hidden className="empty-pattern" />
<EmptyHeader>
<EmptyHeader className={title || Icon ? undefined : "max-w-prose"}>
{Icon ? (
<EmptyMedia variant="icon">
<Icon />
Expand Down
Loading
Loading