Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
35592 176 d 14 h amit /trunk/ Ticket system improvements: N+1 query fixes, authorization checks, CRM access, UI fixes

- Fix N+1 queries in getSubCategoryIdAndCategoryMap and getAuthUserAndEsclationByPartnerId
- Add authorization checks to ticket endpoints (getActivities, closeTicket, createActivity, editTicket, editPartnerTicket, createLastActivity)
- CRM users can now see all tickets to handle partner communications
- Only CRM team members can mark tickets as resolved
- Fix duplicate HTML IDs in ticket templates (changed to classes)
- Fix getSubCategoryId() bug in edit-ticket modals
- Add message field to create-ticket form
- Update cs.js to use class selectors
 
35569 185 d 7 h amit /trunk/profitmandi-fofo/src/main/ CRM-only external communication + performance & security improvements

Feature:
- Restrict external communication (COMMUNICATION_OUT) to CRM team only (category_id=9)
- Non-CRM users can only send internal communications
- Hide internal/external checkbox for non-CRM users in UI

Performance:
- Eliminate duplicate AuthUser fetch in getTicket() - reuse variable
- Eliminate duplicate activity query (selectAll called twice)
- Fetch only needed AuthUsers instead of all users for activity display
- Same optimizations applied to getMyPartyTicketTicket()

Security:
- Add escapeHtml() function to prevent XSS in activity messages
- Applied to all user-generated content display

UX:
- Add loading spinner while fetching activities

Code Quality:
- Add ActivityType constants for consistent usage
- Add toBool() helper for cleaner boolean checks
- Refactored loadActivities() for better readability
 
34913 329 d 2 h ranu /trunk/profitmandi-fofo/src/main/ show all parties ticket to abm  
33081 863 d 14 h ranu /trunk/profitmandi-fofo/src/main/ ticket category internal and external  
32885 910 d 12 h shampa /trunk/profitmandi-fofo/src/main/webapp/resources/js/ remove refresh loader  
31771 1206 d 10 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
31762 1210 d 11 h tejbeer /trunk/ ticket and imei wise scheme related changes  
31414 1294 d 5 h amit.gupta /trunk/profitmandi-fofo/src/main/ F  
31412 1294 d 9 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed formatting  
27755 1990 d 8 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed live with on  
27754 1990 d 9 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed live with on  
27410 2069 d 10 h tejbeer /trunk/ position related change  
27285 2091 d 17 h tejbeer /trunk/ change  
27270 2093 d 9 h tejbeer /trunk/ change  
27169 2111 d 14 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
27167 2111 d 14 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
27165 2112 d 10 h amit.gupta /trunk/profitmandi-fofo/src/main/ Added changes to ticket js.. Removing name  
27149 2112 d 17 h amit.gupta /trunk/profitmandi-fofo/src/main/ Added ticket related fix, partner messages shown as sd team messages.  
27141 2114 d 8 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
27124 2115 d 8 h amit.gupta /trunk/ Fixed escalation  

Show All