@devries-cameron20 / t3code-1 / commits / c0dded88b1
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

feat(web): command palette finds the pull requests and usage pages (#12211)

oliver committed Sep 16, 2026 at 23:17 UTC c0dded88b1fc8c1c86d65f684fbfa520139e58dc
1 file changed +30
apps/web/src/components/CommandPalette.tsx
+30
@@ -42,6 +42,7 @@ import { useLocation, useNavigate, useParams } from "@tanstack/react-router";
42 import * as Option from "effect/Option";
43 import {
44 ArrowLeftIcon,
45 + ChartNoAxesColumnIcon,
46 CornerLeftUpIcon,
47 FileSearchIcon,
48 FolderIcon,
@@ -193,6 +194,7 @@ import {
194 } from "../sidebarProjectGrouping";
195 import type { Project } from "../types";
196 import { PullRequestGlyph } from "~/components/pullRequest/pullRequestIcons";
197 +import { readPullRequestListPreferences } from "~/components/pullRequest/pullRequestListPreferences";
198
199 const EMPTY_BROWSE_ENTRIES: FilesystemBrowseResult["entries"] = [];
200
@@ -1999,6 +2001,34 @@ function OpenCommandPaletteDialog(props: {
2001 },
2002 });
2003
2004 + if (
2005 + environments.some(
2006 + (environment) => environment.serverConfig?.environment.capabilities.pullRequests === true,
2007 + )
2008 + ) {
2009 + actionItems.push({
2010 + kind: "action",
2011 + value: "action:pull-requests",
2012 + searchTerms: ["pull requests", "prs", "pr", "github", "review", "merge", "branch"],
2013 + title: "Open pull requests",
2014 + icon: <PullRequestGlyph.pullRequest className={ITEM_ICON_CLASS} />,
2015 + run: async () => {
2016 + await navigate({ to: "/pull-requests", search: readPullRequestListPreferences() });
2017 + },
2018 + });
2019 + }
2020 +
2021 + actionItems.push({
2022 + kind: "action",
2023 + value: "action:usage",
2024 + searchTerms: ["usage", "use", "tokens", "cost", "spend", "limits", "stats", "analytics"],
2025 + title: "Open usage",
2026 + icon: <ChartNoAxesColumnIcon className={ITEM_ICON_CLASS} />,
2027 + run: async () => {
2028 + await navigate({ to: "/usage" });
2029 + },
2030 + });
2031 +
2032 actionItems.push({
2033 kind: "action",
2034 value: "action:settings",