mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-06 03:16:07 -06:00
Implement comprehensive TLD validation that checks domain inputs against the IANA TLD list and RDAP registry to provide context-aware error messages and real-time UI warnings. Key changes: - Add tld-validation service that validates TLDs against IANA list and RDAP registry availability - Show warning icons in LookupInput for invalid TLDs (error) and valid TLDs without RDAP support (warning) with explanatory tooltips - Enhance error messages in getRegistryURL to differentiate between invalid TLDs, valid TLDs without RDAP, and malformed domains - Add NotFoundError class for better 404 handling with context-specific messages per target type (domain, IP, ASN, entity, TLD) - Make getRegistryURL async to support TLD validation in error path - Add comprehensive test coverage for TLD validation and error messages - Track TLD warning displays in telemetry This improves UX by catching common mistakes (typos, non-existent TLDs, reserved TLDs) before query execution and providing clear guidance.