Baby Thanos

Prompt

ROLE You are a senior Windows desktop application developer. Build a complete, working application from scratch. Deliver source code, an installer, and a portable ZIP. PRODUCT Name: Baby Thanos Type: Windows 10/11 x64 desktop app for network-migration checks. Purpose: Scan subnets for endpoint ping reachability, save baselines, compare before/after migration results, and open in-app SSH sessions. It also includes a built-in subnet calculator as a first-class module. This is a standalone product, separate from any other internal tool. TECH STACK - Windows 10/11 x64, .NET Framework 4.8+ - Modern desktop UI (WebView2-hosted UI or WPF) - Bundle an offline WebView2 installer with the release - All user data (baselines, device profiles, logs) stored in a documented local app-data folder; uninstall must NOT delete saved data without explicit confirmation CORE MODULES 1) Subnet Calculator - IPv4: from any IP + prefix, compute network address, broadcast address, first and last usable host, subnet mask, wildcard mask, total hosts, usable hosts, CIDR notation, and IP class (A-E) - IPv6: compute network prefix, compressed and expanded notation, host range, and address type (global / ULA / link-local) - Subnet splitting: given a base network and a target prefix or desired number of subnets, list all resulting subnets with ranges - VLSM helper: allocate variable-size subnets from a parent block - Validation: reject malformed IPs/prefixes with clear inline errors; handle edge cases /0, /31, /32, /128 correctly - Copy-to-clipboard on every result field - Integration: a "Use this subnet in a scan" button that pushes the computed network/CIDR directly into the Discovery scan screen; auto-suggest prefix as the user types an IP 2) Ping Reachability Scanning - Scan a user-specified subnet (CIDR or range) for endpoint ping reachability - Configurable timeout, retry count, and bounded concurrency - Per-endpoint results: reachable / unreachable / timeout, RTT, timestamp - Prominent UI note: a failed ping does NOT necessarily mean an endpoint is down (ICMP may be blocked) - Optional TCP-probe fallback on configurable ports to reduce false negatives 3) Baseline & Comparison - Save scan results as a named baseline - Compare baseline vs. a later scan: highlight newly reachable, newly unreachable, and unchanged endpoints - Persist all data across restarts 4) Screens / Navigation - Overview: dashboard with last-scan stats and quick actions - Subnet Calculator: the module above - Discovery: configure and run scans - Comparisons: baseline vs. current diff view - Device Library: manage device profiles (credential profiles, host-key fingerprints, preferred ports, session-log toggles) 5) Embedded SSH (no PuTTY / SecureCRT) - Open SSH sessions inside the app - Support device profiles, host-key verification (warn and refuse on mismatch), optional session logging, and device-fact collection QUALITY GATES (report pass/fail for each) - >= 75 automated service tests - >= 10 renderer checks - >= 5 authentication-dialog checks - Subnet calculator tests covering IPv4/IPv6 edge cases, subnet splitting, and invalid inputs - Manual validation: portable startup, installed UI launch, install/uninstall, saved-data preservation - Initial real SSH protocol smoke tests against a local test server LIMITATIONS (must appear in both the UI and the README) - Working evaluation build, NOT approved for a live migration - Real network-device compatibility and clean-laptop offline install are unverified - Application is unsigned - A failed ping does not necessarily mean an endpoint is down - Broader SSH compatibility checks are ongoing DELIVERABLES 1) Source repository with build instructions 2) Installer + portable ZIP in the release folder (including offline WebView2 installer) 3) README covering features, subnet-calculator usage, install steps, validation results, and limitations 4) Validation summary table (service tests / renderer checks / auth-dialog checks / manual checks / SSH smoke tests) with pass/fail counts ACCEPTANCE CRITERIA - Subnet calculator is correct for all required IPv4/IPv6 cases and integrates with the scan flow in one click - Scan -> baseline -> comparison works end to end and persists across restarts - Embedded SSH opens a session with host-key verification and optional logging - All validation gates pass and are documented - Limitations are clearly surfaced to the user Start by proposing the project structure and tech choices, then implement the subnet calculator and scanning engine first, followed by baselines/comparison, SSH, UI screens, packaging, and tests.

Drag to resize
Drag to resize
Drag to resize