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
{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 }) => (