Linh - Add multi-select and bulk actions to Materials table#4680
Open
linh2020 wants to merge 9 commits into
Open
Linh - Add multi-select and bulk actions to Materials table#4680linh2020 wants to merge 9 commits into
linh2020 wants to merge 9 commits into
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
…rsisted backend integration - add row multi-select checkboxes and header Select All on materials table - add bulk actions dropdown with: - Mark as Hold - Mark as Reviewed - Add/Update Notes - Export Selected (CSV/PDF) - disable bulk actions when no rows are selected - add loading state while bulk actions are being applied - visually highlight selected rows for better clarity - show bulk status tags per row (On Hold, Reviewed, Has Note) - connect materials bulk actions to backend API and refresh materials after success - keep dark mode and responsive behavior for bulk actions area - add endpoint constant and action helper for materials bulk actions API Files updated: - frontend/HighestGoodNetworkApp/src/components/BMDashboard/ItemList/ItemsTable.jsx - frontend/HighestGoodNetworkApp/src/components/BMDashboard/ItemList/ItemListView.module.css - frontend/HighestGoodNetworkApp/src/actions/bmdashboard/materialsActions.js - frontend/HighestGoodNetworkApp/src/utils/URL.js
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- fix invalid regex used to sanitize env keys in vite define config - normalize non-alphanumeric characters to underscores - guard against keys starting with digits - resolve Netlify deploy-preview build failure caused by invalid define names
- fix invalid regex used to sanitize env keys in vite define config - normalize non-alphanumeric characters to underscores - guard against keys starting with digits - resolve Netlify deploy-preview build failure caused by invalid define names
- fix invalid regex used to sanitize env keys in vite define config - normalize non-alphanumeric characters to underscores - guard against keys starting with digits - resolve Netlify deploy-preview build failure caused by invalid define names
- Install joi@18.1.2 (required by setupTests.js vi.mock) - Remove package-lock.json to resolve mixed npm/yarn conflict - Regenerate yarn.lock with proper dependency tracking - Resolves pre-push hook test failures from missing 'joi' import
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Description
Implements bulk multi-select and bulk actions for BM Materials at /bmdashboard/materials so admins can apply updates to multiple materials in one flow (mark hold, mark reviewed, add/update notes, export selected), with selection highlighting and disabled bulk actions until at least one row is selected.
Related PRS (if any):
To test this frontend PR you need to checkout the #2178 backend PR.
Main changes explained:
Update ItemsTable.jsx for:
multi-select row checkboxes + select-all header checkbox
bulk actions dropdown with disabled/loading states
backend-connected actions for hold/review/notes
CSV/PDF export on selected rows
selected row highlight and persisted status chips (On Hold, Reviewed, Has Note)
Update materialsActions.js for new bulk action API helper (postMaterialsBulkAction).
Update URL.js for new endpoint constant BM_MATERIALS_BULK_ACTIONS.
Update ItemListView.module.css for bulk action responsive styles, disabled button state, selected-row clarity, and light/dark bulk status tag styling.