Closed Bug 2063144 Opened 1 month ago Closed 1 month ago

Stocks Widget: update feed to fetch data for individual stock tickers

Categories

(Firefox :: New Tab Page, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: nina-py, Assigned: nina-py)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For its default read-only state, the Stocks widget only needed the default-ETF feed. To render a user's watchlist (and to support the upcoming ticker search), the feed also needs to look up individual saved symbols.

Add a watchlist data path to the feed: fetch ticker data for the symbols in widgets.stocks.watchlist on init, when the pref changes, and on the periodic refresh, cached separately from the default snapshot, so saved symbols render and persist across reloads.

Prerequisite for the ticker-search feature.

Blocks: 2063183

The Stocks feed only fetched the default ETF set, so a watchlist symbol
outside that set was written to the pref but never rendered. The feed now
looks up individual saved symbols and keeps them as a separate watchlist
dataset, fetched on init, when widgets.stocks.watchlist changes, and when the
cached data goes stale. The widget merges that dataset with the default
snapshot so saved symbols render and persist. Prerequisite for ticker search.

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: