-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LIVE-13346][LLM][BLE] Device search in BLE during onboarding doesn't filter on the selected device #7318
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 5 Skipped Deployments
|
5a30a6c
to
ff2e04c
Compare
@@ -70,7 +70,7 @@ export const BleDevicePairingFlow: React.FC<Props> = ({ navigation }) => { | |||
<Flex px={6} flex={1}> | |||
<BleDevicePairingFlowComponent | |||
key={keyToReset} | |||
filterByDeviceModelId={DeviceModelId.stax} | |||
filterByDeviceModelId={QRCodeDevices} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be clearer with [DeviceModelId.stax, DeviceModelId.europa]
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a list that contains all the devices with screen and could be (surely) extensible in the future, so let's maintain the list to avoid modifying everywhere when a new device comes out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list could have a better name then, it's not clear to have QrCodeDevices
filtered for BlePairingFlow
imho
if (Array.isArray(filterByDeviceModelId)) { | ||
return filterByDeviceModelId.filter( | ||
// This array should not contain `null` value, this is to make the type check pass | ||
(v: FilterByDeviceModelId): v is DeviceModelId => v !== null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, one char const/var should be avoided to understand more clearly :)
could you fill the PR description for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(some feedback in comment above, ✔️ overall)
✅ Checklist
npx changeset
was attached.filterByDeviceModelId
of componentBleDevicePairingFlow
can be passed an array ofDeviceModelId
which will be transferred directly to filter (already supported). This can allow us show all devices with screen after scanning a QR code (no device info included for now).📝 Description
❓ Context
🧐 Checklist for the PR Reviewers