Adding Dynamic Dropdowns for “Modelo” & “Lineup” in Device Detail & Fixing the “TVs sin uso” Card
Adding Dynamic Dropdowns for “Modelo” & “Lineup” in Device Detail & Fixing the “TVs sin uso” Card TL;DR: I refactored DeviceDetailSheet.tsx to replace static selects with memoized dropdowns limited to known values, and patched dashboard.service.ts to filter out public‑space rooms from the “TVs sin uso” metric. Both changes tighten the UI and improve data accuracy. The Problem The Device Detail…
The Device Detail screen originally displayed free-text inputs for Model and Lineup, allowing users to enter any combination of characters. This practice resulted in inconsistent data being collected, with entries such as "Model-X", "modelx", and "Model X" polluting analytics. To resolve this, I centralized the known values for Model and Lineup in a dedicated constants file, allowing the UI to enforce consistency.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.