<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/eef15a00bf6748e3b28a9c6f5c13dd04&quot; frameborder=&quot;0&quot; width=&quot;1726&quot; height=&quot;1294&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1294</height><width>1726</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1294</thumbnail_height><thumbnail_width>1726</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/eef15a00bf6748e3b28a9c6f5c13dd04-494089c9227855a6.gif</thumbnail_url><duration>933.331</duration><title>Smart Home Security Dashboard, Routing and Permissions</title><description>This Loom explains how the author built a smart home security dashboard with login, role-based access, and dynamic filtering. They demonstrate the UI showing multiple cameras with offline and online statuses, local storage flags isAdminLogin and isLogin turning false on logout, and 404 handling that redirects back to login. The core implementation discussion focuses on using context in App.jsx to pass an imported products array into DashBot and render each item via ItemCardComponent, plus React Router with a layout route and authorization guarding dashboard access. They also cover the filter buttons logic for all, camera, sensor, and window categories, and describe a bug caused by a mistaken setIsAdminLogin versus isAdminLogin variable that led to “already authenticated” behavior without an error.</description></oembed>