Skip to content

fix: remove duplicate hero search box causing homepage confusion - #49

Merged
lnanology merged 1 commit into
mainfrom
fix/homepage-duplicate-search-boxes
Sep 9, 2026
Merged

fix: remove duplicate hero search box causing homepage confusion#49
lnanology merged 1 commit into
mainfrom
fix/homepage-duplicate-search-boxes

Conversation

@lnanology

Copy link
Copy Markdown
Owner

AJ relayed user feedback: "唔知打邊個框去搜" (don't know which box to search in). Root cause: the hero section stacked TWO nearly-identical input+button rows right on top of each other -- .search-bar (#heroTicker, "輸入股票代號 AAPL" -> ai-analysis.html) directly above .ask-ai-bar (#heroAskAi, "直接問AI" -> chat.html), both the same visual shape.

Fix: remove the .ask-ai-bar block from the hero across index.html + all 18 language copies (same duplicated-per-locale structure as the rest of this site). The free-text "ask AI anything" capability isn't lost -- the "免費體驗" demo section further down the page (#demoTicker) already handles both bare tickers AND free-text questions via the existing XFLSmartRouter (js/smart-router.js), so this removes the confusing duplicate rather than removing functionality.

Scoped to just the HTML block (verified via automated div-tag-balance check across all 19 files before/after) -- goAskAi()/heroAskAi CSS classes are left in place as inert dead code rather than touched, to keep this diff minimal and low-risk on a live marketing page.

Unrelated pre-existing test failure noted, not caused by this change: tests/step_defs/test_i18n_coverage.py flags 'profile_save_btn' missing in 43 languages in services/i18n.py (untouched by this commit).

AJ relayed user feedback: "唔知打邊個框去搜" (don't know which box to
search in). Root cause: the hero section stacked TWO nearly-identical
input+button rows right on top of each other -- .search-bar (#heroTicker,
"輸入股票代號 AAPL" -> ai-analysis.html) directly above .ask-ai-bar
(#heroAskAi, "直接問AI" -> chat.html), both the same visual shape.

Fix: remove the .ask-ai-bar block from the hero across index.html + all
18 language copies (same duplicated-per-locale structure as the rest of
this site). The free-text "ask AI anything" capability isn't lost --
the "免費體驗" demo section further down the page (#demoTicker) already
handles both bare tickers AND free-text questions via the existing
XFLSmartRouter (js/smart-router.js), so this removes the confusing
duplicate rather than removing functionality.

Scoped to just the HTML block (verified via automated div-tag-balance
check across all 19 files before/after) -- goAskAi()/heroAskAi CSS
classes are left in place as inert dead code rather than touched, to
keep this diff minimal and low-risk on a live marketing page.

Unrelated pre-existing test failure noted, not caused by this change:
tests/step_defs/test_i18n_coverage.py flags 'profile_save_btn' missing
in 43 languages in services/i18n.py (untouched by this commit).
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
finlab-ai Ready Ready Preview Sep 9, 2026 2:24am UTC

@lnanology
lnanology merged commit 2979f4e into main Sep 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant