Skip to content

fix(desktop): emit singular "mention" feed category to match frontend contract - #2301

Closed
Bartok9 wants to merge 1 commit into
block:mainfrom
Bartok9:bartok9/feed-category-mention-singular
Closed

fix(desktop): emit singular "mention" feed category to match frontend contract#2301
Bartok9 wants to merge 1 commit into
block:mainfrom
Bartok9:bartok9/feed-category-mention-singular

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Refs #2106

Native get_feed now emits feed category mention (singular) to match FeedItemCategory and frontend comparisons so mention toasts/inbox labeling classify correctly. Regression test on emitted category.

@Bartok9
Bartok9 requested a review from a team as a code owner July 21, 2026 22:07
@Bartok9
Bartok9 force-pushed the bartok9/feed-category-mention-singular branch 5 times, most recently from ae73396 to a04aeaf Compare July 29, 2026 13:18
@Bartok9
Bartok9 force-pushed the bartok9/feed-category-mention-singular branch 7 times, most recently from 0560e65 to 0ffbb7f Compare August 5, 2026 13:19
@Bartok9
Bartok9 force-pushed the bartok9/feed-category-mention-singular branch 4 times, most recently from 2666b74 to f372981 Compare August 14, 2026 13:27
@Bartok9
Bartok9 force-pushed the bartok9/feed-category-mention-singular branch 5 times, most recently from 86d9996 to 896448d Compare August 24, 2026 13:18
… contract

Native `get_feed` emitted feed items with `category: "mentions"` (plural),
but the `FeedItemCategory` union (shared/api/types.ts) and every frontend
comparison (feed.ts, inbox.ts) use the singular `"mention"` — as does the
e2e bridge. The mismatch made native mention items fall through to the
needs-action fallback, so a mention toasted as "Needs Action in #channel"
instead of "X mentioned you in #channel" (observed live in block#2105), and
inbox labeling/priority misclassified them.

Emit the singular `"mention"` to match the declared contract. The `types`
request-filter keyword ("mentions") is a separate API surface and is left
unchanged. Adds a regression test asserting the emitted category.

Refs block#2106

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
(cherry picked from commit f372981)
Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
(cherry picked from commit 0828992)
Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
(cherry picked from commit d78a5b1)
Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>
@Bartok9
Bartok9 force-pushed the bartok9/feed-category-mention-singular branch from 896448d to 5fc04f3 Compare August 24, 2026 14:35
@Bartok9

Bartok9 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by upstream main: db5617d fix(desktop): emit singular mention feed category so alerts route correctly (#6665). Same singular-category wire fix + stronger enum serialization / feed_item_from_event tests already on main. Closing to clear CONFLICTING; no remaining unique Bartok9 delta.

@Bartok9 Bartok9 closed this Aug 24, 2026
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