feat: add nightly branch workflow

This commit is contained in:
GitHub Actions
2026-01-13 22:11:28 +00:00
parent d27c925ba5
commit 4adcd9eda1
187 changed files with 8897 additions and 1614 deletions

View File

@@ -19,10 +19,12 @@ Implemented frontend integration for Phase 4 (DNS Provider Auto-Detection), enab
**Purpose:** Provides typed API functions for DNS provider detection
**Key Functions:**
- `detectDNSProvider(domain: string)` - Detects DNS provider for a domain
- `getDetectionPatterns()` - Fetches built-in nameserver patterns
**TypeScript Types:**
- `DetectionResult` - Detection response with confidence levels
- `NameserverPattern` - Pattern matching rules
@@ -35,6 +37,7 @@ Implemented frontend integration for Phase 4 (DNS Provider Auto-Detection), enab
**Purpose:** Provides React hooks for DNS detection with caching
**Key Hooks:**
- `useDetectDNSProvider()` - Mutation hook for detection (caches 1 hour)
- `useCachedDetectionResult()` - Query hook for cached results
- `useDetectionPatterns()` - Query hook for patterns (caches 24 hours)
@@ -48,6 +51,7 @@ Implemented frontend integration for Phase 4 (DNS Provider Auto-Detection), enab
**Purpose:** Displays detection results with visual feedback
**Features:**
- Loading indicator during detection
- Confidence badges (high/medium/low/none)
- Action buttons for using suggested provider or manual selection
@@ -61,6 +65,7 @@ Implemented frontend integration for Phase 4 (DNS Provider Auto-Detection), enab
### 4. ProxyHostForm Integration (`frontend/src/components/ProxyHostForm.tsx`)
**Modifications:**
- Added auto-detection state and logic
- Implemented 500ms debounced detection on wildcard domain entry
- Auto-extracts base domain from wildcard (*.example.com → example.com)
@@ -69,6 +74,7 @@ Implemented frontend integration for Phase 4 (DNS Provider Auto-Detection), enab
- Integrated detection result display in form
**Key Logic:**
```typescript
// Triggers detection when wildcard domain detected
useEffect(() => {
@@ -86,6 +92,7 @@ useEffect(() => {
### 5. Translations (`frontend/src/locales/en/translation.json`)
**Added Keys:**
```json
{
"dns_detection": {
@@ -197,6 +204,7 @@ No errors or warnings observed during testing.
## Dependencies Added
No new dependencies required - all features built with existing libraries:
- `@tanstack/react-query` (existing)
- `react-i18next` (existing)
- `lucide-react` (existing)
@@ -245,6 +253,7 @@ No new dependencies required - all features built with existing libraries:
Phase 4 DNS Provider Auto-Detection frontend integration is **COMPLETE** and ready for deployment. All acceptance criteria met, test coverage exceeds requirements (100% vs 85% target), and no TypeScript errors.
**Next Steps:**
1. Deploy backend Phase 4 implementation (if not already deployed)
2. Deploy frontend changes
3. Test end-to-end integration