mattermost-mobile-upstream/app/store
Mattermost Build f8a177ca48
Mm 70299 channel labels display phase 1 (#10113) (#10171)
* MM-70299 - display channel attributes in header, info and banner

* cover and expand channel attributes feature with UI and E2E tests

* Implement channel attributes lock and update related tests and API methods

* Enhance error logging and improve type definitions for channel attributes

* Handle error from setAccessControlGroupId in fetchAccessControlAttributeFields

* Refactor fetchAccessControlAttributeFields to include system ID handling and improve batch record persistence

* Address code review feedback: extract feature-flag constants, move DB-only helpers to query/local layers, refactor attribute chip styles, fix colour spelling, and add test coverage for value pruning and subtitle component

* Fix error handling in removeStoredFields function and delete obsolete end-to-end test file

* Add tests for removeStoredFields function and enhance property queries

* Fix removeStoredFields to recover group ID from classification anchor and clean all owned fields

* Fix batchRecords silently swallowing write errors in fetchAccessControlAttributeFields

* Remove unused visibility check for ChannelAttributeLabels in e2e tests

* Fix classification fetch cache and channel-attributes E2E lock contention

Do not stamp the classification banner cache when both access-control flags
are off, so turning a flag back on after a reload refetches fields.

Share the classification lock with the channel-attributes Detox suite and
stop unsetting ClassificationMarkings. Skip flag-on tests when the server
cannot enable ChannelAttributes.



* Scope access_control field prune to owned object types

handlePropertyFields(groupId) deletes every field in the group. The fetch
only returns system and channel fields, so same-group user/session rows
were removed on each refresh. Prune only system and channel fields, matching
removeStoredFields.



* fail channel attributes tests when feature enablement fails instead of silently reporting them as passed

* Compose all channel attribute values in banners with template resolution, mixed field support, and matching web colors

---------




(cherry picked from commit 54731fa6ac)

Co-authored-by: Pablo Vélez <pablovv2016@gmail.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
2026-09-18 08:10:30 +03:00
..
bottom_sheet_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
bottom_sheet_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
callback_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
callback_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
ephemeral_store.test.ts Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
ephemeral_store.ts Mm 70299 channel labels display phase 1 (#10113) (#10171) 2026-09-18 08:10:30 +03:00
fetching_thread_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
fetching_thread_store.ts [MM-47483] Activity Indicator while loading thread posts (#6865) 2022-12-17 01:15:22 +05:30
in_app_notification_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
in_app_notification_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
navigation_store.test.ts fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
navigation_store.ts fix: push notification navigation delay and stale in-app avatar (#9929) 2026-07-22 14:15:21 +02:00
review_app_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
review_app_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
settings_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
settings_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
share_feedback_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
share_feedback_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
snackbar_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
snackbar_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
team_load_store.test.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
team_load_store.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00