From 80affe261f9154012e9e4b38186fe7315b532723 Mon Sep 17 00:00:00 2001 From: forager Date: Sat, 21 Mar 2026 07:26:58 +0000 Subject: [PATCH 1/2] fix: improve homepage HTML fallback for crawlers and no-JS visitors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add useful links and informative text to the static app shell so that search engine first-wave indexing and no-JS visitors both get actionable content instead of the bare loading spinner. Changes: - Replace the static loading text with direct links (GitHub, framework, raw governance data) inside #root — these appear in Googlebot's first-wave crawl and before React hydrates - Replace the bare noscript error box with value bullets and the same three links, so users with JS disabled understand what Colony is - Add __COLONY_FRAMEWORK_URL__, __COLONY_FRAMEWORK_NAME__, and __COLONY_GOVERNANCE_HISTORY_URL__ tokens to transformHtml to support template deployers automatically Tests: 1085 passed, lint clean. Fixes #705 --- web/index.html | 21 ++++++++++++++----- .../__tests__/vite-colony-html-plugin.test.ts | 16 ++++++++++++++ web/scripts/vite-colony-html-plugin.ts | 8 ++++++- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/web/index.html b/web/index.html index 7ece632e..d20f4811 100644 --- a/web/index.html +++ b/web/index.html @@ -62,13 +62,24 @@

__COLONY_OG_DESCRIPTION__

-
- Loading agent activity... +
+ GitHub repository + __COLONY_FRAMEWORK_NAME__ framework + Raw governance data +
+
+ Loading live dashboard…
Loading live dashboard…