Skip to content

Commit cbd85f8

Browse files
committed
Merge remote-tracking branch 'origin/main' into mcp-host-token-spec
# Conflicts: # .github/workflows/ci.yml
2 parents 28bf0c3 + 99df719 commit cbd85f8

33 files changed

Lines changed: 4102 additions & 79 deletions

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,9 @@ jobs:
588588
# link, the page, a reload, and the bare address an older tab kept.
589589
# And Admin's page of an app added by its address and reached as the person asking: its "How this
590590
# is reached" row, through the app OpenBot is part of (named by its token endpoint's host) and
591-
# through Microsoft Entra, with no token to paste. In the image, as above:
591+
# through Microsoft Entra, with no token to paste.
592+
# And Report a bug, Your bug reports and Admin's Bug reports, wide and on a phone, light and dark,
593+
# held against Add credential and the Vault: a file taken, one refused, the report saved. In the image, as above:
592594
# WebKit's system packages are about 94 MB, which took nine minutes from the mirror on a slow day.
593595
#
594596
# The files run side by side, like the Chromium list's, but eight at a time rather than a worker
@@ -672,8 +674,10 @@ jobs:
672674
app/tests/bots-panel-start-conversation.test.tsx
673675
app/tests/browse-apps-pages.test.tsx
674676
app/tests/browse-steps-layout.test.tsx
677+
app/tests/bug-reports-layout.test.tsx
675678
app/tests/chunk-recovery.test.tsx
676679
app/tests/command-card-layout.test.tsx
680+
app/tests/component-bots-layout.test.tsx
677681
app/tests/composer-dictation-language.test.tsx
678682
app/tests/composer-keeps-draft-browser.test.tsx
679683
app/tests/composer-touch-return.test.tsx

‎app/src/components/admin/admin-sections.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
IconBrain,
3+
IconBug,
34
IconBuildingBank,
45
IconBulb,
56
IconCloudCog,
@@ -212,6 +213,14 @@ export const ADMIN_SECTIONS: readonly AdminSection[] = [
212213
icon: IconBrain,
213214
linkOptions: { to: "/admin/providers" },
214215
},
216+
{
217+
/* Every report sent with Report a bug in the organization; each person sees their own. */
218+
title: "Bug reports",
219+
description:
220+
"See the bugs people in this organization reported, and where each one stands.",
221+
icon: IconBug,
222+
linkOptions: { to: "/admin/bug-reports" },
223+
},
215224
],
216225
},
217226
];

‎app/src/components/app-sidebar/help-menu.tsx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ import {
1010
import { currentUserQueryOptions } from "@/lib/auth/queries";
1111
import { OpenBotVersion } from "../layout/openbot-version";
1212
import { DesktopAppMenuItem } from "./desktop-app-item";
13+
import { ReportBugMenuItem } from "./report-bug-item";
1314
import { TroubleshootingLogsMenuItem } from "./troubleshooting-logs-item";
1415

1516
/**
16-
* Help, in the account menu: what a person needs now and then, out of the menu's main list. Get the
17-
* desktop app (on OpenBot Cloud in a browser), Get troubleshooting logs, and the release the server
18-
* runs, so a bug report can say which one it was.
17+
* Help, in the account menu: what a person needs now and then, out of the menu's main list. Report a
18+
* bug, Get the desktop app (on OpenBot Cloud in a browser), Get troubleshooting logs, and the release
19+
* the server runs.
1920
*/
2021
export function HelpMenu({ itemClassName }: { itemClassName: string }) {
2122
return (
@@ -25,6 +26,7 @@ export function HelpMenu({ itemClassName }: { itemClassName: string }) {
2526
<span className="flex-1">Help</span>
2627
</DropdownMenuSubTrigger>
2728
<DropdownMenuSubContent className={accountSubmenuClassName}>
29+
<ReportBugMenuItem className={itemClassName} />
2830
<DesktopAppMenuItem className={itemClassName} />
2931
<TroubleshootingLogsMenuItem className={itemClassName} />
3032
<HelpVersion />
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Link, useRouterState } from "@tanstack/react-router";
2+
import { IconBug } from "@/components/icons";
3+
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
4+
5+
/**
6+
* Report a bug, in Help: opens the screen of its own, carrying the page the person was on (its path
7+
* alone, never its query), so the report can say where it happened.
8+
*/
9+
export function ReportBugMenuItem({ className }: { className?: string }) {
10+
const path = useRouterState({ select: (state) => state.location.pathname });
11+
const from = path === "/report-a-bug" ? undefined : path;
12+
return (
13+
<DropdownMenuItem
14+
className={className}
15+
render={<Link search={from ? { from } : {}} to="/report-a-bug" />}
16+
>
17+
<IconBug />
18+
Report a bug
19+
</DropdownMenuItem>
20+
);
21+
}

0 commit comments

Comments
 (0)