GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(web): add keyboard navigation for usage by tris203 · Pull Request #10158 · pingdotgg/t3code

feat(web): add keyboard navigation for usage #10158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Yash-Singh1 merged 15 commits into pingdotgg:main from tris203:t3code/add-usage-limits-hotkey
Sep 26, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat(web): add keyboard navigation for usage #10158

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
82989df
feat(web): add keyboard navigation for usage
tris203 Sep 5, 2026
f131f6d
fix(web): respect usage shortcuts in sidebar controls
tris203 Sep 5, 2026
a8b5b81
fix(web): ignore repeated and composing escape events
tris203 Sep 6, 2026
d476d79
fix(web): return from pull requests with Escape
tris203 Sep 6, 2026
2eee985
feat(web): open pull requests from the command palette
tris203 Sep 6, 2026
826f330
fix(web): handle panel Escape before page navigation
tris203 Sep 8, 2026
ffecdc1
test(web): cover Usage Escape navigation
tris203 Sep 13, 2026
c6af896
test(web): provide navigation context for Usage refresh tests
tris203 Sep 13, 2026
587b1b4
test(web): exercise Usage popup Escape handling in the DOM
tris203 Sep 13, 2026
0eceb87
chore(web): account for the DOM test environment in dependency checks
tris203 Sep 13, 2026
d19b184
fix(test): deduplicate Vite+ after adding the DOM environment
tris203 Sep 13, 2026
e02905b
fix(web): use shared pull request glyph in command palette
tris203 Sep 16, 2026
f8f7c97
fix(web): align navigation shortcuts with upstream
tris203 Sep 18, 2026
fd5bc71
test(web): retain Escape coverage after upstream usage test cleanup
tris203 Sep 23, 2026
667f70f
fix(web): preserve main app return behavior after rebase
tris203 Sep 25, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(web): align navigation shortcuts with upstream
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@tris203
tris203 committed Sep 25, 2026
commit f8f7c9751df50db99b5db3e2fc78d5ca148dc5ee

There are no files selected for viewing

32 changes: 0 additions & 32 deletions 32 apps/web/src/components/CommandPalette.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ import { isDesktopLocalConnectionTarget } from "../connection/desktopLocal";
import { useDesktopLocalBootstraps } from "../connection/useDesktopLocalBootstraps";
import { useHandleNewThread } from "../hooks/useHandleNewThread";
import { useOpenPanelPullRequestUrl } from "../hooks/useOpenPanelPullRequestUrl";
import { readPullRequestListPreferences } from "./pullRequest/pullRequestListPreferences";
import { writeTextToClipboard } from "../hooks/useCopyToClipboard";
import { useClientSettings } from "../hooks/useSettings";
import { useTheme } from "../hooks/useTheme";
Expand Down Expand Up @@ -2051,37 +2050,6 @@ function OpenCommandPaletteDialog(props: {
},
});

actionItems.push({
kind: "action",
value: "action:usage",
searchTerms: ["usage", "cost", "tokens", "limits"],
title: "Open usage",
icon: <ChartNoAxesColumnIcon className={ITEM_ICON_CLASS} />,
run: async () => {
await navigate({ to: "/usage" });
},
});

if (
environments.some(
(environment) => environment.serverConfig?.environment.capabilities.pullRequests === true,
)
) {
actionItems.push({
kind: "action",
value: "action:pull-requests",
searchTerms: ["pull requests", "prs", "reviews"],
title: "Open pull requests",
icon: <PullRequestGlyph.pullRequest className={ITEM_ICON_CLASS} />,
run: async () => {
await navigate({
to: "/pull-requests",
search: readPullRequestListPreferences(),
});
},
});
}

// Target the active thread or draft's project, falling back to the first sidebar group.
const contextualProjectGroup =
(contextualProjectRef
Expand Down
6 changes: 3 additions & 3 deletions 6 apps/web/src/keybindings.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ describe("Usage shortcuts", () => {
});

it.each(["Linux", "MacIntel"])(
"preserves numbered thread shortcuts on Usage on %s",
"preserves desktop numbered thread shortcuts on Usage on %s",
(platform) => {
const shortcut = event({
key: "2",
Expand All @@ -1405,14 +1405,14 @@ describe("Usage shortcuts", () => {
assert.strictEqual(
resolveShortcutCommand(shortcut, DEFAULT_RESOLVED_KEYBINDINGS, {
platform,
context: { usagePageOpen: true },
context: { usagePageOpen: true, isDesktop: true },
}),
"thread.jump.2",
);
assert.isNotNull(
shortcutLabelForCommand(DEFAULT_RESOLVED_KEYBINDINGS, "thread.jump.2", {
platform,
context: { usagePageOpen: true },
context: { usagePageOpen: true, isDesktop: true },
}),
);
},
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.