From 0c2754d2d4cb1905d5e324f56fbc64e4afae526f Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Mon, 31 Aug 2026 01:06:06 +0200 Subject: refactor(ui): extract Explore, Login, Register and CreateGroup from app.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ExplorePage → explore-page.js (static import), LoginPage/RegisterPage/ FirstRunPage → auth-page.js (static import, LoginPage receives onLogin as a prop), CreateGroupPage/wizard → create-group-page.js (lazy-loaded via dynamic import(), same pattern as AdminPage/NodePage). app.js goes from 1803 to 914 lines. webapp.py _ASSETS extended with the three new files and the previously missing extracted pages. Test fixtures updated to follow the moved components. Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-hub/tests/test_hub_address_seam.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/meshbay-hub/tests/test_hub_address_seam.py') diff --git a/packages/meshbay-hub/tests/test_hub_address_seam.py b/packages/meshbay-hub/tests/test_hub_address_seam.py index 392a21c..ccdac7d 100644 --- a/packages/meshbay-hub/tests/test_hub_address_seam.py +++ b/packages/meshbay-hub/tests/test_hub_address_seam.py @@ -23,7 +23,8 @@ STATIC = Path(__file__).resolve().parents[1] / "src" / "meshbay_hub" / "static" # Files that issue hub requests. `app.js` gets its base from `platform.hubBase()` # and the rest reach the adapter through the global it publishes. -CALLERS = ["app.js", "keyderive.js", "transport.js", "crypto.js"] +CALLERS = ["app.js", "keyderive.js", "transport.js", "crypto.js", + "auth-page.js", "explore-page.js", "create-group-page.js"] def _source(name: str) -> str: -- cgit v1.2.3