Project

General

Profile

Bug #3216

Add column sorting functionality to UI tables

Added by Shreya Agarwal about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Start date:
09/30/2026
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

Add sorting functionality to UI table columns so users can sort data in ascending/descending order by clicking on column headers.

#1

Updated by Shreya Agarwal about 2 months ago

Today,successfully implemented dynamic server-side column sorting across five major logging and reporting pages in the application under ticket #3216 on branch feature/shreya/3216-table-column-sorting-ui. On the App Error Notification Logs page, I enabled sorting on the Date/Time and Status columns by updating the API query parameters to pass sortBy and sortDirection dynamically. On the Payment Webhook Logs page, sorting was integrated across the Date/Time, Provider, and Tenant columns. On the Activity Logs page, I updated the query model and added sorting across five key columns: Date/Time, Module, Action, Field, and Updated By. On the OCPI Logs Report page, I added sorting for Date/Time, Method, OCPI Status, and Vendor, ensuring seamless synchronization between the table column headers and the existing filter bar sort dropdown. And on the Company Error Log Report page, I replaced hardcoded sort values and enabled interactive sorting for Timestamp and Error Code.
Across all pages, strict UI and styling consistency was preserved by maintaining standard text.secondary typography on headers, subtle hover transitions to text.primary, and directional indicator arrows (↑ / ↓) without introducing any unwanted primary color highlights.
also learn react js for my understanding and knowledge enhancement also understand some concept related to .Net.

#2

Updated by Shreya Agarwal about 2 months ago

Today, dynamic server-side column sorting was implemented for the Date column on the Pending Approvals page (/stations/expenses/approvals) within the branch feature/shreya/3216-date-column-sorting-pending-approvals-ui. the getPendingExpenseApprovals service function was updated with the PendingExpenseApprovalsQuery contract to dynamically pass the required sortBy=expenseDate and sortDirection=desc (and asc) query parameters to the backend endpoint. In EmployeeExpenseApprovalsPage.tsx, state management for sortBy and sortDirection was added alongside a toggle handler, binding the Date table header with clickable interaction, hover styling, and dynamic direction indicator arrows (↑ / ↓) while strictly preserving existing brand styling (expenseThSx). When sorting is triggered, data is fetched dynamically from the server with active loading indicator feedback (LinearProgress), and default sorting values are safely restored on filter reset.

#3

Updated by Shreya Agarwal about 1 month ago

dynamic server-side column sorting was implemented for the columns . When sorting is triggered, data is fetched dynamically from the server with active loading indicator feedback, and default sorting values are safely restored on filter reset.
also learning and enhancing knowledge about react and .Net and also testing is done on both local browser and dev
also worked on the multilingual support for the application by adding and updating translation keys for the latest modules. I covered UI labels, instructions, validation messages, and location-related content while maintaining consistent terminology across languages.

Also available in: Atom PDF