From 4c72129ea748373c5c55544b9825d39a0356c04e Mon Sep 17 00:00:00 2001
From: ehsan shariati
Date: Mon, 31 Aug 2026 11:45:06 -0400
Subject: [PATCH] feat(web): one copy button, named for what it is used for
The bare CID had a copy button but nothing ever asks for the hash on its own, so it is now display-only. The remaining button copies the same /ipfs/ string it always did, but says 'Copy link value for Cloudflare' rather than naming a spec ('DNSLink') the reader has no reason to know.
Guide updated to match in all three places that named the old labels.
Co-Authored-By: Claude Opus 5 (1M context)
Claude-Session: https://claude.ai/code/session_01G3971DnvQ8oVL3GAha4BRv
---
.../screens/web_website_detail_screen.dart | 23 +++++++------------
site/domain/index.html | 7 +++---
2 files changed, 12 insertions(+), 18 deletions(-)
diff --git a/lib/web/screens/web_website_detail_screen.dart b/lib/web/screens/web_website_detail_screen.dart
index 84c822c..f256b01 100644
--- a/lib/web/screens/web_website_detail_screen.dart
+++ b/lib/web/screens/web_website_detail_screen.dart
@@ -838,21 +838,14 @@ class _WebWebsiteDetailScreenState extends State {
style: const TextStyle(fontFamily: 'monospace', fontSize: 12),
),
const SizedBox(height: 8),
- Wrap(
- spacing: 8,
- runSpacing: 8,
- children: [
- OutlinedButton.icon(
- icon: const Icon(LucideIcons.copy, size: 14),
- label: const Text('Copy IPFS hash'),
- onPressed: () => _copyValue(cid, 'IPFS hash'),
- ),
- OutlinedButton.icon(
- icon: const Icon(LucideIcons.copy, size: 14),
- label: const Text('Copy DNSLink value'),
- onPressed: () => _copyValue('/ipfs/$cid', 'DNSLink value'),
- ),
- ],
+ // Only the `/ipfs/` form is copyable: that is the string
+ // Cloudflare's DNSLink field wants. The bare hash above is shown
+ // for reference, not for pasting anywhere.
+ OutlinedButton.icon(
+ icon: const Icon(LucideIcons.copy, size: 14),
+ label: const Text('Copy link value for Cloudflare'),
+ onPressed: () =>
+ _copyValue('/ipfs/$cid', 'Cloudflare link value'),
),
],
],
diff --git a/site/domain/index.html b/site/domain/index.html
index 9b80895..44b4058 100644
--- a/site/domain/index.html
+++ b/site/domain/index.html
@@ -205,12 +205,13 @@
Use your own domain
1Copy your website address
Open your website in FxFiles on the web, and find the Use your own domain box under
- the shareable link. Tap Copy DNSLink value — that copies a line that looks like this:
+ the shareable link. Tap Copy link value for Cloudflare — that copies a line that
+ looks like this: