Skip to content

Commit 9c574a7

Browse files
committed
feat: redesign skill detail layout
1 parent 6af5cf1 commit 9c574a7

File tree

4 files changed

+349
-156
lines changed

4 files changed

+349
-156
lines changed

convex/skills.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ export const getFileText: ReturnType<typeof action> = action({
219219
if (!version) throw new ConvexError('Version not found')
220220

221221
const normalizedPath = args.path.trim()
222-
const file = version.files.find((entry) => entry.path === normalizedPath)
222+
const normalizedLower = normalizedPath.toLowerCase()
223+
const file =
224+
version.files.find((entry) => entry.path === normalizedPath) ??
225+
version.files.find((entry) => entry.path.toLowerCase() === normalizedLower)
223226
if (!file) throw new ConvexError('File not found')
224227
if (file.size > MAX_DIFF_FILE_BYTES) {
225228
throw new ConvexError('File exceeds 200KB limit')

0 commit comments

Comments
 (0)