Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
1. TLD Matrix fix: - Pass original_is_taken flag to run_tld_matrix() - If main domain check shows taken, force same TLD to show as taken - Fixes incorrect "available" display for owned domains 2. Portfolio table: - Use minmax() for flexible column widths - Smaller gaps and padding for compact layout - Smaller action buttons (w-8 h-8) - Shorter column labels (Bought, Exp.)
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
from __future__ import annotations
|
|
|
|
from app.schemas.analyze import AnalyzeItem
|
|
from app.services.analyze.base import AnalyzerContribution, AnalyzeContext
|
|
from app.services.analyze.tld_matrix import run_tld_matrix
|
|
|
|
|
|
class TldMatrixAnalyzer:
|
|
key = "tld_matrix"
|
|
ttl_seconds = 60 * 30 # 30m (availability can change)
|
|
|
|
async def analyze(self, ctx: AnalyzeContext) -> list[AnalyzerContribution]:
|
|
# If main domain check says it's taken, pass that info to TLD matrix
|
|
# This ensures the original TLD shows correctly as "taken" even if
|
|
# DNS-based checks fail (e.g., domain registered but no DNS records)
|
|
original_is_taken = ctx.check and not ctx.check.is_available
|
|
|
|
rows = await run_tld_matrix(ctx.domain, original_is_taken=original_is_taken)
|
|
item = AnalyzeItem(
|
|
key="tld_matrix",
|
|
label="TLD Matrix",
|
|
value=[row.__dict__ for row in rows],
|
|
status="info",
|
|
source="dns",
|
|
details={"tlds": [r.tld for r in rows]},
|
|
)
|
|
return [AnalyzerContribution(quadrant="market", items=[item])]
|
|
|