From baefcde668b70aeb9df5f2b9f7b9d124f5b07168 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Tue, 1 Sep 2026 10:54:50 -0400 Subject: [PATCH] =?UTF-8?q?fix(web):=20retire=20the=20stale=20homelab-era?= =?UTF-8?q?=20copy=20=E2=80=94=20neutral,=20accurate=20defaults=20on=20eve?= =?UTF-8?q?ry=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed: index.html meta description, empty-state sub and composer placeholder (A1); app/config.py default suggestion chips → the four neutral A2 defaults (BOR_SUGGESTIONS override unchanged); sources.html KB page-sub → the current source model (git repos + local dirs + uploaded archives, Sync pulls/imports); git-sources.html example URL → your-repo.git (A3); all 9 footers → neutral default in span.footer-text (the phase-62 hook); E2E/unit conftests force the code defaults so a local .env cannot leak corpus copy into tests; new unit text pins + dedicated E2E suite. Task 02 verification read-through — no change needed: - sources.html sync result/error copy (matches the real sync behavior) - tuning.html page-sub (accurate as written) - history.html page-sub (accurate as written) - doc-edit.html page-sub (accurate as written) - git-sources.html page-sub (accurate as written) - #sources-gate anonymous copy (accurate as written) --- app/config.py | 8 +- frontend/doc-edit.html | 2 +- frontend/document.html | 2 +- frontend/git-sources.html | 4 +- frontend/history.html | 2 +- frontend/index.html | 8 +- frontend/login.html | 2 +- frontend/shared.html | 2 +- frontend/sources.html | 8 +- frontend/tuning.html | 2 +- tests/conftest.py | 15 +++ tests/e2e/conftest.py | 13 +++ tests/e2e/test_response_to_docs.py | 5 + tests/e2e/test_stale_ui_copy.py | 117 ++++++++++++++++++++ tests/unit/test_stale_ui_copy.py | 166 +++++++++++++++++++++++++++++ tests/unit/test_sync_button.py | 11 +- 16 files changed, 344 insertions(+), 23 deletions(-) create mode 100644 tests/e2e/test_stale_ui_copy.py create mode 100644 tests/unit/test_stale_ui_copy.py diff --git a/app/config.py b/app/config.py index ef245f6..06fddf5 100644 --- a/app/config.py +++ b/app/config.py @@ -263,10 +263,10 @@ class Settings(BaseSettings): # Suggested questions (onboarding + empty state). suggestions: list[str] = [ - "How is my Kubernetes cluster set up?", - "What's my backup strategy?", - "How do I deploy a new service?", - "What's currently running in the homelab?", + "What documents are in the knowledge base?", + "Which source does each answer come from?", + "How do I add a new source?", + "Summarize the most recent document.", ] @property diff --git a/frontend/doc-edit.html b/frontend/doc-edit.html index 8773301..f1446fd 100644 --- a/frontend/doc-edit.html +++ b/frontend/doc-edit.html @@ -115,7 +115,7 @@ diff --git a/frontend/document.html b/frontend/document.html index a33edb5..6dd7fc0 100644 --- a/frontend/document.html +++ b/frontend/document.html @@ -147,7 +147,7 @@ diff --git a/frontend/git-sources.html b/frontend/git-sources.html index 62ee6b9..da92de0 100644 --- a/frontend/git-sources.html +++ b/frontend/git-sources.html @@ -172,7 +172,7 @@ type="text" maxlength="500" autocomplete="off" - placeholder="https://github.com/you/homelab.git" + placeholder="https://github.com/you/your-repo.git" required > @@ -240,7 +240,7 @@ diff --git a/frontend/history.html b/frontend/history.html index 7ca08ad..1ac45cd 100644 --- a/frontend/history.html +++ b/frontend/history.html @@ -170,7 +170,7 @@ diff --git a/frontend/index.html b/frontend/index.html index 254b2d4..19537e2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ - + Brain of Reese @@ -197,7 +197,7 @@

Hey! I'm Brain of Reese.

- I've read through the homelab and deployment notes — ask me anything, + I've read through your documents — ask me anything, and I'll point you at the exact doc. You've got this.

@@ -228,7 +228,7 @@ id="message-input" name="message" rows="1" - placeholder="Ask me about the homelab…" + placeholder="Ask me anything…" autocomplete="off" >

- Every *.md file indexed from ~/Homelab and - ~/Deployments. Press Sync sources to clone - the repos and re-import. + Every file indexed from your configured sources — git repositories, + local directories, and uploaded archives. Press Sync sources + to pull the latest and re-import.