Skip to content

Conversation

berry-13
Copy link
Collaborator

Summary

Please provide a brief summary of your changes and the related issue. Include any motivation and context that is relevant to your changes. If there are any dependencies necessary for your changes, please list them here.

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Testing

Test Configuration:

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • A pull request for updating the documentation has been submitted.

@berry-13 berry-13 force-pushed the feat/components-update branch from a3a3938 to f161a07 Compare September 24, 2025 22:25
- Replaced button-based sorting headers in the Chat Input Files Table with a new SortFilterHeader component for better code organization and consistency.
- Updated the header for filename, updatedAt, and bytes columns to utilize the new component.

Enhance Navigation Component with Skeleton Loading States

- Added Skeleton loading states to the Nav component for better user experience during data fetching.
- Updated Suspense fallbacks for AgentMarketplaceButton and BookmarkNav components to display Skeletons.

Refactor Avatar Component for Improved UI

- Enhanced the Avatar component by adding a Label for drag-and-drop functionality.
- Improved styling and structure for the file upload area.

Update Shared Links Component for Better Error Handling and Sorting

- Improved error handling in the Shared Links component for fetching next pages and deleting shared links.
- Simplified the header rendering for sorting columns and added sorting functionality to the title and createdAt columns.

Refactor Archived Chats Component

- Merged ArchivedChats and ArchivedChatsTable components into a single ArchivedChats component for better maintainability.
- Implemented sorting and searching functionality with debouncing for improved performance.
- Enhanced the UI with better loading states and error handling.

Update DataTable Component for Sorting Icons

- Added sorting icons (ChevronUp, ChevronDown, ChevronsUpDown) to the DataTable headers for better visual feedback on sorting state.

Localization Updates

- Updated translation.json to fix missing translations and improve existing ones for better user experience.
…imized features

- Added DataTable component with support for virtual scrolling, row selection, and customizable columns.
- Introduced hooks for debouncing search input, managing row selection, and calculating column styles.
- Enhanced accessibility with keyboard navigation and selection checkboxes.
- Implemented skeleton loading state for better user experience during data fetching.
- Added DataTableSearch component for filtering data with debounced input.
- Created utility logger for improved debugging in development.
- Updated translations to support new UI elements and actions.
…tead of hideOnMobile; remove unused DataTableColumnHeader component
…nu, and MCPSubMenu components; update border-radius in style.css
…dChats components; update translation.json with new keys for link actions
…ype definitions; improve cleanup timers and optimize rendering
…ning for missing IDs; streamline DataTableComponents imports
… functionality in ArchivedChats and DataTable components
@berry-13 berry-13 force-pushed the feat/components-update branch from f45139f to dfe28c4 Compare September 26, 2025 22:52
Copy link
Contributor

🚨 Unused i18next Keys Detected

The following translation keys are defined in translation.json but are not used in the codebase:

  • com_ui_add_anything
  • com_ui_archived_chat_delete_error
  • com_ui_drag_and_drop
  • com_ui_shared_link_bulk_delete_success
  • com_ui_shared_link_delete_error

⚠️ Please remove these unused keys to keep the translation files clean.

},
],
};
} catch (err) {

Check warning

Code scanning / ESLint

Disallow unused variables Warning

'err' is defined but never used. Allowed unused caught errors must match /^_/u.

Copilot Autofix

AI 17 days ago

To fix this issue, we should rename the unused caught error variable in the catch block from err to _err. This satisfies the ESLint rule by making the unused variable explicit, showing that the omission is intentional. The change is limited to lines 226-228 in api/models/Conversation.js, ensuring no changes to existing functionality.

Suggested changeset 1
api/models/Conversation.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/api/models/Conversation.js b/api/models/Conversation.js
--- a/api/models/Conversation.js
+++ b/api/models/Conversation.js
@@ -223,7 +223,7 @@
             },
           ],
         };
-      } catch (err) {
+      } catch (_err) {
         logger.warn('[getConvosByCursor] Invalid cursor format, starting from beginning');
       }
       if (cursorFilter) {
EOF
@@ -223,7 +223,7 @@
},
],
};
} catch (err) {
} catch (_err) {
logger.warn('[getConvosByCursor] Invalid cursor format, starting from beginning');
}
if (cursorFilter) {
Copilot is powered by AI and may make mistakes. Always verify output.
{
accessorKey: 'actions',
id: 'actions',
accessorFn: (row: Record<string, unknown>): unknown => null,

Check warning

Code scanning / ESLint

Disallow unused variables Warning

'row' is defined but never used. Allowed unused args must match /^_/u.

Copilot Autofix

AI 13 days ago

To fix this problem without altering functionality, rename the parameter in the accessorFn at line 250 from row to _row. This signals to ESLint and readers that the parameter is required by the API but intentionally unused in the function's implementation. Only this line needs editing; no additional imports or structural changes are required.


Suggested changeset 1
client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx b/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx
--- a/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx
+++ b/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx
@@ -247,7 +247,7 @@
       },
       {
         id: 'actions',
-        accessorFn: (row: Record<string, unknown>): unknown => null,
+        accessorFn: (_row: Record<string, unknown>): unknown => null,
         header: () => (
           <span className="text-xs text-text-primary sm:text-sm">
             {localize('com_assistants_actions')}
EOF
@@ -247,7 +247,7 @@
},
{
id: 'actions',
accessorFn: (row: Record<string, unknown>): unknown => null,
accessorFn: (_row: Record<string, unknown>): unknown => null,
header: () => (
<span className="text-xs text-text-primary sm:text-sm">
{localize('com_assistants_actions')}
Copilot is powered by AI and may make mistakes. Always verify output.
…from select all button for improved accessibility
Copy link
Contributor

🚨 Unused i18next Keys Detected

The following translation keys are defined in translation.json but are not used in the codebase:

  • com_ui_add_anything
  • com_ui_archived_chat_delete_error
  • com_ui_drag_and_drop
  • com_ui_shared_link_bulk_delete_success
  • com_ui_shared_link_delete_error

⚠️ Please remove these unused keys to keep the translation files clean.

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