Skip to content

Dev#103

Merged
twoimo merged 79 commits intomainfrom
dev
Dec 23, 2024
Merged

Dev#103
twoimo merged 79 commits intomainfrom
dev

Conversation

@twoimo
Copy link
Contributor

@twoimo twoimo commented Dec 23, 2024

No description provided.

twoimo and others added 30 commits December 14, 2024 20:43
Update README and enhance backend requirements; improve UI components
Implement authentication flow and enhance user interface
Refactor database engine and enhance session handling for security
Fix header z-index and refactor EditProfile component
Refactor preferred_font_size in User model for consistency
Integrate weather and location features with UI improvements
Integrate weather, location, and map features with UI enhancements
Refactor layout and improve error handling in community section
Add Catches feature with improved routing and layout enhancements
Enhance Home view layout and scrolling behavior
Integrate map functionality and enhance UI with error handling improvements
Refactor user profile and catches handling
Update image handling and improve popup display
Enhance user profile and catch management features
Enhance Vuex store and improve avatar handling in Profile.vue
Integrate database enhancements and improve user interface
Integrate fishing place information and enhance database interactions
twoimo and others added 29 commits December 20, 2024 15:46
Fix data loading on refresh for  caught fish sections in Home.vue.
- Updated image display structure in FishResultNormal.vue and FishResultWarning.vue to enhance layout and responsiveness using flexbox.
- Introduced computed properties for dynamic styling of image containers and classes based on image dimensions.
- Added event listeners for window resize to update bounding boxes accordingly.
- Improved bounding box calculation logic to ensure accurate positioning and scaling.
- Cleaned up CSS for better organization and clarity in styling.
…sent

- Added new fields (weight_kg, length_cm, latitude, longitude, memo) to the Catch model in backend/main.py for improved fish data tracking.
- Introduced consent management features in AIConsent model, including consent_date and consent_type.
- Implemented API endpoints for checking and updating user consent in backend/main.py.
- Updated Vuex store in frontend/src/store/index.js to manage consent state.
- Added consent checking and handling logic in FishResultNormal.vue and FishResultWarning.vue to prompt users for consent.
- Integrated modals for consent and fish data editing in FishResult components for better user interaction.
- Updated CORS settings in backend/main.py to allow specific HTTP methods and headers.
- Refactored add_catch function to create_catch in backend/main.py, improving error handling and data validation.
- Added Content-Type header in axios instance for consistent API requests in frontend/src/axios.js.
- Enhanced EditFishModal.vue to validate catch data before saving and added debugging logs.
- Implemented createCatch action in Vuex store to handle new catch creation with error handling in frontend/src/store/index.js.
- Updated FishResultNormal.vue and FishResultWarning.vue to create new catches and open edit modal seamlessly.

These changes improve the robustness of the catch management system and enhance user experience.
- Added a date input field for catch date in EditFishModal.vue to allow users to specify the date of the catch.
- Refactored Catches.vue to improve the layout and presentation of catch details, including better organization of labels and values.
- Replaced the previous edit popup with a modal for editing fish data, improving user experience and consistency in the interface.
- Updated methods for opening the edit modal and saving fish data, ensuring better error handling and state management.

These changes enhance the usability and functionality of the fish management system.
- Removed the catch date input field from EditFishModal.vue, simplifying the form.
- Updated saveFishData method to set catch date to the current date if not provided.
- Enhanced Catches.vue layout for better catch item presentation, including centralized labels and improved styling.
- Modified data fetching logic in Catches.vue to sort catches by date and handle errors more effectively.
- Updated Vuex store actions to ensure proper state management when saving fish data.

These changes streamline the fish management interface and enhance user experience.
- Updated weight and length fields in the Catch model to allow for greater precision in backend/main.py.
- Improved error handling and data validation in get_catches and update_catch functions to ensure robust data processing.
- Enhanced EditFishModal.vue to include validation for weight, length, latitude, and longitude inputs, providing user feedback for invalid entries.
- Updated Catches.vue to display additional catch details such as weight, length, and memo, improving the user interface.
- Refactored data fetching in Vuex store to ensure proper formatting of catch data, enhancing state management.

These changes improve the accuracy and usability of the fish management system.
- Enhanced the layout and styling of the Catches component for better user experience, including a sticky search/filter area and improved catch item presentation.
- Updated the search input and sorting dropdown with better accessibility and visual feedback.
- Improved loading and empty state handling with user-friendly messages and animations.
- Refactored catch item display to include better organization of details and action buttons for editing and deleting catches.
- Streamlined image popup functionality for a more intuitive user interaction.

These changes enhance the overall usability and aesthetic of the fish management interface.
- Updated loading indicators to provide clearer feedback during data fetching, including a new initial loading state and a message for when all catches have been loaded.
- Enhanced the layout of the catch items by restructuring the HTML for better organization and readability.
- Adjusted the logic for displaying catch items, ensuring that only the relevant number of items is shown based on the current state.
- Implemented an Intersection Observer for lazy loading of additional catches, improving performance and user experience.
- Refined the catch data filtering and sorting logic to ensure accurate display based on user input.

These changes enhance the usability and performance of the fish management interface.
- Corrected a typo in the default label for unknown detections in backend/main.py.
- Enhanced loading indicators in frontend/src/views/Catches.vue for better user feedback during data fetching.
- Improved the structure of loading messages and adjusted the logic for displaying catch items based on loading states.

These changes enhance the clarity and usability of the fish management interface.
- Updated image popup modals in FishResultNormal.vue, FishResultWarning.vue, and Home.vue for a consistent user experience.
- Enhanced styling and layout of image popups, including improved background opacity and button design for closing the popup.
- Added a new icon for closing the image popup, improving visual feedback.
- Streamlined the logic for opening and closing image popups, ensuring better state management.

These changes enhance the usability and aesthetic of the image viewing experience in the fish management interface.
- Updated image popup modals in Catches.vue, FishResultNormal.vue, FishResultWarning.vue, and Home.vue for a consistent user experience.
- Enhanced styling and layout of image popups, including improved padding, maximum height, and object containment for images.
- Improved button design for closing the popup, adding shadow effects and adjusting icon color for better visibility.
- Streamlined the structure of the image popup to ensure better responsiveness and usability.

These changes enhance the overall aesthetic and functionality of the image viewing experience in the fish management interface.
- Updated loading indicators in Catches.vue, FishResultNormal.vue, FishResultWarning.vue, and Home.vue to provide clearer visual feedback during data fetching.
- Improved loading state structure with consistent styling, including background overlay and informative messages.
- Adjusted logic for displaying loading states and messages to enhance user experience during data retrieval.

These changes improve the overall usability and responsiveness of the fish management interface.
….vue

- Added a global loading state management in Vuex store to enhance user feedback during image upload processes.
- Updated the onFileChange function in CameraActionSheet.vue to dispatch loading state actions, providing visual feedback while the image is being processed.
- Improved error handling and ensured the loading state is reset after the upload attempt, enhancing the overall user experience.

These changes improve the responsiveness and usability of the image upload feature in the fish management interface.
…dling

- Added an image optimization function in backend/main.py to resize and compress images for mobile use, improving performance during uploads.
- Updated the predict route to include image optimization before processing, ensuring better handling of uploaded images.
- Integrated image compression in axios.js to automatically compress images before upload, enhancing upload efficiency.
- Enhanced Vuex store to manage hot issues, providing a dynamic display of relevant information in Home.vue.
- Improved the layout and responsiveness of components in App.vue and Home.vue for better user interaction on mobile devices.
- Added caching strategies in vue.config.js to optimize image loading and improve overall application performance.

These changes significantly enhance the image handling capabilities and user experience in the fish management interface.
- Closed the script tag in Profile.vue, ensuring proper syntax and structure for the component.
- This change enhances code readability and maintainability, contributing to a cleaner codebase.
- Added caching headers in backend/main.py for improved performance on uploads.
- Updated temporary data in frontend/src/store/index.js to include more detailed content and images for hot issues.
- Refactored Community.vue to improve post rendering and added loading indicators for better user feedback.
- Introduced AI model warning messages in FishResultNormal.vue and FishResultWarning.vue to inform users about the limitations of AI results.
- Enhanced image handling in Home.vue, including better error handling for images and improved layout for hot issues display.

These changes collectively improve the responsiveness, clarity, and overall user experience of the fish management interface.
- Added new models for PostLike, PostComment, and PostRetweet to enhance interaction with posts.
- Updated CommunicationBoard model to include relationships for likes, comments, and retweets.
- Implemented API endpoints for creating, retrieving, updating, and deleting posts, as well as managing likes and comments.
- Enhanced Community.vue to support new post creation, editing, and improved post display with comments and likes functionality.
- Introduced routing for new and edit post views, ensuring authentication for these actions.

These changes significantly improve the user experience by enabling interactive features for posts, enhancing community engagement within the application.
- Corrected multiple typos in backend/main.py, enhancing code clarity and readability.
- Updated error handling in the get_post function to provide more informative logging and responses for missing posts and users.
- Refactored image URL handling in the get_post and update_post functions to ensure consistent processing.
- Enhanced the EditPost.vue component to include authorization headers for API requests, improving security during post management operations.

These changes collectively enhance the robustness and user experience of the application.
- Updated CommunicationBoard model to store multiple image URLs as a JSON array, replacing the single image URL field.
- Improved image handling in the backend, including enhanced error logging and consistent processing of images in get_post and update_post functions.
- Refactored frontend components (Community.vue, EditPost.vue, NewPost.vue) to support multiple image uploads, including image previews and removal functionality.
- Enhanced user experience with improved loading indicators and touch handling for image galleries in Community.vue.
- Corrected typos and improved comments across multiple files for better code clarity.

These changes collectively enhance the image management capabilities and overall user experience in the application.
…s in post management

- Corrected typos in backend/main.py, improving code clarity and readability.
- Enhanced error handling in the update_post and delete_post functions for better logging and user feedback.
- Implemented new API endpoints for liking and commenting on posts, allowing users to interact more effectively.
- Updated Community.vue and EditPost.vue to reflect changes in post interaction, including dynamic like status and comment retrieval.
- Improved logging for image handling and post updates, ensuring better traceability of actions.

These changes collectively enhance the functionality and user experience of the post management system.
- Added a new API endpoint for creating posts, allowing users to submit titles, content, and images.
- Enhanced error handling for post creation, including validation for required fields and improved logging for image uploads.
- Corrected multiple typos in backend/main.py to improve code clarity and readability.
- Updated vue.config.js to ensure proper API proxy configuration for frontend communication.

These changes collectively enhance the post management functionality and improve code quality.
@twoimo twoimo merged commit 964f66d into main Dec 23, 2024
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.

3 participants