Skip to content

feat: add file upload UI in RAG page (BRIC-12)#4

Merged
Kaiohz merged 3 commits into
mainfrom
BRIC-12/add-file-upload
Apr 12, 2026
Merged

feat: add file upload UI in RAG page (BRIC-12)#4
Kaiohz merged 3 commits into
mainfrom
BRIC-12/add-file-upload

Conversation

@Kaiohz
Copy link
Copy Markdown
Contributor

@Kaiohz Kaiohz commented Apr 12, 2026

Summary

  • Extend IRagFilePort with uploadFile(prefix, file) method
  • Implement uploadFile in ragApi.ts using FormData + ragApiClient
  • Add useUploadFile TanStack Query mutation hook with cache invalidation
  • Add UploadButton component with file picker, loading state, toast feedback
  • Integrate into RagPage with current prefix support and refetch on upload
  • Merge BRIC-11 rag-file-browser for full browsing + upload experience
  • Upgrade axios to 1.15.0 (fixes CVE-2025-62718)

Test plan

  • 4 unit tests for useUploadFile hook
  • 6 unit tests for UploadButton component
  • 223 tests pass (0 failures)
  • Chrome browser testing: RAG nav link visible, Upload button visible

DO NOT MERGE (user request)

Closes BRIC-12 (frontend)

Kaiohz added 3 commits April 11, 2026 20:19
…tion (BRIC-11)

- Add /rag route with BreadcrumbBar + FileList navigation
- Create dedicated ragApiClient with ragApiBaseUrl from config
- Implement hexagonal layers: FileEntry/FolderEntry entities, IRagFilePort, ragApi adapter
- Add useFolders and useFiles TanStack Query hooks
- Add formatFileSize utility, FileRow/FolderRow/BreadcrumbBar components
- Add Vite proxy for /api/v1/files to RAG service (port 8020)
- Add ragApiBaseUrl to AppConfigSchema (optional, backward compatible)
- 47 new unit tests, 213 total passing
@Kaiohz Kaiohz merged commit d42c483 into main Apr 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant