Repository navigation
feat(timeline): For you counts the items you open - #665
Merged
Merged
Conversation
Following a line to what it is about, or opening an item by its address,
sends POST /activities/{id}/open; each open adds a small weight (up to four
per item) to the person's own For you affinity. Counts live in event_open,
removed with the person and tidied with the marks when the activity is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ln25ykE6uBDqx21WBU94SX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: For you learned only from reactions, comments and important or hidden marks, so someone who reads a lot but rarely reacts got a For you order no different from Latest.
After: opening an item counts too. Following a timeline line to what it is about (the title, the Open button, an item inside a group) or opening an item by its address (
/timeline?item=) sendsPOST /api/v1/activities/{id}/open, and each open adds +½ (up to four opens of one item) to the person's own affinity for its source, kind and entities.How:
for_you.openedupsertsevent_open:<hash of account and activity>with a count;for_you.signalsreads the most recent 200 as one more signal. The rows go when the person is removed and with the hourly tidy (#662) when the activity is gone. The page calls it fire-and-forget through auseOpenedhook.Motivation and Context
A refine-later item of the activity stream design: "For you counts opens too, once the page reports them."
Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.changelog.d/(timeline-for-you-opens.md).Done questions (AGENTS.md)
test_opening_an_item_counts_for_you_a_little_each_time_up_to_a_few; jest inthe address can name one item…; docs, database.md, requirements.md, changelog.d; client regenerated withmake openapi.for_you.signals, the event_marks tidy, the generated client.CI on the PR decides the merge.
Generated by Claude Code