From e0cba74f8e718fb0a93a6765b184e3ee8ae6c554 Mon Sep 17 00:00:00 2001 From: MS-01-Codex <3647348c-0c07-48e0-8938-fb9280321c5f@agents.multica.local> Date: Tue, 18 Aug 2026 17:19:03 +0800 Subject: [PATCH] fix: reconnect mentor page into the project shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the mentor immersive rules in shared/shell.css that hid the module nav, header actions, market tape, overview strip and status bar while mentorView was active, which made the page look like an independent site. Mentor now stays inside the canonical 小白复盘 shell and owns its own "问师 + 数据日期" title header inside #mentorView (B-92 content intact). Also fix the shell's latent 1024px overflow: .main min-width 1080 now only applies at >=1280, and the overview strip scrolls internally instead of clipping its right side when it is wider than the content column. Update the contract and e2e baselines to assert the shell stays visible and usable on mentor, page switching leaves no residue, and add a dedicated shell-integration e2e test. Co-authored-by: multica-agent --- app/config/architecture-inventory.json | 12 +-- app/frontend/index.html | 4 +- app/frontend/pages.config.js | 4 +- app/frontend/pages/mentor/foundation.css | 43 +++++++++ app/frontend/pages/mentor/page.html | 8 +- app/frontend/pages/mentor/page.js | 2 +- app/frontend/shared/shell.css | 114 ++++------------------- app/tests/e2e/app-shell.spec.js | 45 +++++++-- app/tests/test_frontend_contract.py | 9 +- 9 files changed, 125 insertions(+), 116 deletions(-) diff --git a/app/config/architecture-inventory.json b/app/config/architecture-inventory.json index 5254157..1c83018 100644 --- a/app/config/architecture-inventory.json +++ b/app/config/architecture-inventory.json @@ -372,7 +372,7 @@ "css_layers": [ "/shared/tokens.css?v=20260818-2", "/shared/base.css?v=20260806-1", - "/shared/shell.css?v=20260818-2", + "/shared/shell.css?v=20260818-3", "/shared/auth.css?v=20260806-1", "/shared/components/controls.css?v=20260806-1", "/shared/components/navigation.css?v=20260806-1", @@ -390,7 +390,7 @@ "/pages/popularity/foundation.css?v=20260806-1", "/pages/dragon-tiger/foundation.css?v=20260806-1", "/pages/screener/foundation.css?v=20260806-2", - "/pages/mentor/foundation.css?v=20260818-2", + "/pages/mentor/foundation.css?v=20260818-3", "/pages/heaven/foundation.css?v=20260806-2", "/pages/review/foundation.css?v=20260806-1" ], @@ -451,8 +451,8 @@ }, { "path": "frontend/shared/shell.css", - "bytes": 54781, - "lines": 3348 + "bytes": 52879, + "lines": 3274 }, { "path": "backend/features/heaven/engine.py", @@ -606,8 +606,8 @@ }, { "path": "frontend/pages/mentor/page.html", - "bytes": 8117, - "lines": 110 + "bytes": 8357, + "lines": 116 }, { "path": "backend/data/providers/tushare_daily.py", diff --git a/app/frontend/index.html b/app/frontend/index.html index c289179..0d87ab4 100644 --- a/app/frontend/index.html +++ b/app/frontend/index.html @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - + diff --git a/app/frontend/pages.config.js b/app/frontend/pages.config.js index 9eeb2f8..40a1200 100644 --- a/app/frontend/pages.config.js +++ b/app/frontend/pages.config.js @@ -47,7 +47,7 @@ ["heaven", "/pages/heaven/page.html?v=20260803-1", ["heavenView"]], ["ladder", "/pages/ladder/page.html?v=20260803-1", ["ladderView"]], ["screener", "/pages/screener/page.html?v=20260804-1", ["screenerView", "screenerTrackingView"]], - ["mentor", "/pages/mentor/page.html?v=20260818-2", ["mentorView"]], + ["mentor", "/pages/mentor/page.html?v=20260818-3", ["mentorView"]], ["rotation", "/pages/rotation/page.html?v=20260803-1", ["rotationView"]], ["auction", "/pages/auction/page.html?v=20260803-1", ["auctionView"]], ["themes", "/pages/themes/page.html?v=20260803-1", ["themeLibraryView"]], @@ -81,7 +81,7 @@ "/pages/popularity/page.js?v=20260729-1", "/pages/dragon-tiger/page.js?v=20260806-1", "/pages/screener/page.js?v=20260806-1", - "/pages/mentor/page.js?v=20260818-2", + "/pages/mentor/page.js?v=20260818-3", "/pages/heaven/page.js?v=20260729-1", "/pages/review/page.js?v=20260729-1", "/shared/state.js?v=20260729-1", diff --git a/app/frontend/pages/mentor/foundation.css b/app/frontend/pages/mentor/foundation.css index f038e37..e626bb7 100644 --- a/app/frontend/pages/mentor/foundation.css +++ b/app/frontend/pages/mentor/foundation.css @@ -87,6 +87,45 @@ margin-bottom: var(--space-8); } +#mentorView .mentor-page-header { + flex: 0 0 56px; + height: 56px; + min-height: 56px; + display: flex; + align-items: center; + padding: 0 20px; + border-bottom: 1px solid var(--qp-border); + background: var(--qp-bg-header); +} + +#mentorView .mentor-page-title { + min-width: 0; + display: flex; + align-items: baseline; + gap: 12px; +} + +#mentorView .mentor-page-title h2 { + flex: 0 0 auto; + margin: 0; + color: var(--qp-text-1); + font-size: 18px; + font-weight: var(--font-weight-semibold); + line-height: 1.3; + letter-spacing: 0; +} + +#mentorView .mentor-page-title p { + min-width: 0; + margin: 0; + overflow: hidden; + color: var(--qp-text-3); + font-size: 13px; + line-height: 1.4; + text-overflow: ellipsis; + white-space: nowrap; +} + #mentorView .mentor-layout { min-width: 0; min-height: 0; @@ -1322,6 +1361,10 @@ border-bottom: 1px solid var(--qp-border); } + #mentorView .mentor-page-header { + display: none; + } + #mentorView .mentor-chat-panel { overflow: visible; } diff --git a/app/frontend/pages/mentor/page.html b/app/frontend/pages/mentor/page.html index d0e8d49..436bbf9 100644 --- a/app/frontend/pages/mentor/page.html +++ b/app/frontend/pages/mentor/page.html @@ -1,6 +1,12 @@ -
+
+
+
+

问师

+

与不同交易思维模型持续对话 · 数据日期 --

+
+