Add Kanban view mode to WebPortal for proposals, orders and invoices #36249
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.
Add Kanban view mode to WebPortal for invoices, orders and proposals
Summary
Add Kanban view mode to WebPortal module for customer-facing portal, allowing clients to view their invoices, orders, and proposals in a visual card-based layout instead of just table view.
Features
✅ View toggle buttons to switch between List and Kanban modes
✅ Responsive grid layout adapting to screen size (4/3/2/1 columns)
✅ Rich kanban cards displaying:
✅ Mode parameter persistence via URL and forms
✅ CSS styling with hover effects and smooth transitions
Technical Implementation
Modified Files
Core classes:
htdocs/webportal/class/html.formlistwebportal.class.phpelementKanban()method for kanban renderingrenderKanbanCard()method for card generationControllers:
htdocs/webportal/controllers/invoicelist.controller.class.phphtdocs/webportal/controllers/orderlist.controller.class.phphtdocs/webportal/controllers/propallist.controller.class.phpdisplay()methodelementList()Styling:
htdocs/public/webportal/css/kanban.css(new file)htdocs/public/webportal/css/style.css.phpkanban.cssCode Quality
Testing
Tested with:
Screenshots
Desktop View (4 columns responsive grid)
Mobile View (1 column stacked)
Compatibility
User Experience Improvements
Before (List view only):
After (Kanban option):
Future Enhancements (Out of scope for this PR)
Potential future additions could include:
Migration Notes
No migration required. This is a pure addition:
Pull Request Checklist: