From c12d11032278971f6f65637fc5dfb5114c51c719 Mon Sep 17 00:00:00 2001 From: abrulic Date: Sat, 13 Jun 2026 22:26:18 +0200 Subject: [PATCH 1/2] package versions update; linter fixes --- .vscode/settings.json | 5 +- LICENSE | 2 +- app/components/backdrop.tsx | 3 +- .../code-block/code-block-elements.tsx | 20 +- app/components/code-block/code-block.tsx | 2 +- .../command-k/components/command-k.tsx | 1 + .../components/results-footer-note.tsx | 2 +- .../command-k/components/results-footer.tsx | 8 +- .../command-k/components/search-history.tsx | 14 +- .../command-k/components/search-result.tsx | 8 +- .../command-k/components/trigger-button.tsx | 8 +- .../use-fuzzy-search.ts => fuzzy-search.ts} | 6 +- app/components/header.tsx | 2 +- app/components/logo.tsx | 3 +- app/components/modal.tsx | 3 +- app/components/page-mdx-article.tsx | 2 +- app/components/sidebar/mobile-sidebar.tsx | 14 +- app/components/sidebar/sidebar-content.tsx | 8 +- app/components/sidebar/sidebar-items.tsx | 2 +- app/components/table-of-content.tsx | 2 +- app/components/versions-dropdown.tsx | 2 +- app/entry.server.tsx | 2 +- app/env.server.ts | 2 +- app/root.tsx | 10 +- app/routes.ts | 4 +- app/routes/$.tsx | 2 +- app/routes/documentation-page.tsx | 2 +- app/routes/index.tsx | 2 +- app/routes/sitemap.$lang[.]xml.ts | 1 - app/server/search-index.ts | 4 +- app/tailwind.css | 13 +- app/ui/accordion.tsx | 2 + app/ui/breadcrumbs.tsx | 2 +- app/ui/icon/icons/icon.svg | 52 +- app/ui/icon/icons/types.ts | 52 +- app/ui/inline-code.tsx | 2 +- app/ui/kbd.tsx | 8 +- app/ui/link/useEnhancedTo.ts | 6 +- app/utils/llms-txt-builder.ts | 9 +- app/utils/load-content-collections.ts | 3 +- app/utils/load-content.ts | 3 +- app/utils/tests/local-storage.test.ts | 2 +- app/utils/theme.ts | 2 +- biome.json | 31 +- content-collections.ts | 5 +- content/02-overview/03-customization-tips.mdx | 2 +- package.json | 103 +- pnpm-lock.yaml | 6031 +++++++++-------- .../static/images/package-logo-1200x630.png | Bin 41841 -> 3823 bytes public/static/images/package-logo.png | Bin 12573 -> 10619 bytes react-router.config.ts | 4 +- scripts/generate-docs.ts | 3 +- scripts/setup.ts | 2 + tests/setup.browser.tsx | 2 +- tsconfig.json | 5 +- vite.config.ts | 10 +- vitest.config.ts | 45 +- vitest.workspace.ts | 40 - 58 files changed, 3317 insertions(+), 3268 deletions(-) rename app/components/command-k/{hooks/use-fuzzy-search.ts => fuzzy-search.ts} (90%) delete mode 100644 vitest.workspace.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 85f2f2c..1142a32 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,10 +4,7 @@ "editor.renderWhitespace": "all", "editor.rulers": [120, 160], "editor.codeActionsOnSave": { - "source.fixAll": "always", - "source.organizeImports": "never", - "source.organizeImports.biome": "always", - "quickfix.biome": "always" + "source.fixAll.biome": "explicit" }, "eslint.enable": false, "prettier.enable": false, diff --git a/LICENSE b/LICENSE index 5a34b88..c52f189 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Forge 42 +Copyright (c) 2025 Code Forge Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/app/components/backdrop.tsx b/app/components/backdrop.tsx index 2e49cf4..4735ff2 100644 --- a/app/components/backdrop.tsx +++ b/app/components/backdrop.tsx @@ -2,9 +2,10 @@ import { cn } from "~/utils/css" export const Backdrop = ({ onClose, className }: { onClose: () => void; className?: string }) => ( // biome-ignore lint/a11y/useKeyWithClickEvents: We don't need keyboard events for backdrop + // biome-ignore lint/a11y/noStaticElementInteractions: suppres for now, as we don't need interaction with backdrop except click to close
{ diff --git a/app/components/code-block/code-block-elements.tsx b/app/components/code-block/code-block-elements.tsx index 3efe019..a6d1d36 100644 --- a/app/components/code-block/code-block-elements.tsx +++ b/app/components/code-block/code-block-elements.tsx @@ -22,7 +22,7 @@ const LineElement = ({ line }: { line: string }) => { return (
{ {!isNormalDiff && } {tokens.map((token, index) => ( - + ))}
@@ -43,7 +49,13 @@ const LineElement = ({ line }: { line: string }) => { const CodeElement = ({ lines }: { lines: string[] }) => ( {lines.map((line, index) => ( - + ))} ) @@ -57,7 +69,7 @@ export const PreElement = ({ lines, className = "", ...props }: PreElementProps)
diff --git a/app/components/code-block/code-block.tsx b/app/components/code-block/code-block.tsx
index 1ecc8c8..85870ef 100644
--- a/app/components/code-block/code-block.tsx
+++ b/app/components/code-block/code-block.tsx
@@ -12,7 +12,7 @@ export const CodeBlock = ({ children, className = "", ...props }: CodeBlockProps
 	const lines = processLines(code)
 
 	return (
-		
+
diff --git a/app/components/command-k/components/command-k.tsx b/app/components/command-k/components/command-k.tsx index 57b3986..c7633ce 100644 --- a/app/components/command-k/components/command-k.tsx +++ b/app/components/command-k/components/command-k.tsx @@ -126,6 +126,7 @@ export const CommandK = ({ placeholder, version }: CommandPaletteProps) => { }} placeholder={searchPlaceholder} /> + {/** biome-ignore lint/a11y/useAriaPropsSupportedByRole: we will keep the aria-label here for now */}
{renderBody()}
diff --git a/app/components/command-k/components/results-footer-note.tsx b/app/components/command-k/components/results-footer-note.tsx index 1c2dd41..539e1d0 100644 --- a/app/components/command-k/components/results-footer-note.tsx +++ b/app/components/command-k/components/results-footer-note.tsx @@ -7,7 +7,7 @@ export const ResultsFooterNote = () => { {t("p.search_by")}{" "} - Forge 42 + Code Forge diff --git a/app/components/command-k/components/results-footer.tsx b/app/components/command-k/components/results-footer.tsx index 4aef83a..6259db7 100644 --- a/app/components/command-k/components/results-footer.tsx +++ b/app/components/command-k/components/results-footer.tsx @@ -3,13 +3,7 @@ import { cn } from "~/utils/css" import { KeyboardHint } from "./keyboard-hint" import { ResultsFooterNote } from "./results-footer-note" -export const ResultsFooter = ({ - resultsCount, - query, -}: { - resultsCount: number - query: string -}) => { +export const ResultsFooter = ({ resultsCount, query }: { resultsCount: number; query: string }) => { const { t } = useTranslation() if (!query || resultsCount === 0) return null diff --git a/app/components/command-k/components/search-history.tsx b/app/components/command-k/components/search-history.tsx index e227513..bc3c5de 100644 --- a/app/components/command-k/components/search-history.tsx +++ b/app/components/command-k/components/search-history.tsx @@ -3,6 +3,7 @@ import { Icon } from "~/ui/icon/icon" import { cn } from "~/utils/css" import type { HistoryItem } from "../search-types" import { SearchResultRow } from "./search-result" + interface SearchHistoryProps { history: HistoryItem[] onSelect: (item: HistoryItem) => void @@ -61,7 +62,7 @@ const RemoveItemButton = ({ onRemove(id) }} className={cn( - "-translate-y-1/2 absolute top-1/2 right-2 flex h-6 w-6 items-center justify-center rounded-full border opacity-0 transition-all duration-150 group-hover:opacity-100", + "absolute top-1/2 right-2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full border opacity-0 transition-all duration-150 group-hover:opacity-100", "border-[var(--color-history-remove-border)] bg-[var(--color-history-remove-bg)] text-[var(--color-history-remove-text)]", "hover:border-[var(--color-history-remove-hover-border)] hover:text-[var(--color-history-remove-hover-text)]" )} @@ -106,7 +107,16 @@ const HistoryItemsList = ({ }) => (
{history.map((item, index) => ( - + ))}
) diff --git a/app/components/command-k/components/search-result.tsx b/app/components/command-k/components/search-result.tsx index 03bf909..22725ed 100644 --- a/app/components/command-k/components/search-result.tsx +++ b/app/components/command-k/components/search-result.tsx @@ -10,13 +10,7 @@ interface SearchResultProps { matchType: MatchType } -const ResultIcon = ({ - isSelected, - matchType, -}: { - isSelected: boolean - matchType: MatchType -}) => { +const ResultIcon = ({ isSelected, matchType }: { isSelected: boolean; matchType: MatchType }) => { const iconName = matchType === "heading" ? "Hash" : "Pilcrow" return ( diff --git a/app/components/command-k/components/trigger-button.tsx b/app/components/command-k/components/trigger-button.tsx index 5d1ba8e..9e3403e 100644 --- a/app/components/command-k/components/trigger-button.tsx +++ b/app/components/command-k/components/trigger-button.tsx @@ -1,13 +1,7 @@ import { Icon } from "~/ui/icon/icon" import { cn } from "~/utils/css" -export const TriggerButton = ({ - onOpen, - placeholder, -}: { - onOpen: () => void - placeholder: string -}) => ( +export const TriggerButton = ({ onOpen, placeholder }: { onOpen: () => void; placeholder: string }) => (