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

@ -4,6 +4,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/tradarr/backend/internal/ai"
"github.com/tradarr/backend/internal/auth"
"github.com/tradarr/backend/internal/companycatalog"
"github.com/tradarr/backend/internal/config"
"github.com/tradarr/backend/internal/crypto"
"github.com/tradarr/backend/internal/generation"
@ -14,6 +15,7 @@ import (
)
type Handler struct {
companyCatalog CompanyCatalog
indexSearcher indices.IndexSearcher
generationUseCase generation.UseCase
repo *models.Repository
@ -33,14 +35,19 @@ func New(
pipeline *ai.Pipeline,
sched *scheduler.Scheduler,
) *Handler {
var catalog CompanyCatalog
if embedded, err := companycatalog.Default(); err == nil {
catalog = embedded
}
return &Handler{
repo: repo,
cfg: cfg,
enc: enc,
registry: registry,
pipeline: pipeline,
scheduler: sched,
reportManager: ai.NewReportManager(),
companyCatalog: catalog,
repo: repo,
cfg: cfg,
enc: enc,
registry: registry,
pipeline: pipeline,
scheduler: sched,
reportManager: ai.NewReportManager(),
}
}