Skip to content

Commit c0e65b6

Browse files
ralyodioclaude
andcommitted
dashboard/dns: add Copy button for record host, not just value
Each DNS record row now has a Copy button next to both the host/name and the value, with distinct "Copied host/value" feedback, so users can paste each field into their registrar without hand-selecting. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8fa96e9 commit c0e65b6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

app/dashboard/[[...tab]]/page.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,15 @@ function DomainsPanel({ onError, onOk }: { onError: (m: string) => void; onOk: (
728728
<p className="sub" style={{ margin: "10px 0 6px" }}>Add these records at your registrar (all of them — the TXT rows verify ownership):</p>
729729
<ul className="list">
730730
{d.records.map((rec: any, i: number) => (
731-
<li key={i} style={{ alignItems: "center" }}>
732-
<span style={{ fontFamily: "var(--mono)", fontSize: 12.5 }}>
733-
<b>{rec.type}</b>{" "}<span className="muted">host</span> {rec.host}{" → "}{rec.value}{" "}
731+
<li key={i} style={{ alignItems: "center", gap: 8, flexWrap: "wrap" }}>
732+
<span style={{ fontFamily: "var(--mono)", fontSize: 12.5, display: "inline-flex", alignItems: "center", gap: 6, flexWrap: "wrap" }}>
733+
<b>{rec.type}</b>
734+
<span className="muted">host</span> {rec.host}
735+
<button className="btn2 ghost" style={{ padding: "2px 8px", fontSize: 11 }} onClick={() => copyText(rec.host).then((ok) => onOk(ok ? "Copied host. 🤘" : "Copy failed — select it."))}>Copy</button>
736+
<span className="muted">value</span> {rec.value}
737+
<button className="btn2 ghost" style={{ padding: "2px 8px", fontSize: 11 }} onClick={() => copyText(rec.value).then((ok) => onOk(ok ? "Copied value. 🤘" : "Copy failed — select it."))}>Copy</button>
734738
<span style={{ opacity: 0.6 }}>({rec.status})</span>
735739
</span>
736-
<button className="btn2 ghost" onClick={() => copyText(rec.value).then((ok) => onOk(ok ? "Copied. 🤘" : "Copy failed — select it."))}>Copy</button>
737740
</li>
738741
))}
739742
</ul>

0 commit comments

Comments
 (0)