Skip to content

Sriamsh - Added sorting functionality for Bought, Used, Available, and Wasted columns.#4460

Merged
one-community merged 1 commit intodevelopmentfrom
sriamsh_materiallist_sorting
Feb 13, 2026
Merged

Sriamsh - Added sorting functionality for Bought, Used, Available, and Wasted columns.#4460
one-community merged 1 commit intodevelopmentfrom
sriamsh_materiallist_sorting

Conversation

@Sriamshreddy000
Copy link
Copy Markdown
Contributor

Description

Screenshot 2025-11-26 at 1 38 58 PM

Related PRS (if any):

This frontend PR is related to the development branch of backend.
To test this PR, you need to checkout the development branch of backend.

Main changes explained:

  • Added sorting state objects for Bought, Used, Available, and Wasted columns.
  • Added a resetOtherDynamicColumns() helper to ensure only one column is actively sorted at a time.
  • Updated dynamic column header rendering to support onClick sorting and display the correct FontAwesome sort icons.
  • Extended the existing sortData function to include numeric sorting logic for each of the Bought, Used, Available, and Wasted columns

How to test:

  1. check into current branch and the development branch of backend
  2. do npm install and npm start to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. Navigate to http://localhost:5173/bmdashboard/materials
  6. Verify that the sort arrows on the Bought, Used, Available, and Wasted column headers sort correctly in both ascending and descending order.

Screenshots or videos of changes:

filtering the used column

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 26, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit fc7188c
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/692777b1db4e6e000843238c
😎 Deploy Preview https://deploy-preview-4460--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link
Copy Markdown

@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Feb 8, 2026
Copy link
Copy Markdown

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sriamsh,

I have reviewed your PR locally and the sorting does work as per requirement.

4460.mp4

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit 65417af into development Feb 13, 2026
10 checks passed
pavanputti pushed a commit that referenced this pull request Feb 22, 2026
…_sorting

Sriamsh - Added sorting functionality for Bought, Used, Available, and Wasted columns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants