Skip to content

OBLS-561 Streamline barcode-not-recognized recovery in Inbound Sortation#396

Open
olewandowski1 wants to merge 4 commits intodevelopfrom
OBLS-561
Open

OBLS-561 Streamline barcode-not-recognized recovery in Inbound Sortation#396
olewandowski1 wants to merge 4 commits intodevelopfrom
OBLS-561

Conversation

@olewandowski1
Copy link
Copy Markdown
Collaborator

@olewandowski1 olewandowski1 commented May 5, 2026

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

Changes:

  • Replace the bare "Sortation Failed" alert in Inbound Sortation with a Barcode unrecognized dialog that links to the Products list, letting the user assign the scanned barcode to an existing product without leaving the flow via the Dashboard.
  • Carry a fromSortation nav param through Products → ProductDetails so a BACK TO SORTATION btn appears on the Product Details screen for a one-tap return after the barcode is saved.
  • Rework the Edit Barcode modal to use ScannerInput.
Kazam_screencast_00066.mp4

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to streamline the Inbound Sortation recovery path when a scanned barcode is not recognized, by routing users into product lookup/details and giving them a faster path back to sortation after updating a product barcode.

Changes:

  • Replaces the generic sortation failure alert with a dedicated “Barcode unrecognized” dialog in the Sortation entry flow.
  • Propagates a fromSortation navigation flag through Products → Product Details so Product Details can show a return path back to Sortation.
  • Reworks the Edit Barcode modal to use ScannerInput and adds a loading state while saving product identifiers.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/screens/Sortation/styles.ts Adds styles for the new barcode-unrecognized dialog UI.
src/screens/Sortation/SortationEntryScreen.tsx Replaces the old error alert with the new dialog and adds navigation into Products.
src/screens/Sortation/BarcodeUnrecognizedDialog.tsx Introduces the new modal dialog for unrecognized barcode handling.
src/screens/Products/types.ts Extends Products screen props to include route access.
src/screens/Products/index.tsx Threads the sortation-origin flag into all Product Details navigation paths.
src/screens/ProductDetails/styles.ts Adds styles for the return-to-sortation banner and modal button layout.
src/screens/ProductDetails/index.tsx Shows the sortation return banner and adjusts barcode save handling.
src/screens/ProductDetails/EditBarcodeModal.tsx Replaces the text input with ScannerInput in the barcode edit modal.
src/redux/sagas/products.ts Adds full-screen loading around product identifier updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/screens/Sortation/SortationEntryScreen.tsx Outdated
Comment thread src/screens/Sortation/SortationEntryScreen.tsx
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