mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 01:08:56 +01:00
The pictures people post of a home lab show the router, the switch and the access points. Pulse cannot see those, and the only way to put one on the map is an availability check. Every check was drawn alike, as a pulse line in a Checks box under the apps. A monitored router looked like a monitored web page, and a gateway moved from the top of the map into that box the moment its owner added a check for it. ## What changes A check on a router, a switch or an access point is drawn as that device, with its own glyph and the device as its caption, in the Ways in box, where an unmonitored gateway sits. The map knows the device two ways: - **By address.** A check that probes a machine's default gateway is on the router, whatever it is called. - **By name.** Otherwise the check's name says so, the way a container's name says which app it is. Whole words only (`apt-cache` is no access point), and "gateway" is not one of them, because an API gateway is checked too. No setting stores the role, so the form, the API and the server are unchanged. A name that says none of these stays a plain check. With names hidden the tile keeps its device and its box and reads "Router 1", "Switch 1" or "AP 1". ## Checked in a browser Headless Chromium, final bytes, on a private server with one real host agent and four real checks made through the API. | | Result | | --- | --- | | Ways in, desktop 1440x900 | "AP living room" (access point), "Core switch" (switch), "Gateway" (router), each with its glyph and a green dot | | Checks box | Only "Status page" | | "Gateway" | Named for nothing a router is called; drawn as one because it probes the agent's default gateway | | Hide names | "AP 1", "Router 1", "Switch 1" in the same box | | Phone 390x844, touch | Same three tiles; a tap reads "Core switch / Check · Online · switch / Tap again to open" | 589 tests in the map, settings and standalone suites and `src/__tests__`, type-check, lint and audits pass. No page error in either context. Not checked: light theme, Firefox, Safari, a real phone, a real switch or access point (those two checks probed loopback addresses).