Commit a1313ba
committed
perf(calendar): serve hot releases from a single endpoint
Replaces the client-side hot releases assembly (a releases-calendar fetch
plus separate trending and anticipated fetches per media type, then an
in-browser intersect) with one request to the new
`/calendars/releases/hot` endpoint, which does the gating and merge
server-side and returns the feed already ordered by availability date.
The mapper now just discriminates the union response, coalesces episodes and
sorts. Drops the now-dead `sourceLimit` param from both callers and the
`HideRecommended` invalidations. Bumps @trakt/api to 0.4.22 for the new
contract.1 parent 6c5d2af commit a1313ba
7 files changed
Lines changed: 69 additions & 297 deletions
File tree
- projects/client
- src
- lib
- features/calendar/_internal
- requests/queries/calendars
- sections/lists/stores
- mocks/handlers
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
0 commit comments