Skip to content

feat: stock search identity and aggregation source management#106

Merged
363045841 merged 6 commits into
mainfrom
fix/stock-search-identity
Jul 24, 2026
Merged

feat: stock search identity and aggregation source management#106
363045841 merged 6 commits into
mainfrom
fix/stock-search-identity

Conversation

@363045841

Copy link
Copy Markdown
Owner

Summary

  • Add aggregation source management UI (enable/disable, host/port, online probe, localStorage)
  • Add search-bar source tabs to filter multi-source results
  • Stop guessing gotdx market/category from code/exchange; require search-provided params
  • Forward params.kind so index symbols route to GetIndexBars on tdx-api
  • Disambiguate same-code symbols (e.g. 000001) via exchange / kind / market / category meta

Related to #105

Test plan

  • Open aggregation source panel from search bar and chart settings
  • Toggle sources; verify search only hits enabled sources
  • Search 000001 and select 平安银行 vs 上证指数 with distinct params
  • Verify daily K-line loads for both stock and index via gotdx
  • Core/Vue unit tests: pnpm --filter @363045841yyt/klinechart-core test and package Vue tests

Route searches through registered fetcher capabilities and preserve source-specific market metadata through chart requests. Add debounced, cancellable Vue search for primary and comparison selectors.
Expose registered fetchers as aggregatable sources with enable toggles,
per-source host/port overrides, and online probes. Persist config in
localStorage and drive search routing from the enabled source list.

Share CollapsibleSection and ToggleSwitch with chart settings, and add
an aggregation entry under main chart settings.
Show Ant Design-style line tabs above symbol search so users can
filter local catalog and remote queries by enabled data source.
Stop guessing market/category from code or exchange. Pass params.kind to
tdx-api so index symbols use GetIndexBars. Show kind/market/category in
search list meta for disambiguation.
@363045841
363045841 merged commit cb3f85f into main Jul 24, 2026
8 checks passed
@363045841
363045841 deleted the fix/stock-search-identity branch July 24, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant