Closed dawnho closed 2 weeks ago
Some ideas, we can rename this section to "Device information", the property could be renamed to disableDeviceInformation
.
Thoughts? @razor-x @xplato
Is the manufacturer useful? We already have disableResourceIds
which covers one of the fields. What if we add disableConnectedAccountPersonalIdentifiableInformation
? or disableConnectedAccountPii
?
For the resident, probably not, I don't think they need to know the manufacturer. They're just interested in the thermostat controls and seeing the current temperature / settings
@razor-x To hide that whole section, would they just need to set both disableConnectedAccountInformation
and disableResourceIds
to `true?
Ok, I've updated the title, we can add disableConnectedAccountPii
, but I don't think it makes sense for this to control the manufacturer.
To hide both the email / id, they would set disableResourceIds
and disableConnectedAccountPii
.
I still think hiding this entire section is the same case as https://github.com/seamapi/react/pull/607 and is out of scope of the prop API. The API focuses on controlling functionality and behaviors, not tweaking UI at the component level from the global scope.
In my opinion, we should not add a new prop. Even disableDeviceInfo
is ambiguous (we don't even title that section wit info) and instead:
Device Information
.seam-device-details-row-information
to this section.seam-device-details-row-information
.@razor-x I kind of prefer disableConnectedAccountInformation
to disableConnectedAccountPii
. Pii is an acronym, and not all the information being hidden is personally identifying.
@dawnho Looking at this with fresh eyes, this row only exists on ThermostatDeviceDetails
. We should either remove it entirely from the component, or add it consistently to all device detail components and add the prop to disable it.
<DetailRow
label={t.linkedAccount}
sublabel={
connectedAccount?.user_identifier?.email ??
device.connected_account_id
}
/>
I think this can be valuable for all device types. This section shows the device id and connected account info
@dawnho This is now available in version 2.16.0. There are two options:
disableConnectedAccountInformation
and disableResourceIds
.seam-device-details-device-info { display:none; }
For End users who don't own the device, we don't want to show them the account email address, and device ID.
To-dos:
disableConnectedAccountInformation
to<DeviceDetails />
and<DeviceTable />
componentsThis section is what we want to hide: