Skip to content

Conversation

@alerte8
Copy link

@alerte8 alerte8 commented Oct 2, 2025

Add contexte menu in Search result table row
Add colum reorder with dragdrop and in tools menu in Search result table row
Add "add document" in Search result table row
Add export/import in index tab

alerte8 and others added 19 commits September 15, 2025 20:47
Column Order and Visibility:
Users can now reorder table columns (move up, down, to top, or bottom) and select which columns to display. These preferences are saved and restored automatically.

Column Sorting:
Multi-column sorting is supported directly from the table header, with clear indicators and a reset option.

Contextual Menu Enhancements:
The contextual menu (right-click menu) on table rows and cells now offers:

Edit Document: Opens the document editor dialog for the selected row.
Copy Row as JSON: Copies the entire row’s data in JSON format.
Copy Cell Content: Copies the content of the clicked cell.
Copy Row ID: Copies the document’s unique identifier.
Bulk Actions: When multiple rows are selected, options like "Copy Selected Rows as JSON" are available.
User Experience:
The interface is more intuitive, with tooltips, badges, and sticky headers for better usability.

Persistence:
All user preferences (column order, visibility, sorting) are persisted in local storage.

In short:
The table is now highly customizable, and the contextual menu provides quick access to editing, copying, and bulk actions, making data management more efficient.
This commit completes the implementation of the "add new" and "edit" document features.

- A new "Add document" button has been added to the search results table, allowing users to create new documents from scratch.
- The `EditDocument.vue` component has been refactored to support both creating and editing documents. The dialog now dynamically updates its title and button labels based on the context.
- The `useEditDocument.ts` composable has been updated to handle both document creation (indexing without an ID) and updates.
- The `SearchDocuments.vue` component now correctly handles both `add-document` and `edit-document` events, distinguishing between creating a new document, cloning an existing one, and editing an existing one.
- A typo in `SearchResultsTable.vue` (`handleAdDocument`) has been corrected to `handleAddDocument`.
- Internationalization strings have been added for all new UI elements.
This commit enhances the "add new document" functionality by allowing users to select the target index and pre-filling the document editor with the index's schema.

- When creating a new document, a dropdown is now displayed, allowing users to select the target index from the list of currently filtered indices.
- After an index is selected, the document editor is pre-populated with a template based on the index's mapping (schema).
- The `useEditDocument.ts` composable has been updated to fetch the available indices and the mapping for the selected index.
- The `EditDocument.vue` component now includes the index selection dropdown, which is only visible when creating a new document.
- The `saveDocument` method in `useEditDocument.ts` has been corrected to ensure the document body is passed correctly in the API request.
@alerte8 alerte8 closed this Oct 2, 2025
@alerte8 alerte8 reopened this Oct 2, 2025
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