-
Notifications
You must be signed in to change notification settings - Fork 186
Feature/add edit document #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alerte8
wants to merge
33
commits into
cars10:develop
Choose a base branch
from
alerte8:feature/add-edit-document
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
use textarea in searchtabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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