Repository navigation
Commit f372981
Bartok9
fix(desktop): emit singular "mention" feed category to match frontend 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 <[email protected]>1 parent df9e773 commit f372981
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
138 | | - | |
| 145 | + | |
139 | 146 | | |
140 | 147 | | |
141 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
0 commit comments