fix issues (#136)

* fix: prevent delete button click when card is not swiped open

* refactor: improve CreateRepoInput type safety

* security: require AUTH_SECRET and use secure random generation

* fix: SSH key path validation, async passphrase stripping, and port handling

* fix: use correct console methods for logger levels

* Add error handling to DB update functions and improve migration logging

* Add error handling for session lookup in auth middleware

* Add structured git error handling with user-friendly messages

- Parse git errors with specific error codes (AUTH_FAILED, REPO_NOT_FOUND,
  PUSH_REJECTED, MERGE_CONFLICT, etc.) and appropriate HTTP status codes
- Return structured error responses with summary and detail from backend
- Add GitErrorBanner component for better error display in UI
- Add optional onError callback to useGit hook for external error handling

* Make IPC server initialization/disposal async and fix SSH host key handler

* add try-catch error handling in frontend lib utilities

* remove unresolved promise handlers in speech synthesizer callbacks

* Extract error types to shared package

* Import GitErrorCode from shared package

* Refactor API layer to use shared FetchError and fetchWrapper

* Update prompt parser and source control components

* Extract MCP server list to separate component with improved badge menu UX

* merge useSettingsDialogUrl into useSettingsDialog and extract getRepoDisplayName utility

* add separate loading state for passkey sign in

* refactor hooks: use fetchWrapper, improve error handling, add proper types

* replace browser confirm() with DeleteDialog component in settings

* fix: add missing variables parameter in React Query onError callbacks

* Refactor message parts to use separate Zustand store

* Update QuestionPrompt styling for light/dark mode
This commit is contained in:
Chris Scott authored and GitHub committed 2026-02-15 19:48:03 -05:00
1 parent 7f7d106c28
commit 5de419ee28
75 files changed
+1990 -1367

No files matched your search

+3 -3
View File
@@ -121,13 +121,13 @@ export function useVirtualizedContent({
const ranges: Array<{ startLine: number; endLine: number; content: string }> = []
let rangeStart = sortedLineNums[0]
let rangeLines: string[] = [editedLines.get(rangeStart)!]
let rangeLines: string[] = [editedLines.get(rangeStart) ?? '']
let lastLine = rangeStart
for (let i = 1; i < sortedLineNums.length; i++) {
const lineNum = sortedLineNums[i]
if (lineNum === lastLine + 1) {
rangeLines.push(editedLines.get(lineNum)!)
rangeLines.push(editedLines.get(lineNum) ?? '')
lastLine = lineNum
} else {
ranges.push({
@@ -136,7 +136,7 @@ export function useVirtualizedContent({
content: rangeLines.join('\n'),
})
rangeStart = lineNum
rangeLines = [editedLines.get(lineNum)!]
rangeLines = [editedLines.get(lineNum) ?? '']
lastLine = lineNum
}
}