feat(watchlist): add company identity catalog

Embed a pinned FinanceDatabase equity snapshot, add authenticated company search and identity-based follows, preserve legacy assets, and map selected Yahoo symbols for collection.

Refs #19

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 15:08:22 +01:00
parent 1123360914
commit d65222169a
50 changed files with 49897 additions and 193 deletions

View File

@ -168,7 +168,11 @@ func (u *useCase) Generate(ctx context.Context, userID string) (Result, error) {
if feed == nil {
err = fmt.Errorf("unavailable")
} else {
articles, err = feed.Scrape(ctx, append([]string(nil), symbols...))
sourceSymbols := symbols
if *source.SourceKey == models.SourceYahooFinance {
sourceSymbols = yahooSymbols(input.Assets)
}
articles, err = feed.Scrape(ctx, append([]string(nil), sourceSymbols...))
}
if err != nil {
stat.Status = "failed"