- {effectiveHardMatch ? (
-
- This item already exists in our inventory.
{" "}
- Please request that item instead.
-
+
+ {/* Suggestions block (red highlighted) */}
+ {showSuggestions && (
+ <>
+
+
+ {effectiveHardMatch ? (
+
+ This item already exists in our inventory.
{" "}
+ Please request that item instead.
+
+ ) : (
+
+ Similar items are in our inventory.
Please go
+ to Items Page if any of these match.
+
+ )}
+
+
+ {isTutorialSuggestions ? (
+
+
+ Title
+ Quantity
+
+ {displaySuggestions.map((suggestion) => (
+
+ {suggestion.title}
+ {suggestion.quantity ?? "-"}
+
+ ))}
+
) : (
-
- Similar items are in our inventory.
Please go
- to Items Page if any of these match.
-
+
+ columns={suggestionColumns}
+ fetchFn={suggestionFetchFn}
+ rowId="id"
+ headerClassName="bg-red-primary/80 text-white"
+ rowCellStyles="border border-transparent bg-white"
+ emptyState={
+
+ No similar items found.
+
+ }
+ toolBar={null}
+ disablePagination
+ disableFilters
+ />
)}
- {isTutorialSuggestions ? (
-
-
- Title
- Quantity
-
- {displaySuggestions.map((suggestion) => (
-
- {suggestion.title}
- {suggestion.quantity ?? "-"}
-
- ))}
-
- ) : (
-
- columns={suggestionColumns}
- fetchFn={suggestionFetchFn}
- rowId="id"
- headerClassName="bg-red-primary/80 text-white"
- rowCellStyles="border border-transparent bg-white"
- emptyState={
-
- No similar items found.
-
- }
- toolBar={null}
- disablePagination
- disableFilters
- />
- )}
-
-
-
-
s.id))
- )}`}
- className="inline-block w-1/2 rounded-lg border border-red-primary px-4 py-2 font-medium text-red-primary hover:bg-red-50 active:translate-y-px text-center"
- >
- Go to Items Page
-
+
+ s.id))
+ )}`}
+ className="inline-block w-1/2 rounded-lg border border-red-primary px-4 py-2 font-medium text-red-primary hover:bg-red-50 active:translate-y-px text-center"
+ >
+ Go to Items Page
+
+
+ {/* Continue → Step 2 */}
+
+
+ >
+ )}
- {/* Continue → Step 2 */}
+ {/* No suggestions but non-empty title */}
+ {!searching &&
+ displaySuggestions.length === 0 &&
+ form.name !== "" && (
-
- >
- )}
-
- {/* No suggestions but non-empty title */}
- {!searching && displaySuggestions.length === 0 && form.name !== "" && (
-
- )}
+ )}
+
>
)}
diff --git a/src/components/Tutorial.tsx b/src/components/Tutorial.tsx
index acb6b1fb..fc1a91f0 100644
--- a/src/components/Tutorial.tsx
+++ b/src/components/Tutorial.tsx
@@ -80,6 +80,7 @@ export default function Tutorial({
const [stepIndex, setStepIndex] = useState(0);
const [run, setRun] = useState(false);
const [viewportWidth, setViewportWidth] = useState