Commit graph

4 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
e6775625ff chore: linting 2025-12-10 14:41:32 -08:00
CREDO23
5ad9e718d1 refactor: migrate YouTube tab to use jotai + tanstack query mutation
- Replace imperative authenticatedFetch with createDocumentMutationAtom
- Use mutation's isPending state instead of local isSubmitting state
- Maintain backward compatibility with existing UI behavior
- Keep all validation, error handling, and toast notifications
- Remove dependency on auth-utils for API calls
2025-12-08 11:02:01 +00:00
DESKTOP-RTLN3BA\$punk
b2a97b39ce refactor: centralize authentication handling
- Replaced direct localStorage token access with a centralized `getBearerToken` function across various components and hooks to improve code maintainability and security.
- Updated API calls to use `authenticatedFetch` for consistent authentication handling.
- Enhanced user experience by ensuring proper redirection to login when authentication fails.
- Cleaned up unused imports and improved overall code structure for better readability.
2025-12-02 01:24:09 -08:00
DESKTOP-RTLN3BA\$punk
8c54ca27d7 refactor(ux): combined sources to one section
- Renamed "Documents" section to "Sources" in the dashboard layout.
- Updated routing for adding sources and managing documents.
- Refactored the connectors and documents upload pages to redirect to the new sources section.
- Added localization support for the new "Sources" terminology in English and Chinese.
2025-11-07 14:28:30 -08:00