Skip to content

Comments

SaiKrishna Approve And Reject Functionality In Consumables Front End#4858

Merged
one-community merged 1 commit intodevelopmentfrom
SaiKrishna_ApproveAndRejectFunctionalityInConsumablesFrontEnd
Feb 20, 2026
Merged

SaiKrishna Approve And Reject Functionality In Consumables Front End#4858
one-community merged 1 commit intodevelopmentfrom
SaiKrishna_ApproveAndRejectFunctionalityInConsumablesFrontEnd

Conversation

@saikrishnaraoyadagiri
Copy link
Contributor

image

Related PRS (if any):

To test this FrontEnd PR you need to checkout the 2055 Backend PR.

Main changes explained:

Update URL.js — Add consumable status endpoint
Update consumableConstants.js — Add status update constants
Update consumableActions.js — Add approve/reject actions
Update consumablesReducer.js — Handle status update state
Update ItemListView.jsx — Pass itemType to ItemsTable
Update ItemsTable.jsx — Pass itemType to RecordsModal
Update RecordsModal.jsx — Fix approve/reject functionality
Update RecordsModal.module.css — Add status badge styles…

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. Go to http://localhost:5173/bmdashboard/consumables/
  6. Click on the view button under purchases and if you find any purchase try to check approve and reject buttons
  7. if you dont see any purchase, go to http://localhost:5173/bmdashboard/consumables/purchase
  8. Create a purchase then come back to http://localhost:5173/bmdashboard/consumables/
  9. Then try to check the approve and reject functioanlity, on clicking approve status should be updated to approved and on clicking reject it should be updated to rejected as per the requirements

Screenshots or videos of changes:

ApproveAndRejectButtonsInConsumables.mp4

@netlify
Copy link

netlify bot commented Feb 18, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 1e536ab
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6995747f4b35a10008a637cb
😎 Deploy Preview https://deploy-preview-4858--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

@one-community one-community changed the title SaiKrishna_ApproveAndRejectFunctionalityInConsumablesFrontEnd SaiKrishna - Approve And Reject Functionality In Consumables Front End Feb 19, 2026
Copy link

@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 Sai Krishna,

I have reviewed your PR and it works as per requirement.

Image Image Image Image Image Image Image Image Image Image

Copy link

@HemanthNidamanuru HemanthNidamanuru left a comment

Choose a reason for hiding this comment

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

Hi Sai Krishna,

I have reviewed your PR locally and verified the functionality as per the requirements. The approve and reject actions are working correctly, and the status updates properly to Approved and Rejected.

Everything is functioning as expected.

Image Image Image Image

@saikrishnaraoyadagiri saikrishnaraoyadagiri changed the title SaiKrishna - Approve And Reject Functionality In Consumables Front End SaiKrishna Approve And Reject Functionality In Consumables Front End Feb 20, 2026
@one-community
Copy link
Member

Thank you all, merging!

@one-community one-community merged commit 7f71674 into development Feb 20, 2026
10 checks passed
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.

4 participants