Document Management System Implementation#73
Merged
cybervoid0 merged 8 commits intomasterfrom Aug 23, 2025
Merged
Conversation
- Introduced a new Document model with various fields for document management, including title, catalogue number, and related metadata. - Updated existing models (Image, Barometer, Condition) to establish relationships with the new Document model, enhancing data structure and integrity.
…rometer form - Introduced a new 'purchasedAt' field in the barometer form to capture purchase dates. - Implemented validation for the purchase date to ensure it is a valid date and not set in the future. - Enhanced form functionality with a date input and clear button for user convenience. - Extended dayjs with UTC plugin for consistent date handling across the application.
- Introduced a new 'serial' field in the barometer form to capture the serial number. - Updated validation schema to include a maximum length for the serial number. - Enhanced input fields with placeholders for better user guidance. - Modified the purchase date input to include a clear button for improved usability. - Improved layout and descriptions for various form fields to enhance user experience.
…er form - Introduced a new 'estimatedPrice' field in the barometer form to capture the estimated price of the barometer. - Implemented validation to ensure the estimated price is a positive number. - Enhanced the form layout by adding an input field for estimated price with appropriate labels and placeholders for user guidance.
- Introduced a new 'subCategoryId' field in the barometer form to allow selection of subcategories. - Updated validation schema to include the new subcategory field. - Enhanced form functionality by integrating subcategory selection with appropriate labels and default values. - Improved user experience by ensuring default selections for categories and subcategories when available.
…validation - Added a new 'materials' field to the barometer form for selecting associated materials. - Updated validation schema to include the materials field, ensuring it defaults to an empty array. - Integrated MaterialsMultiSelect component for improved user experience in selecting materials. - Refactored file upload component to clear validation errors upon successful file uploads and deletions. - Simplified the manufacturer form data type by inferring from the Yup validation schema.
…validation schemas - Removed explicit form data type definitions in various components. - Updated validation schemas to infer types directly from Yup, enhancing type safety and reducing redundancy. - Ensured consistent validation handling across components including InaccuracyReport, ConditionEdit, DateEdit, DimensionsEdit, EstimatedPriceEdit, ImagesEdit, MaterialsEdit, PurchasedAtEdit, TextAreaEdit, and TextFieldEdit.
- Introduced a new link in the admin page for adding documents, enhancing the admin interface. - Updated routing constants to include a new route for document management. - Implemented API functions for creating and updating documents, improving document handling capabilities.
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
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.
Document Management System Implementation
What
Added comprehensive document management system to the admin panel with full functionality for creating and storing documents related to barometers.
Key Changes:
/admin/add-document) with comprehensive form validation using Yup schema/api/v2/documents)Technical Details:
Why
This feature enables proper cataloging and management of historical documents related to barometers (manuals, patents, advertisements, etc.), providing a complete archival system for the collection. The enhanced barometer form provides more detailed metadata capture for better collection management.