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:

/ipfs/bafybeiejegeowlh5warqnrjjmhbkf7hdjaiuhnpqajbktx6ta77urqmljy

- The FxFiles website screen. A 'Shareable link' box shows a fxfiles.top link with Copy and Open buttons. Below it, a 'Use your own domain' box shows the site's IPFS address in monospace with three buttons: Copy IPFS hash, Copy DNSLink value, and How to set it up. + The FxFiles website screen. A 'Shareable link' box shows a fxfiles.top link with Copy and Open buttons, and a line reading 'Want to use your own domain? Follow these instructions'. Below it, a 'Use your own domain' box shows the site's IPFS address in monospace with a 'Copy link value for Cloudflare' button.
The Use your own domain box, just below your shareable link.
@@ -472,7 +473,7 @@

4When you change your website

thirty seconds:

    -
  1. In FxFiles, press Copy DNSLink value again.
  2. +
  3. In FxFiles, press Copy link value for Cloudflare again.
  4. In Cloudflare, go to Web3 and press Edit on your gateway.
  5. Replace the DNSLink field with the new value and press Reapply.