Skip to content

Commit bffcdd0

Browse files
committed
Add telemetry, swap vim keybinds
1 parent 93660f7 commit bffcdd0

File tree

14 files changed

+713
-121
lines changed

14 files changed

+713
-121
lines changed

bun.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"hono": "^4.10.7",
4343
"lucide-react": "^0.555.0",
4444
"png2icons": "^2.0.1",
45+
"posthog-js": "^1.300.0",
4546
"prettier": "^3.7.3",
4647
"react": "^19.1.0",
4748
"react-dom": "^19.1.0",
@@ -269,6 +270,8 @@
269270

270271
"@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="],
271272

273+
"@posthog/core": ["@posthog/core@1.7.0", "", { "dependencies": { "cross-spawn": "^7.0.6" } }, "sha512-d6ZV4grpzeH/6/LP8quMVpSjY1puRkrqfwcPvGRKUAX7tb7YHyp/zMiTDuJmOFbpUxAMBXH5nDwcPiyCY2WGzA=="],
274+
272275
"@radix-ui/primitive": ["@radix-ui/primitive@1.1.3", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="],
273276

274277
"@radix-ui/react-arrow": ["@radix-ui/react-arrow@1.1.7", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w=="],
@@ -549,6 +552,8 @@
549552

550553
"cookie": ["cookie@1.1.1", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="],
551554

555+
"core-js": ["core-js@3.47.0", "", {}, "sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg=="],
556+
552557
"core-util-is": ["core-util-is@1.0.2", "", {}, "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ=="],
553558

554559
"crc": ["crc@3.8.0", "", { "dependencies": { "buffer": "^5.1.0" } }, "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ=="],
@@ -661,6 +666,8 @@
661666

662667
"fd-slicer": ["fd-slicer@1.1.0", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="],
663668

669+
"fflate": ["fflate@0.4.8", "", {}, "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="],
670+
664671
"filelist": ["filelist@1.0.4", "", { "dependencies": { "minimatch": "^5.0.1" } }, "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q=="],
665672

666673
"foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="],
@@ -1017,8 +1024,12 @@
10171024

10181025
"postcss": ["postcss@8.4.31", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
10191026

1027+
"posthog-js": ["posthog-js@1.300.0", "", { "dependencies": { "@posthog/core": "1.7.0", "core-js": "^3.38.1", "fflate": "^0.4.8", "preact": "^10.19.3", "web-vitals": "^4.2.4" } }, "sha512-FpeD4pkpg9i/3F5xpeX+CZeq3R3BaLyFDkzb4sOjpUIW1AAVuOEqPTxnWIess6C3pOw1u3mowq0WSeh1PmrqfA=="],
1028+
10201029
"postject": ["postject@1.0.0-alpha.6", "", { "dependencies": { "commander": "^9.4.0" }, "bin": { "postject": "dist/cli.js" } }, "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A=="],
10211030

1031+
"preact": ["preact@10.28.0", "", {}, "sha512-rytDAoiXr3+t6OIP3WGlDd0ouCUG1iCWzkcY3++Nreuoi17y6T5i/zRhe6uYfoVcxq6YU+sBtJouuRDsq8vvqA=="],
1032+
10221033
"prettier": ["prettier@3.7.3", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-QgODejq9K3OzoBbuyobZlUhznP5SKwPqp+6Q6xw6o8gnhr4O85L2U915iM2IDcfF2NPXVaM9zlo9tdwipnYwzg=="],
10231034

10241035
"proc-log": ["proc-log@2.0.1", "", {}, "sha512-Kcmo2FhfDTXdcbfDH76N7uBYHINxc/8GW7UAVuVP9I+Va3uHSerrnKV6dLooga/gh7GlgzuCCr/eoldnL1muGw=="],
@@ -1249,6 +1260,8 @@
12491260

12501261
"web-namespaces": ["web-namespaces@2.0.1", "", {}, "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ=="],
12511262

1263+
"web-vitals": ["web-vitals@4.2.4", "", {}, "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw=="],
1264+
12521265
"which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
12531266

12541267
"wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"hono": "^4.10.7",
7373
"lucide-react": "^0.555.0",
7474
"png2icons": "^2.0.1",
75+
"posthog-js": "^1.300.0",
7576
"prettier": "^3.7.3",
7677
"react": "^19.1.0",
7778
"react-dom": "^19.1.0",

scripts/build-browser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ async function build() {
2828
const indexHtml = await Bun.file(indexPath).text();
2929
await Bun.write(indexPath, indexHtml.replaceAll("./", "/"));
3030

31-
await cp(resolve(process.cwd(), "src", "browser", "logo.svg"), resolve(process.cwd(), "dist", "browser", "logo.svg"));
31+
await cp(
32+
resolve(process.cwd(), "src", "browser", "logo.svg"),
33+
resolve(process.cwd(), "dist", "browser", "logo.svg")
34+
);
3235

3336
// Build worker separately with document shim for Prism/refractor
3437
const workerResult = await Bun.build({

scripts/build-vercel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ await import("./build-browser");
1717
// Copy browser build contents to public (served by Vercel CDN)
1818
const browserFiles = await readdir(browserDistDir);
1919
for (const file of browserFiles) {
20-
await cp(resolve(browserDistDir, file), resolve(publicDir, file), { recursive: true });
20+
await cp(resolve(browserDistDir, file), resolve(publicDir, file), {
21+
recursive: true,
22+
});
2123
}
2224
console.log("Copied browser files to public/");
2325

src/browser/components/home.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
} from "../ui/pagination";
3030
import { useOpenPRReviewTab } from "../contexts/tabs";
3131
import {
32-
useGitHubSafe,
32+
useGitHubStore,
3333
useGitHubReady,
3434
usePRList,
3535
usePRListActions,
@@ -161,7 +161,7 @@ function buildSearchQueries(config: FilterConfig): string[] {
161161

162162
// Handle "All Repos" global filters (one query per mode)
163163
for (const filter of allReposFilters) {
164-
const parts = ["is:pr"];
164+
const parts = ["is:pr", "archived:false"];
165165
if (stateFilter) parts.push(stateFilter);
166166
const modeFilter = getModeFilter(filter.mode);
167167
if (modeFilter) parts.push(modeFilter);
@@ -181,7 +181,7 @@ function buildSearchQueries(config: FilterConfig): string[] {
181181
}
182182

183183
for (const [mode, repos] of byMode) {
184-
const parts = ["is:pr"];
184+
const parts = ["is:pr", "archived:false"];
185185
if (stateFilter) parts.push(stateFilter);
186186
// Multiple repo: qualifiers act as OR
187187
parts.push(...repos.map((r) => `repo:${r}`));
@@ -267,7 +267,7 @@ const STATE_OPTIONS = [
267267
export function Home() {
268268
const openPRReviewTab = useOpenPRReviewTab();
269269
const { ready: githubReady, error: githubError } = useGitHubReady();
270-
const github = useGitHubSafe();
270+
const github = useGitHubStore();
271271
const { isAuthenticated, isAnonymous, setShowWelcomeDialog } = useAuth();
272272

273273
// Data store

0 commit comments

Comments
 (0)