Skip to content

V2 cataloger#74

Open
tenkus47 wants to merge 14 commits into
mainfrom
v2_cataloger
Open

V2 cataloger#74
tenkus47 wants to merge 14 commits into
mainfrom
v2_cataloger

Conversation

@tenkus47

Copy link
Copy Markdown
Member

No description provided.

tenkus47 added 14 commits April 9, 2026 13:42
… functions

- Removed direct API calls using requests in favor of OpenPecha client functions for better abstraction and maintainability.
- Updated environment variable handling to include new OpenPecha API keys in the .env.example file.
- Enhanced error handling and response management across various routers, improving overall robustness.
- Cleaned up unused imports and variables, optimizing the codebase for clarity and performance.
- Introduced new language and role routers in the backend to enhance API capabilities.
- Removed deprecated enum router and related functions to streamline the codebase.
- Updated text fetching logic to include category filtering, improving data retrieval efficiency.
- Refactored frontend components to integrate category selection and improve user experience.
- Cleaned up unused imports and variables across various files for better maintainability.
…rontend

- Updated router paths in the backend to replace 'instances' with 'editions' for consistency.
- Refactored API response structures to use 'edition_id' instead of 'instance_id' in various controllers and models.
- Modified frontend components and API calls to align with the new edition terminology, enhancing clarity in data handling.
- Cleaned up related imports and adjusted navigation links to reflect the changes in terminology, improving user experience.
- Renamed fetch functions for clarity, changing fetch_edition_annotations to fetch_edition_annotation.
- Removed timeout parameters from fetch functions to streamline API calls.
- Updated instance retrieval logic to directly use edition_id, enhancing consistency across the codebase.
- Adjusted response structures to return annotations directly, improving data handling in the legacy instance view.
- Introduced new API endpoints for fetching and posting edition segmentations in the OpenPecha API.
- Updated backend routing to include a new router for editions, enhancing API structure.
- Modified frontend API calls to align with the new endpoint structure, improving data handling for edition segmentations.
- Refactored InstanceCard and UpdateAnnotation components to integrate segmentation functionality, enhancing user experience.
- Cleaned up unused imports and adjusted component logic for better maintainability.
- Implemented a new API endpoint to update edition content, allowing users to replace existing text.
- Introduced a new UpdateEditionContentBody model for structured request handling.
- Enhanced frontend routing to support the new content update feature, integrating it into the existing text management workflow.
- Updated InstanceCard and UpdateAnnotation components to include buttons for content updates, improving user interaction.
- Refactored text creation and update logic to ensure consistency with the new API structure, enhancing overall maintainability.
- Renamed and reorganized alignment-related functions and endpoints for clarity and consistency.
- Introduced new API endpoints for fetching and posting edition alignments, enhancing the OpenPecha API.
- Updated frontend components and API calls to align with the new alignment structure, improving data handling.
- Removed the deprecated aligner_data router, streamlining the codebase and enhancing maintainability.
- Refactored alignment logic in the MappingSidebar component to utilize the new alignment API, improving user experience.
- Removed the translation router and consolidated related functionality into the editions router for improved clarity.
- Updated the list_related_instances function to accept edition_id instead of instance_id, enhancing API consistency.
- Introduced a new endpoint for fetching related editions, streamlining the retrieval process.
- Refactored frontend components to align with the updated API structure, improving data handling and user experience.
- Cleaned up unused props and optimized component logic for better maintainability.
- Updated the create_instance_for_text function to improve segmentation handling, allowing for optional pagination and metadata.
- Introduced new data models for pagination and segmentation in the text creation process, enhancing structure and clarity.
- Modified the get_persons endpoint to support additional filtering parameters (name, bdrc, wiki), improving data retrieval flexibility.
- Refactored frontend components to align with the updated API structure, enhancing user experience and maintainability.
- Cleaned up unused imports and optimized component logic for better performance.
- Removed unnecessary error handling in the backend text listing function for cleaner code.
- Added a new CreateEdition component to the frontend for creating editions directly from text instances.
- Enhanced the TextInstanceCard component with improved styling and added links for adding translations and commentaries.
- Introduced a TextCreateButton in the TextsPage for streamlined navigation to the creation page, conditional on user permissions.
- Updated TextInstances to include a button for creating new editions, improving user interaction and workflow.
- Introduced a new API endpoint for deleting alignment annotations by ID in the backend.
- Updated the frontend to include a deleteAlignmentAnnotation function for making DELETE requests.
- Enhanced the AlignmentWorkstation component to handle deletion of alignment annotations with user feedback via toast notifications.
- Refactored related components to streamline the alignment handling process and improve user experience.
…omponents

- Replaced all instances of 'useInstance' with 'useEdition' across various components and hooks for consistency.
- Updated the BreadCrumb component to utilize new hooks for fetching text and edition data.
- Enhanced the AlignmentWorkstation and selection panels to reflect the updated edition handling.
- Refactored CreateCommentary, CreateTranslation, and UpdateAnnotation pages to align with the new edition terminology.
- Cleaned up imports and optimized component logic for improved maintainability.
- Added a new delete_edition function in the backend to handle deletion requests for editions.
- Updated the editions router to include a DELETE endpoint for removing editions.
- Introduced a deleteEdition function in the frontend API to facilitate deletion requests.
- Enhanced the TextInstanceCard component with a delete button, providing user feedback through toast notifications upon successful deletion.
- Refactored the TextFilter and TextsPage components to streamline parameter handling using URL SearchParams.
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