Bug #7146
openTo test the entire application to check any bugs and need to fix
Added by Ajit A about 2 months ago. Updated about 1 month ago.
Subtasks
Related issues
Updated by Ajit A about 2 months ago
- Tracker changed from Testing to Bug
- Status changed from New to In Progress
- % Done changed from 0 to 30
backend changes :
*feat: add action history tracking for request status updates and site visit operations, request templae api
*feat: enhance request service date/ObjectId validation and site visit processing
frontend changes:
*feat: add formula evaluation utilities and refactor service/request UI components
*feeat: add request template,sitevisit updation flow.
Updated by Ajit A about 2 months ago
- Estimated time changed from 8:00 h to 16:00 h
Updated by Ajit A about 2 months ago
Frontend:
Fixed site visit details mapping after request creation so visitedBy, preferred date, and instructions display correctly.
Create/Edit Request UX:
Auto-open service dropdown after selecting a customer.
Live validation on blur/change to remove stale error messages.
Performance optimization for sides/side-length inputs (lightweight state updates + debounced heavy calculations).
Edit mode: show loading while updating and auto-open first service accordion.
Templates: apply services only (never customer); allow applying template even without customer selected.
Site visit preferred date: time picker defaults to 9:00 AM without auto-selecting date.
Quotes: fixed Quote List skeleton loading (hook exposes pageLoading/tableLoading; skeleton now shows on initial load and table skeleton on refetch).
Backend:
Request creation: merged incoming siteVisits[] into selectedService[] so scheduled-site-visit API/UI receive correct data.
Scheduled site visit fetch: populate selectedService.visitedBy with user fields (username/firstname/lastname/email/id).
Staff API: /api/v1/afc-user/staff now returns only admin/manager roles (excluding deleted).
Renamed controller export getfeildstaff → getStaff and updated route.
Updated by Ajit A about 1 month ago
- % Done changed from 30 to 50
Changes Made
1. UI/UX - Green Theme Application
Fixed hover colors: Replaced blue hover states with green theme across all input fields
Radio buttons: Applied green theme (#7FC200) for checked, hover, and focus states
InputNumber components: Applied green hover (#9FD933) and focus (#7FC200) states
Native radio inputs: Applied green theme for consistency
All input fields: Consistent green hover and focus states throughout the form
2. Feature Enhancement - Template Application
Auto-apply customer from template: When applying a request template, if no customer is selected, the customer from the template is automatically applied
Smart notification: Shows appropriate success/info messages based on whether customer and/or services were applied
Fallback handling: Handles cases where template's customer is not found in current client list
3. Files Modified
afc_react_fe/src/features/requests/pages/Request.css
Added CSS rules for Radio buttons (Ant Design and native)
Added CSS rules for InputNumber components
Ensured all hover states use light green (#9FD933)
Ensured all focus states use green (#7FC200) with shadow
afc_react_fe/src/features/requests/pages/CreateorEditRequest.tsx
Updated applyTemplate function to check for selected customer
Added logic to apply customer from template if none selected
Improved notification messages for better user feedback
afc_react_fe/src/features/requests/components/subcomponents/ServiceDetailsCard.tsx
Fixed remaining blue focus colors to green theme
Updated Tailwind classes from focus:border-blue-500 to focus:border-[#7FC200]
afc_react_fe/src/features/requests/components/subcomponents/SiteVisitForm.tsx
Added MutationObserver to override Ant Design's inline blue styles
Applied green theme to DatePicker and Select components
Technical Details
CSS Specificity: Used !important flags and specific selectors to override Ant Design's default blue theme
JavaScript Override: Added MutationObserver in SiteVisitForm to handle inline styles applied by Ant Design
Theme Consistency: All input fields now follow the app's primary green color (#7FC200) for focus states
Backedn changes : fixed create product api,delete customer , quotaion checks ,
Updated by Ajit A about 1 month ago
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100