mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
Discovery records carry rich identification (service name, category, ports, cli access, paths) but until now they only rendered inside the Discovery sub-tab. Operators opening a workload drawer to look at memory or backups had no signal that Pulse already knows the LXC is "Homepage Dashboard" or the Docker container is "Proxmox Backup Server" — they had to switch tabs to see it. Add an "Identified Service" card to GuestDrawerOverview that shows the service name, category, port count, CLI access hint, and confidence percent. The card mirrors the existing System/Guest Info/Backup card shapes so it slots into the same flex grid. useGuestDrawerState passively loads the discovery record via getDiscovery (no scan triggered — manual scans, progress UI, and approval prompts stay owned by DiscoveryTab and useDiscoveryTabState). A new presentation helper, getDiscoveryIdentifiedSummary, packages the record into the display shape and returns null when the record has no meaningful identification — same gate as the Discovery tab's hasValidDiscovery, so both surfaces render or hide together. Contracts: amend frontend-primitives Completion Obligations to fence the new identified-service reducer to discoveryPresentation.ts, and amend performance-and-scalability Current State to require that out-of-tab discovery surfacing stay passive (no scans). Verification via discoveryPresentation.test.ts and GuestDrawer.test.tsx covers the populated/empty/null branches and the drawer card render. Workloads table row surfacing is the natural next step but blocked behind the parallel agent's in-progress WorkloadPanel/WorkloadsSurface/ useWorkloadsState changes; revisit after those land.