@devries-cameron20 / t3code-1 / commits / 41ebf22eea
Fork 0

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

fix(web): clear main branch lint warnings (#5384)

Theo Browne committed Aug 4, 2026 at 21:31 UTC 41ebf22eea64e177b11a0709a16d6716581cc78c
6 files changed +30 -20
apps/web/src/components/ChatMarkdown.tsx
+4
@@ -1363,6 +1363,9 @@ function ChatMarkdown({
1363 },
1364 [createAssetUrl, openPreview, preparedConnection, threadRef],
1365 );
1366 + /* eslint-disable react/no-unstable-nested-components -- ReactMarkdown requires component
1367 + * renderers that close over this message's metadata. useMemo keeps them stable until that
1368 + * metadata changes. */
1369 const markdownComponents = useMemo<Components>(() => {
1370 const fileLinkChip = (
1371 fileLinkMeta: MarkdownFileLinkMeta,
@@ -1593,6 +1596,7 @@ function ChatMarkdown({
1596 text,
1597 threadRef,
1598 ]);
1599 + /* eslint-enable react/no-unstable-nested-components */
1600
1601 return (
1602 <div
apps/web/src/components/CommandPalette.tsx
+13 -14
@@ -138,9 +138,20 @@ import {
138 buildSidebarProjectPickerEntries,
139 buildSidebarProjectSnapshots,
140 } from "../sidebarProjectGrouping";
141 +import type { Project } from "../types";
142
143 const EMPTY_BROWSE_ENTRIES: FilesystemBrowseResult["entries"] = [];
144
145 +function projectFavicon(project: Project) {
146 + return (
147 + <ProjectFavicon
148 + environmentId={project.environmentId}
149 + cwd={project.workspaceRoot}
150 + className={ITEM_ICON_CLASS}
151 + />
152 + );
153 +}
154 +
155 function getLocalFileManagerName(platform: string): string {
156 if (isMacPlatform(platform)) {
157 return "Finder";
@@ -924,13 +935,7 @@ function OpenCommandPaletteDialog(props: {
935 group?.memberProjects.flatMap((member) => [member.title, member.workspaceRoot]) ?? []
936 );
937 },
927 - icon: (project) => (
928 - <ProjectFavicon
929 - environmentId={project.environmentId}
930 - cwd={project.workspaceRoot}
931 - className={ITEM_ICON_CLASS}
932 - />
933 - ),
938 + icon: projectFavicon,
939 runProject: openProjectFromSearch,
940 }),
941 [openProjectFromSearch, pickerProjects, projectGroupByTargetKey],
@@ -948,13 +953,7 @@ function OpenCommandPaletteDialog(props: {
953 group?.memberProjects.flatMap((member) => [member.title, member.workspaceRoot]) ?? []
954 );
955 },
951 - icon: (project) => (
952 - <ProjectFavicon
953 - environmentId={project.environmentId}
954 - cwd={project.workspaceRoot}
955 - className={ITEM_ICON_CLASS}
956 - />
957 - ),
956 + icon: projectFavicon,
957 runProject: async (project) => {
958 const group = projectGroupByTargetKey.get(`${project.environmentId}:${project.id}`);
959 const contextualRefBelongsToGroup =
apps/web/src/components/settings/FontFamilyPicker.tsx
-1
@@ -129,7 +129,6 @@ export function FontFamilyPicker({
129 if (initialOpen) setOpen(true);
130 // The prop is only meaningful at mount - the control just swapped in
131 // under an active focus - so later changes are deliberately ignored.
132 - // eslint-disable-next-line react-hooks/exhaustive-deps
132 }, []);
133 const listRef = useRef<LegendListRef | null>(null);
134 const enumeration = useFontEnumeration();
apps/web/src/components/settings/SettingsFontPreviews.tsx
+2 -2
@@ -113,8 +113,8 @@ export function CodeFontPreview() {
113 if (htmlByFile === null) return null;
114 return (
115 <div className="mt-1 mb-2 space-y-2">
116 - {htmlByFile.map((html, index) => (
117 - <StaticDiffHtml key={index} html={html} />
116 + {htmlByFile.map((html) => (
117 + <StaticDiffHtml key={html} html={html} />
118 ))}
119 </div>
120 );
apps/web/src/components/settings/SettingsPanels.tsx
-1
@@ -116,7 +116,6 @@ import {
116 isMonospaceFamily,
117 resolveDefaultFamilyLabel,
118 } from "../../appearanceFonts";
119 -import { DEFAULT_TERMINAL_FONT_FAMILY } from "~/terminal/ghostty/surface";
119 import { CodeFontPreview, PromptFontPreview, TerminalFontPreview } from "./SettingsFontPreviews";
120 import { discoverInstalledFonts, FontFamilyPicker, useFontEnumeration } from "./FontFamilyPicker";
121 import {
apps/web/src/components/sidebar/SidebarUpdatePill.tsx
+11 -2
@@ -19,6 +19,15 @@ import { Alert, AlertDescription, AlertTitle } from "../ui/alert";
19 import { Separator } from "../ui/separator";
20 import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
21
22 +function keyReleaseNoteItems(items: ReadonlyArray<string>) {
23 + const occurrences = new Map<string, number>();
24 + return items.map((item) => {
25 + const occurrence = occurrences.get(item) ?? 0;
26 + occurrences.set(item, occurrence + 1);
27 + return { item, key: JSON.stringify([item, occurrence]) };
28 + });
29 +}
30 +
31 function SidebarUpdateReleaseNotesTooltip({
32 state,
33 tooltip,
@@ -44,8 +53,8 @@ function SidebarUpdateReleaseNotesTooltip({
53 {index === 0 ? "What's changed" : `Changes in ${releaseNote.version}`}
54 </h3>
55 <ul className="mt-2 space-y-1.5 pl-4 text-xs leading-5 text-popover-foreground/90">
47 - {releaseNote.items.map((item, itemIndex) => (
48 - <li className="list-disc break-words" key={`${releaseNote.version}-${itemIndex}`}>
56 + {keyReleaseNoteItems(releaseNote.items).map(({ item, key }) => (
57 + <li className="list-disc break-words" key={key}>
58 {item}
59 </li>
60 ))}