⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(web): resolve Biome noArrayIndexKey lint in shortcuts, repo modal, and error display (#1096)
Tin Sever16eddd6d6974
diff --git a/.husky/pre-commit b/.husky/pre-commitindex b0fb3fe8f..2003f63f9 100644--- a/.husky/pre-commit+++ b/.husky/pre-commit@@ -1,2 +1,2 @@-pnpm dlx @biomejs/[email protected] ci .+pnpm exec biome ci .pnpm run build\ No newline at end of filediff --git a/apps/web/src/components/keyboard-shortcuts-help.tsx b/apps/web/src/components/keyboard-shortcuts-help.tsxindex c7831e8ca..a112c4f23 100644--- a/apps/web/src/components/keyboard-shortcuts-help.tsx+++ b/apps/web/src/components/keyboard-shortcuts-help.tsx@@ -171,9 +171,9 @@ export function KeyboardShortcutsHelp() {{category.title}</h3><div className="space-y-1">- {category.shortcuts.map((shortcut, index) => (+ {category.shortcuts.map((shortcut) => (<div- key={`${category.title}-${index}`}+ key={`${category.title}-${shortcut.description}-${shortcut.keys.join("+")}`}className="flex items-center justify-between py-1.5 px-2 rounded-md hover:bg-muted/50"><span className="text-xs">{shortcut.description}</span>diff --git a/apps/web/src/components/project/repository-browser-modal.tsx b/apps/web/src/components/project/repository-browser-modal.tsxindex f766cd5d9..1b60592ac 100644--- a/apps/web/src/components/project/repository-browser-modal.tsx+++ b/apps/web/src/components/project/repository-browser-modal.tsx@@ -133,9 +133,9 @@ export function RepositoryBrowserModal({<div className="flex-1 overflow-y-auto min-h-[300px]">{isLoading && (<div className="px-6 py-4 space-y-3">- {Array.from({ length: 5 }, (_, i) => (+ {[0, 1, 2, 3, 4].map((slot) => (<div- key={`loading-skeleton-repo-${i}-${Date.now()}`}+ key={`loading-skeleton-repo-${slot}`}className="p-4 border border-border rounded-md bg-sidebar animate-pulse"><div className="flex items-center gap-3">diff --git a/apps/web/src/components/ui/error-display.tsx b/apps/web/src/components/ui/error-display.tsxindex 2d3900484..c66ed033f 100644--- a/apps/web/src/components/ui/error-display.tsx+++ b/apps/web/src/components/ui/error-display.tsx@@ -62,11 +62,8 @@ export function ErrorDisplay({Troubleshooting steps:</h4><ul className="text-xs text-muted-foreground space-y-1">- {troubleshootingSteps.map((step, index) => (- <li- key={`step-${index}-${step.slice(0, 10)}`}- className="flex items-start gap-2"- >+ {troubleshootingSteps.map((step) => (+ <li key={step} className="flex items-start gap-2"><span className="text-muted-foreground mt-0.5">•</span><span>{step}</span></li>