Commit 6f01021
authored
feat: clout rank-down protection and watch threshold (#122)
* docs: add UnderperformingClips to architecture directory tree
* feat(db): add clout_tier_changed_at column to users table
Tracks when a user's effective clout tier last changed, enabling
rank-down protection with a 4-day cooldown.
* feat(clout): add rank-down protection and 75% watch threshold
- Rank-ups apply immediately, rank-downs require 4-day stability
- Only clips watched by ≥75% of group members are eligible
- Remove 48h maturity timer (watch threshold replaces it)
- Add getEffectiveTier() for rank-down cooldown logic
* feat(clout): wire effective tier into API and share pacing
Pass stored tier history through getCloutScore for rank-down
protection. Update cloutTierChangedAt on actual tier changes.
Remove underperforming clips from API response.
* refactor(ui): remove underperforming clips section
With rank-down protection in place, showing clips that are
"dragging your rank down" is misleading. Remove the component
and all references from CloutTipsView and CloutChangeModal.
* docs: update clout docs for rank protection and watch threshold
- Document clout_tier_changed_at column and 4-day rank-down cooldown
- Update clout algorithm description (75% watch threshold, no 48h timer)
- Remove underperforming clips from API response docs
- Remove UnderperformingClips from architecture directory tree1 parent f3678c4 commit 6f01021
13 files changed
Lines changed: 1672 additions & 246 deletions
File tree
- docs
- src
- lib
- components
- server
- db
- migrations
- meta
- routes/api
- clips
- clout
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | | - | |
| 276 | + | |
278 | 277 | | |
279 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | | - | |
| 256 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
38 | 30 | | |
39 | | - | |
40 | 31 | | |
41 | 32 | | |
42 | 33 | | |
| |||
175 | 166 | | |
176 | 167 | | |
177 | 168 | | |
178 | | - | |
179 | 169 | | |
180 | 170 | | |
181 | 171 | | |
| |||
318 | 308 | | |
319 | 309 | | |
320 | 310 | | |
321 | | - | |
322 | 311 | | |
323 | 312 | | |
324 | | - | |
325 | 313 | | |
326 | 314 | | |
327 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
| |||
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
58 | | - | |
59 | 50 | | |
60 | | - | |
61 | | - | |
| 51 | + | |
62 | 52 | | |
63 | 53 | | |
64 | 54 | | |
65 | | - | |
66 | 55 | | |
67 | 56 | | |
68 | | - | |
69 | 57 | | |
70 | 58 | | |
71 | 59 | | |
| |||
191 | 179 | | |
192 | 180 | | |
193 | 181 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 182 | | |
199 | 183 | | |
200 | 184 | | |
| |||
This file was deleted.
0 commit comments