Implement fiscal-style research MVP flows
Some checks failed
PR Checks / typecheck-and-build (push) Has been cancelled

This commit is contained in:
2026-03-07 09:51:18 -05:00
parent f69e5b671b
commit 52136271d3
26 changed files with 2719 additions and 243 deletions

View File

@@ -10,6 +10,7 @@ import {
listFilings,
listHoldings,
listRecentTasks,
listResearchJournal,
listWatchlist
} from '@/lib/api';
import { queryKeys } from '@/lib/query/keys';
@@ -103,6 +104,16 @@ export function watchlistQueryOptions() {
});
}
export function researchJournalQueryOptions(ticker: string) {
const normalizedTicker = ticker.trim().toUpperCase();
return queryOptions({
queryKey: queryKeys.researchJournal(normalizedTicker),
queryFn: () => listResearchJournal(normalizedTicker),
staleTime: 15_000
});
}
export function holdingsQueryOptions() {
return queryOptions({
queryKey: queryKeys.holdings(),