Skip to content

Conversation

@olewandowski1
Copy link
Collaborator

@olewandowski1 olewandowski1 commented Nov 3, 2025

https://openboxes.atlassian.net/browse/OBLS-284

Changes:

  • Add the edit barcode modal
  • Show info about Barcode (detail page, main product list)
  • Handle conflict status

@olewandowski1 olewandowski1 marked this pull request as ready for review November 5, 2025 11:10
Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

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

Small change to the API URL. Need @awalkowiak to look at the react code.

}

export function updateProductBarcode(id: string, barcode: string) {
return apiClient.put(`/mobile/products/${id}/barcode`, { upc: barcode });
Copy link
Member

Choose a reason for hiding this comment

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

Do something like this to make it more generic. Eventually, we'll add more properties to identifier, like type. The fact that we're mapping it to UPC right now is an implementation detail. We don't actually want to map it to this field in the long-run.

/api/products/${id}/identifiers { identifier: identifier }

Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

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

Looks good to me. After changing the api url and endpoint this can be merged.

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.

4 participants