Skip to content

#3881 create select material to copy modal#4059

Open
samshr27 wants to merge 9 commits intofeature/bom-improvement-pt2from
#3881-create-select-material-to-copy-modal
Open

#3881 create select material to copy modal#4059
samshr27 wants to merge 9 commits intofeature/bom-improvement-pt2from
#3881-create-select-material-to-copy-modal

Conversation

@samshr27
Copy link
Contributor

@samshr27 samshr27 commented Mar 18, 2026

Changes

Added the 'Select Material to Copy' modal: lets you copy over information from a previous material from a car/project of your choosing.

Edited the MaterialFormView to allow the COPY FROM EXISTING BOM button to function
Edited the team.utils to allow a 'Copy' SubmitText

Screenshots

image image

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #3881

@samshr27 samshr27 self-assigned this Mar 18, 2026
@samshr27 samshr27 force-pushed the #3881-create-select-material-to-copy-modal branch from 928624a to de9fffc Compare March 18, 2026 21:38
@samshr27 samshr27 changed the base branch from feature/bom-improvements to feature/bom-improvement-pt2 March 19, 2026 03:25
@samshr27 samshr27 force-pushed the #3881-create-select-material-to-copy-modal branch from 0d7e1fc to 16847a9 Compare March 19, 2026 03:26
@samshr27 samshr27 requested a review from wavehassman March 19, 2026 06:14
Copy link
Contributor

@wavehassman wavehassman left a comment

Choose a reason for hiding this comment

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

Awesome work so far! Here are some things to look at on top of the review:

  1. materialToOption shows assemblyId, we want it to show assembly name
  2. you do not want to copy the status
  3. the copyFromExistingBomAction prop is declared, but never used in the MaterialFormView file
  4. you need to set reimbursement request id to undefined explicitly when copying the material
  5. the drop downs are confusing because the car number just shows 0 or 1 and someone just opening it has no idea what that is referring to. I would show "Car _" so they know it's a car
  6. add a search icon or something to the search bar to differentiate it from the other drop downs, also take out the label


const [copyModalOpen, setCopyModalOpen] = React.useState(false);

const handleCopySelect = (m: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

don't use any

sortable: false,
filterable: false,
hide: hideColumn[3],
renderCell: (params) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this should still be there, probably just a merge mix up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants