From db28635c8c260d0f378e109755d32201acdb2328 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 27 May 2026 20:57:49 -0500 Subject: [PATCH] fix(mobile): ui over lapping the ui elements would over lap and cause visual issues with the scanning and seeing the old labels closes #25 --- lstMobile/src/app/(tabs)/logout.tsx | 3 + lstMobile/src/app/_layout.tsx | 3 + lstMobile/src/components/LSTScanner.tsx | 38 +- lstMobile/src/components/UpdateFooter.tsx | 44 +- migrations/0057_worthless_trish_tilby.sql | 14 + migrations/0058_damp_donald_blake.sql | 1 + migrations/meta/0057_snapshot.json | 2609 +++++++++++++++++++++ migrations/meta/0058_snapshot.json | 2603 ++++++++++++++++++++ migrations/meta/_journal.json | 14 + 9 files changed, 5290 insertions(+), 39 deletions(-) create mode 100644 lstMobile/src/app/(tabs)/logout.tsx create mode 100644 migrations/0057_worthless_trish_tilby.sql create mode 100644 migrations/0058_damp_donald_blake.sql create mode 100644 migrations/meta/0057_snapshot.json create mode 100644 migrations/meta/0058_snapshot.json diff --git a/lstMobile/src/app/(tabs)/logout.tsx b/lstMobile/src/app/(tabs)/logout.tsx new file mode 100644 index 0000000..2e18a2f --- /dev/null +++ b/lstMobile/src/app/(tabs)/logout.tsx @@ -0,0 +1,3 @@ +export default function LogoutScreen() { + return null; +} diff --git a/lstMobile/src/app/_layout.tsx b/lstMobile/src/app/_layout.tsx index 8d4d2ac..67c0963 100644 --- a/lstMobile/src/app/_layout.tsx +++ b/lstMobile/src/app/_layout.tsx @@ -5,12 +5,15 @@ import "../../global.css"; import { useEffect } from "react"; import Toast from "react-native-toast-message"; import useDeviceLock from "../hooks/useDeviceCheck"; +import { connectSocket } from "../lib/socket.io"; import { zebraScanner } from "../lib/ZebraScanner"; export default function RootLayout() { useDeviceLock(); + useEffect(() => { zebraScanner.ensureProfile(); + connectSocket(); }, []); return ( diff --git a/lstMobile/src/components/LSTScanner.tsx b/lstMobile/src/components/LSTScanner.tsx index 1625160..074cdb5 100644 --- a/lstMobile/src/components/LSTScanner.tsx +++ b/lstMobile/src/components/LSTScanner.tsx @@ -182,14 +182,17 @@ export default function LSTScanner() { }, [handleScan]), ); return ( - - - - User: {formatName(user?.name ?? "")} - - - LST Scanner id: {user?.scannerId} - + + + + + Lst user: {formatName(user?.name ?? "")} + + {/* + LST Scanner id: {user?.scannerId} + */} + + {!lastScan ? ( - - Ready to scan + + Ready to scan Please Scan a command to start scanning... Scanning a label could cause errors due to incorrect previous @@ -208,7 +211,7 @@ export default function LSTScanner() { ) : ( @@ -217,10 +220,10 @@ export default function LSTScanner() { .map((i) => { return ( - + {i} @@ -237,18 +240,17 @@ export default function LSTScanner() { color={bgColor} clearScan={clearScans} /> + - + {/* {user && (