This commit is contained in:
ponzischeme89
2026-08-12 08:25:15 +12:00
parent e30962245e
commit 4b31946635
28 changed files with 439 additions and 130 deletions
+6
View File
@@ -403,6 +403,12 @@ func personalizeHomeRows(rows []recommend.Row, stats []store.RowStat) []recommen
if row.ID == "continue" {
score = 1_000
}
// This recovery shelf is deliberately surfaced on Home. It may contain only one
// title, so its impression sample is naturally small and must not let the generic
// engagement sorter bury it below discovery rows.
if row.ID == "for-you:pick-up" {
score = 900
}
ranked = append(ranked, rankedRow{row: row, position: position, score: score})
}
sort.SliceStable(ranked, func(i, j int) bool {