Adds a Competition column to My Orders from station heat #76
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/orders-heat-column"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The region sweep logs each time a station's stored best price is beaten (schema 118: market_best_beats) and restates the trailing 12 hour count per station, item and side (market_station_heat) inside the same sweep transaction, so the data is computed at ingest and shared by any surface that wants it.
My Orders gains a Competition column showing that count in heat words: Quiet (0), Warm (1-2), Hot (3-5), Very hot (6+), with the exact count in the cell's title ("Best price beaten N times in the last 12 hours"). The page reads the counts for its orders' stations in one bounded read. Heat is a property of the item at the station, so a just placed order shows its market's heat; a pair with no stored row reads Quiet, and counts build up over the first 12 hours after deploy.
Tests: the sweep test pins one beat per side when the bests move and none when the book is unchanged; the economy pages test pins the rendered Hot cell and its title; schema tests pin step 118 applying cleanly and the time columns as timestamptz.
b94233ae8a9d3c104fcf