Skip to content
Closed
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
3 changes: 3 additions & 0 deletions apps/code/src/renderer/api/posthogClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,9 @@ export class PostHogAPIClient {
if (params?.ordering) {
url.searchParams.set("ordering", params.ordering);
}
if (params?.source_product) {
url.searchParams.set("source_product", params.source_product);
}

const response = await this.api.fetcher.fetch({
method: "get",
Expand Down
2 changes: 2 additions & 0 deletions apps/code/src/renderer/components/GlobalEventHandlers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function GlobalEventHandlers({
(state) => state.navigateToTaskInput,
);
const navigateToTask = useNavigationStore((state) => state.navigateToTask);
const navigateToInbox = useNavigationStore((state) => state.navigateToInbox);
const navigateToFolderSettings = useNavigationStore(
(state) => state.navigateToFolderSettings,
);
Expand Down Expand Up @@ -165,6 +166,7 @@ export function GlobalEventHandlers({
useHotkeys(SHORTCUTS.TOGGLE_LEFT_SIDEBAR, toggleLeftSidebar, globalOptions);
useHotkeys(SHORTCUTS.TOGGLE_RIGHT_SIDEBAR, toggleRightSidebar, globalOptions);
useHotkeys(SHORTCUTS.SHORTCUTS_SHEET, onToggleShortcutsSheet, globalOptions);
useHotkeys(SHORTCUTS.INBOX, navigateToInbox, globalOptions);
useHotkeys(SHORTCUTS.PREV_TASK, handlePrevTask, globalOptions, [
handlePrevTask,
]);
Expand Down
7 changes: 7 additions & 0 deletions apps/code/src/renderer/constants/keyboard-shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const SHORTCUTS = {
COPY_PATH: "mod+shift+c",
TOGGLE_FOCUS: "mod+r",
PASTE_AS_FILE: "mod+shift+v",
INBOX: "mod+shift+i",
BLUR: "escape",
SUBMIT_BLUR: "mod+enter",
} as const;
Expand Down Expand Up @@ -66,6 +67,12 @@ export const KEYBOARD_SHORTCUTS: KeyboardShortcut[] = [
description: "Show keyboard shortcuts",
category: "general",
},
{
id: "inbox",
keys: SHORTCUTS.INBOX,
description: "Open inbox",
category: "navigation",
},
{
id: "switch-task",
keys: "mod+0-9",
Expand Down
Loading
Loading