The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 08:00 UTC
perf(web): the project icon picker compiles with the React Compiler (#20457)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 18:46 UTC
998bcc226a70f307913296b859b02c80456b7100
2 files changed
+16
-16
apps/web/reactCompiledFiles.ts
+1
@@ -32,4 +32,5 @@ export const REACT_COMPILED_FILES = [
32
"apps/web/src/components/ThreadNotificationCoordinator.tsx",
33
"apps/web/src/state/queries.ts",
34
"apps/web/src/state/sourceControlActions.ts",
35
+ "apps/web/src/components/settings/ProjectFaviconPickerDialog.tsx",
36
] as const;
apps/web/src/components/settings/ProjectFaviconPickerDialog.tsx
+15
-16
@@ -1,7 +1,7 @@
1
import { useAtomValue } from "@effect/atom-react";
2
import type { EnvironmentId } from "@t3tools/contracts";
3
import { isWindowsAbsolutePath } from "@t3tools/shared/path";
4
-import { useMemo, useState } from "react";
4
+import { useState } from "react";
5
6
import { primaryServerKeybindingsAtom } from "~/state/server";
7
import { useTheme } from "~/hooks/useTheme";
@@ -48,23 +48,22 @@ export function ProjectFaviconPickerDialog(props: {
48
);
49
const { resolvedTheme } = useTheme();
50
const keybindings = useAtomValue(primaryServerKeybindingsAtom);
51
- const pickExternal = props.onPickExternal;
51
+ const { onPickExternal: pickExternal, onSelect } = props;
52
const fileManagerName = getLocalFileManagerName(
53
typeof navigator === "undefined" ? "" : navigator.platform,
54
);
55
- const items = useMemo<CommandPaletteActionItem[]>(
56
- () =>
57
- getProjectFilePickerMatches(result.entries, result.matchedQuery).map((match) => ({
58
- kind: "action",
59
- value: `project-favicon:${match.path}`,
60
- searchTerms: [match.name, match.path],
61
- title: match.name,
62
- description: match.path,
63
- icon: <PierreEntryIcon pathValue={match.path} kind="file" theme={resolvedTheme} />,
64
- run: async () => props.onSelect(match.path),
65
- })),
66
- [props.onSelect, resolvedTheme, result.entries, result.matchedQuery],
67
- );
55
+ const items: CommandPaletteActionItem[] = getProjectFilePickerMatches(
56
+ result.entries,
57
+ result.matchedQuery,
58
+ ).map((match) => ({
59
+ kind: "action",
60
+ value: `project-favicon:${match.path}`,
61
+ searchTerms: [match.name, match.path],
62
+ title: match.name,
63
+ description: match.path,
64
+ icon: <PierreEntryIcon pathValue={match.path} kind="file" theme={resolvedTheme} />,
65
+ run: async () => onSelect(match.path),
66
+ }));
67
68
return (
69
<CommandDialog open={props.open} onOpenChange={props.onOpenChange}>
@@ -89,7 +88,7 @@ export function ProjectFaviconPickerDialog(props: {
88
.then((path) => {
89
if (!path) return;
90
props.onOpenChange(false);
92
- props.onSelect(path);
91
+ onSelect(path);
92
})
93
.catch((error: unknown) => {
94
toastManager.add({