Commit Graph
19 Commits
Author SHA1 Message Date
tuanOts cee837e1a6 �️ Integrated Project Delete API with Enhanced Error Handling
� API Integration:
- Integrated /api/Projects/delete/{id} endpoint for project deletion
- Used POST method instead of DELETE for better server compatibility
- Added comprehensive request headers (Content-Type, Accept JSON)
- Proper project ID parameter passing in URL path

�️ Enhanced Error Handling:
- Robust response parsing for empty, non-JSON, and malformed responses
- Smart success detection with multiple criteria (HTTP status, response content)
- Graceful fallback logic for edge cases and parsing failures
- Comprehensive error logging with emojis for better debugging

 User Experience Improvements:
- Modal confirmation dialog with Vietnamese text before deletion
- Clear success/error messages with proper feedback
- Automatic data reload after successful deletion
- Color-coded action icons (blue edit, red delete) with hover effects

� Response Handling:
- Handles HTTP 200 OK with empty response body as success
- Handles non-JSON responses gracefully
- Detects actual API errors vs successful operations
- Prevents false error messages on successful deletions

� Technical Features:
- Try-catch blocks with detailed error information
- Raw response text logging for debugging
- JSON parsing with fallback mechanisms
- Maintains pagination state after deletion

� UI Enhancements:
- Professional action column with edit and delete buttons
- Consistent styling with existing application theme
- Responsive design for mobile and desktop
- Loading states during API operations
2025-06-08 23:02:58 +07:00
tuanOts 6c890f369c 📄 Enhanced Wedding Guest List Pagination
🔧 Pagination Improvements:
- Enhanced pagination data handling for multiple API response structures
- Added comprehensive debugging for pagination info
- Improved data extraction logic for different response formats
- Better error handling for missing pagination data

📊 API Response Handling:
- Support for { data: [...], pagination: {...} } structure
- Support for { guests: [...], pagination: {...} } structure
- Support for direct array responses [...]
- Fallback pagination calculation from array length

🎯 Debugging Enhancements:
- Added detailed console logging for pagination data
- Clear visibility of totalCount, totalPages, currentPage, pageSize
- Better error tracking for API response structures
- Improved development debugging experience

 CustomPagination Integration:
- Proper integration with existing CustomPagination component
- Maintains consistent pagination UI across the application
- Responsive pagination with page size options [10, 20, 50, 100]
- Professional pagination styling and user experience

🚀 User Experience:
- Seamless pagination navigation
- Clear total count and page information display
- Loading states during pagination changes
- Consistent behavior with other paginated components
2025-06-05 00:12:31 +07:00
tuanOts d9320683dd 🚀 Enhanced Create Project & Removed /react URL Prefix
📊 Create Project Enhancements:
- Added progressPercentage field with validation (0-100 range)
- Updated API data structure to match backend requirements
- Simplified form validation (removed required managers)
- Made team assignment optional with clear UX indicators
- Enhanced form layout with 4-column responsive design

🔧 API Data Structure:
- Streamlined to 10 essential fields: projectName, description, clientName, categoryId, priority, status, startDate, endDate, budget, progressPercentage
- Removed complex fields: managerIds, teamMemberIds, tags, createdDate, isActive
- Proper data type conversion (parseInt, parseFloat)
- Clean JSON structure for backend integration

🌐 URL Structure Improvement:
- Removed /react prefix from URLs by updating package.json homepage
- Clean URLs: localhost:3001/ instead of localhost:3001/react/
- Better SEO and user experience with standard URL patterns
- Professional URL structure following best practices

🎨 UI/UX Improvements:
- Progress percentage field with number input and % suffix
- Beautiful gradient styling for input group elements
- Enhanced form section headers with icons
- Optional field indicators with helpful placeholder text
- Responsive 3-column layout for timeline/budget/progress section

 Form Features:
- Real-time validation with clear error messages
- Loading states for API calls
- Success notifications with auto-redirect
- Fallback data handling for offline scenarios
- Professional form styling with hover effects
2025-06-01 23:30:55 +07:00
tuanOts 5736b4a544 Enhanced Theme Customizer with Beautiful Features
🎨 Theme Customizer Improvements:
- Added ultra transparent background for real-time UI preview
- Created custom Light/Dark mode preview cards with realistic UI mockups
- Implemented spinning gear animation for settings icon (always rotating)
- Added beautiful hover effects and selected state animations

🖼️ Custom Preview Cards:
- Browser-style header with macOS-like dots (red, yellow, green)
- Mini sidebar with menu items and active states
- Realistic content areas with proper color schemes
- Interactive animations with hover and selection feedback

🔄 Settings Icon Animation:
- Continuous spinning animation (3s/rotation)
- Faster rotation on hover (1.5s with glow effects)
- Even faster when panel open + hover (0.8s)
- Smooth transitions with cubic-bezier timing

🎯 User Experience:
- Real-time theme preview through transparent sidebar
- Visual feedback for all interactive elements
- Professional appearance with modern design patterns
- Mobile-responsive and performance optimized

🔧 Technical Improvements:
- Fixed SCSS syntax errors and proper nesting
- Added comprehensive CSS animations and keyframes
- Implemented proper state management for theme switching
- Enhanced accessibility with proper contrast and shadows
2025-06-01 21:32:44 +07:00
tuanOts 9edc668441 Integrate Wedding Guest List with real API and improve UX
🔗 API Integration:
- Add weddingGuestService.js with full CRUD operations
- Connect to /api/WeddingGuests endpoint using REACT_APP_API_BASE_URL
- Implement proper error handling and fallback mechanisms
- Add detailed debug logging for troubleshooting

🎯 Features Added:
- Real-time API calls for guests, statistics, and units
- Automatic fallback to mock data if API fails
- Export Excel functionality
- Delete confirmation with API integration
- Search and filter with API parameters

🎨 UX Improvements:
- Default 'Tất cả trạng thái' and 'Tất cả đơn vị' options
- Beautiful icons for filter options (📋 🏢   )
- User-friendly error messages and warnings
- Loading states with spinners
- Success/error notifications

🔧 Technical Enhancements:
- Axios client with interceptors for auth and error handling
- Proper pagination handling
- Status mapping between API and UI
- Environment variable configuration
- Mock data structure matching API format

🚀 Production Ready:
- Complete API integration with backend
- Fallback mechanisms for reliability
- Professional error handling
- Responsive design maintained
2025-05-31 19:13:52 +07:00
tuanOts a1fa4036d7 Add Wedding Guest List feature to Inventory section
Features Added:
- Complete wedding guest management page with guest information
- Guest details: Name, Unit, Number of people, Gift amount, Status
- Status tracking: Going, Not Going, Pending confirmation
- Beautiful color-coded status display with icons
- Statistics dashboard with total guests, confirmed, people count, gift amount
- Search and filter functionality by status and unit
- Custom pagination with proper spacing
- Professional UI with Heart icon theme
- Responsive design with modern styling

Technical Implementation:
- New WeddingGuestList component with full CRUD interface
- Route configuration for /wedding-guest-list
- Sidebar menu integration in Inventory section
- Mock data with realistic guest information
- Status color scheme: Going (green), Not Going (red), Pending (orange)
- Vietnamese currency formatting for gift amounts
- Ant Design components integration
- Custom pagination component usage

Navigation:
- Added menu item 'Khách mời đám cưới' in Inventory section
- Heart icon for wedding theme
- Proper route handling and component loading
2025-05-31 16:50:45 +07:00
tuanOts 12424bfb57 Enhance Project Tracker Status Display
🎨 Features Added:
- Beautiful color-coded status display with icons
- 5 status types: Planning, Completed, Pending, In Progress, On Hold
- Modern rounded design with background colors and borders
- Icon integration for better visual identification
- Enhanced filter dropdown with status icons
- Improved pagination spacing and layout

🔧 Technical Improvements:
- Replaced simple Tag with custom styled status component
- Added getStatusConfig function for flexible status management
- Updated status rendering with proper color schemes
- Consistent styling across light/dark themes
- Better UX with professional appearance

📋 Status Color Scheme:
- Planning: Blue (#1890ff) with 📋 icon
- Completed: Green (#52c41a) with  icon
- Pending: Orange (#faad14) with  icon
- In Progress: Purple (#722ed1) with 🚀 icon
- On Hold: Red (#f5222d) with ⏸️ icon
2025-05-31 16:08:04 +07:00
tuanOts 0b126aab3c Added Project Tracker & Enhanced Todo with Template Integration
� New Features:
-  Project Tracker page with full functionality
-  Professional project management interface
-  Template color integration for consistency
-  Enhanced Todo List with template styling

� Project Tracker Features:
-  8 realistic project entries with diverse data
-  Budget tracking and project categorization
-  Progress bars with color-coded completion levels
-  Manager assignment and priority indicators
-  Advanced filtering: Priority, Manager, Status, Date range
-  Professional project categories: Web Dev, Design, Backend, etc.

� Template Integration:
-  Consistent color scheme across both pages
-  Bootstrap template classes usage
-  Removed custom dark styling for template consistency
-  Professional card layouts and responsive design
-  Theme compatibility with Dark/Light mode switching

� Navigation & Routing:
-  Added Project Tracker to Application menu
-  Proper routing configuration
-  Clean URL structure: /project-tracker
-  Sidebar integration with proper navigation

� Professional Features:
-  Star favorites system
-  Edit/Delete actions with template styling
-  Pagination with template integration
-  Filter dropdowns with form-control classes
-  Progress tracking with visual indicators

Ready for production with unified design!
2025-05-29 01:36:47 +07:00
tuanOts e5bbecbb22 Enhanced Product List with Advanced Features
� Major Features Added:
-  Advanced search functionality with dropdown filters
-  Brand dropdown search integration with API mapping
-  Theme integration (Dark/Light mode) for pagination
-  Custom pagination with beautiful styling and animations
-  Filter system: Product, Category, Sub Category, Brand, Price Range
-  Real-time search with debouncing
-  Professional UI with hover effects and transitions

� Technical Improvements:
-  Fixed API parameter mapping (Page, PageSize, SearchTerm, Brand)
-  Integrated with Theme Customizer for automatic theme switching
-  Clean code structure with proper state management
-  Responsive design with consistent styling
-  Performance optimized with efficient CSS and React patterns

� UI/UX Enhancements:
-  Beautiful pagination with gradient backgrounds and animations
-  Clean dropdown styling with proper spacing
-  Professional search interface with icons and visual feedback
-  Consistent theme integration across all components
-  Removed unnecessary custom frames for cleaner appearance

� Ready for production with full functionality and beautiful design!
2025-05-29 01:08:07 +07:00
tuanOts b7031a8722 � Implement fully functional Row Per Page pagination
 Features Added:
- � Functional Row Per Page dropdown (10, 20, 50, 100)
- � Working page navigation with API integration
- � Real-time data fetching on page/size changes
- � Loading states with visual feedback
- � Beautiful circular pagination buttons (orange active state)
- � Hide all Ant Design default pagination elements
- � Dynamic total records display with search filtering
-  Smooth animations and hover effects

� Technical Improvements:
- State management for pageSize and currentPage
- API integration with fetchProducts action
- Loading states for dropdown and buttons
- Search term preservation across pagination
- Comprehensive CSS hiding for Ant pagination
- Custom pagination container protection
- Error handling and user feedback

� UI/UX Enhancements:
- Glass morphism design with shimmer effects
- Responsive layout matching reference image
- Professional dark theme with gradients
- Touch-friendly 32px circular buttons
- Disabled states with gray styling
- Smooth transitions and hover animations

� Perfect match to reference design with full functionality!
2025-05-28 23:37:31 +07:00
tuanOts f75e524565 Add beautiful single-row pagination with total records
- � Beautiful gradient design with animations
- � Total records display with search filtering
- � Single-row layout with Ant Design pagination classes
- � Responsive compact design for all devices
-  Smooth hover animations and transitions
- � Ultra compact buttons and optimized spacing
- � Real-time search integration with debouncing
- � Glass morphism effects with shimmer animations
2025-05-25 23:58:48 +07:00
tuanOts 9687351177 update 2025-05-25 17:15:22 +07:00
tuanOts 6b6e2bbc8a Fix ESLint no-unused-vars error in index.js
- Remove unused base_path import from environment.jsx
- BrowserRouter already uses process.env.PUBLIC_URL directly
- Clean up unnecessary imports
2025-05-25 02:28:42 +07:00
tuanOts 1e9bab5d07 Fix ESLint configuration and parsing errors
- Fix .eslintrc.json format (remove comments and invalid JSON syntax)
- Simplify environment.jsx to fix parsing error
- Add proper ESLint rules for React project
- Enable react-hooks plugin and configure settings
2025-05-25 02:15:41 +07:00
tuanOts 37f11dc23a Fix asset paths and routing issues
- Fix asset paths from /react/templateassets/ to /react/assets/
- Fix missing slash in asset paths (/reactassets/ to /react/assets/)
- Update environment.jsx to ensure base_path always has trailing slash
- Fix BrowserRouter basename configuration
- Update Header.jsx exclusionArray paths
- Fix themeSettings and rightSidebar asset paths
2025-05-25 02:11:19 +07:00
tuanOts a32097fb4a Merge remote changes and keep image path fixes
- Resolved conflicts in package.json, environment.jsx, and imagewithbasebath.jsx
- Kept our improved image path configuration (/react/assets/)
- Maintained enhanced ImageWithBasePath component with proper path handling
2025-05-25 01:07:09 +07:00
tuanOts f851ff0fa5 Fix image paths: Change from /react/templateassets/ to /react/assets/
- Update package.json homepage from /react/template/ to /react/
- Update environment.jsx base_path to /react/ with proper fallback
- Enhance ImageWithBasePath component to handle path concatenation correctly
- Ensure proper slash handling between base_path and image src paths
2025-05-25 01:02:24 +07:00
tuanOts c21aee3120 Initial commit of Dreams POS React template 2025-05-24 00:29:12 +07:00
tuanOts 3d34f67c3f Initial commit of Dreams POS React template 2025-05-23 23:34:50 +07:00