Skip to content

Opt-in ranking scores: chip on thumbnail + Settings → Display toggle - #8

Merged
philoking merged 4 commits into
mainfrom
feat/score-dot-final-rank
Jun 25, 2026
Merged

philoking merged 4 commits into
mainfrom
feat/score-dot-final-rank

Conversation

@philoking

@philoking philoking commented Jun 25, 2026 •

Copy link
Copy Markdown
Owner

Adds an optional per-story ranking indicator (evolved from the dot in #5/#7).

Opt-in: off by default. Settings → Display has a new toggle, "Show ranking scores". When on, each story's thumbnail gets a score chip (top-right), and hovering it shows the breakdown popover.

The chip: the number is the personalized Score (effectiveScore — the value the feed sorts by), fully granular (no color bucketing). Hover → Base → Coverage (cluster) → For you (taste) → Source (×affinity) → Score.

Why it ended up here: a single 3-tier color dot couldn't describe a bottom-heavy score distribution (it collapsed to mostly grey), so it became a number; and since not everyone wants scores on their feed, it's gated behind a setting.

Implementation notes:

  • Preference stored in viewState so it syncs across devices; server DEFAULT_STATE.viewState gains showScores: false (the PUT whitelist would otherwise strip it).
  • scoreChip() returns nothing unless enabled; thumbnail wrapped in a non-clipping .thumb-frame so the chip/popover overlay the image. Chip sits opposite the top-left +N cluster badge.
  • New .toggle-row switch styling; removed the old source-line dot, .score-dot CSS, and scoreColor().

Deployed on this branch to nova for testing — do not merge until confirmed.

🤖 Generated with Claude Code

philoking and others added 2 commits June 25, 2026 14:33
The dot tiered on the raw Base score while the popover's headline "Score" is
the personalized effectiveScore (Base+boosts × source affinity), so the two
disagreed — a green dot could sit next to a low Score (e.g. an 8.5 story from a
source you've down-weighted, floored to 4.6), and an amber dot next to a high
one (a 7.5 story from a source you favor, lifted to 16+).

Tier the dot on effectiveScore so its color matches the Score line and the
page order. Existing 8/5.5 thresholds fit the live distribution well
(neutral-affinity stories still tier by their base).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 absolute color tiers can't describe a bottom-heavy effectiveScore
distribution (most of the feed clusters low), so the dot collapsed to mostly
grey. Move the indicator to a numeric chip overlaid top-right of the thumbnail:
the number is the personalized Score (fully granular), with a small tier dot for
an at-a-glance colour and the same hover breakdown (Base / Coverage / For you /
Source / Score).

Wrap the thumbnail in a non-clipping .thumb-frame so the chip and its popover
overlay the image (.thumb is overflow:hidden for the zoom). Chip sits opposite
the existing top-left +N cluster badge. Removed the source-line dot. Cards
without a score (saved Read Later hits) get no chip.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@philoking philoking changed the title Color the score dot by final rank, not raw base Score indicator: numeric chip on the thumbnail Jun 25, 2026
philoking and others added 2 commits June 25, 2026 14:47
The chip now shows just the Score number. Removed the now-unused tier dot,
its .score-dot CSS, and the scoreColor() helper that only fed it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Scores are off by default. A new Settings → Display tab adds a toggle that
turns on the thumbnail score chip and its hover breakdown. The preference is
stored in viewState (synced across devices), so the server whitelist gains a
showScores flag too; scoreChip() returns nothing unless it's enabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@philoking philoking changed the title Score indicator: numeric chip on the thumbnail Opt-in ranking scores: chip on thumbnail + Settings → Display toggle Jun 25, 2026
@philoking
philoking merged commit 67b40ab into main Jun 25, 2026
2 checks passed
@philoking
philoking deleted the feat/score-dot-final-rank branch June 25, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant