mattermost-mobile-upstream/types
cursor[bot] 0869dc8eab
[MM-62038] Fix urgent mention badge colors (#10119)
* [MM-62038] Fix urgent mention badge colors

Persist urgent mention counts and use them to render channel list badges with the urgent color treatment.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address CodeRabbit feedback on urgent mention count persistence

Skip unread updates when fetchMyChannel fails so persisted urgent
counts are not cleared, and preserve urgentMentionCount on partial
MyChannel transformer updates.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Use should... names for urgent mention transformer tests

CodeRabbit requested the parameterized transformMyChannelRecord cases
start with should, matching the repo test-name guideline.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address PR feedback: 1 answered, 1 resolved, 0 declined

Persist urgent mention counts on the native killed-app push path
so in-app channel list badges stay urgent-colored after a cold start.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Persist computed is_unread on iOS MyChannel update path

CodeRabbit flagged isUnreadCol <- isUnreadCol, which is a no-op.
Write the computed isUnread value so native push updates store
recalculated unread state, matching the insert path and Android.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address PR feedback: 2 answered, 1 resolved, 0 declined

Use the active theme's buttonColor for urgent mention badge text
instead of hardcoded Denim.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address PR feedback: 1 answered, 1 resolved, 0 declined

Treat omitted urgent_mention_count as 0 in transformMyChannelRecord.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

---------

Co-authored-by: Matty Code <mattycode@mattycode-3.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-09-14 14:03:53 -04:00
..
api [MM-62038] Fix urgent mention badge colors (#10119) 2026-09-14 14:03:53 -04:00
components Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
credentials MM-65085: Support Pre Shared Password on server connect (#9082) 2025-09-01 11:24:15 +02:00
crt Gekidou CRT - Global threads screen (#6140) 2022-04-28 09:01:36 -04:00
database [MM-62038] Fix urgent mention badge colors (#10119) 2026-09-14 14:03:53 -04:00
global Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
launch Easy Login (#9261) 2025-11-20 12:38:06 +01:00
modules replace react-native-incall-manager with @mattermost/calls-native for audio management (#9973) 2026-08-06 07:38:54 +08:00
screens Report a problem not redirect to default email application (#9703) 2026-05-14 09:10:39 -04:00
security_manager feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
utils Refactor Open Profile (#8746) 2025-05-13 17:07:13 +02:00
vendor Mobile-side for MM-65084 (#9115) 2025-09-29 14:29:37 -07:00