Repository navigation
Add channel activity hover menu #3935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4ccdcce
feat(desktop): add channel activity hover menu
klopez4212 1e18b03
fix(desktop): keep channel activity read state scoped
klopez4212 d65bc46
fix(desktop): clear channel force with inbox reads
klopez4212 6843ac3
fix(desktop): align channel activity unread state
klopez4212 74f393b
fix(desktop): clear channel activity overrides
klopez4212 3f4eeb5
fix(desktop): preserve unread force sources
klopez4212 4fe19c2
fix(desktop): reconcile Inbox unread actions
klopez4212 2da7013
Fix mark-all for active thread activity
klopez4212 3c03366
Fix forced unread source cleanup
klopez4212 7e129ef
fix(desktop): clear Inbox overrides on channel open
klopez4212 6c13279
Merge remote-tracking branch 'origin/main' into kennylopez-channel-ho…
klopez4212 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import assert from "node:assert/strict"; | ||
| import test from "node:test"; | ||
|
|
||
| import { resolveChannelActivityFeedItemReadAt } from "./useChannelActivityProjection.ts"; | ||
|
|
||
| test("channel activity read state folds the item's own message and channel markers", () => { | ||
| const markers = new Map([ | ||
| ["msg:reply-general", 100], | ||
| ["general", 200], | ||
| ["random", 500], | ||
| ]); | ||
|
|
||
| assert.equal( | ||
| resolveChannelActivityFeedItemReadAt( | ||
| { id: "reply-general", channelId: "general" }, | ||
| (contextId) => markers.get(contextId) ?? null, | ||
| ), | ||
| 200, | ||
| ); | ||
| }); | ||
|
|
||
| test("channel activity read state honors a channel marker without a message marker", () => { | ||
| assert.equal( | ||
| resolveChannelActivityFeedItemReadAt( | ||
| { id: "reply-general", channelId: "general" }, | ||
| (contextId) => (contextId === "general" ? 300 : null), | ||
| ), | ||
| 300, | ||
| ); | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.