mattermost-mobile-upstream/app/utils/post
Nick Misasi f1e263ba90
[MM-66230] Add AI-generated sparkle indicator to post headers (#9835)
* Add AI-generated sparkle indicator to post headers for mobile/web parity.

Users on mobile could not tell when a post was AI-generated; this surfaces
the same sparkle marker as web using post props and keeps headers visible
for consecutive AI posts.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Make AI-generated indicator accessible to screen readers.

CodeRabbit flagged that accessibilityLabel alone is not announced on a
standard View; set accessible and accessibilityRole so VoiceOver/TalkBack
can surface the AI attribution label.

Co-authored-by: Cursor <cursoragent@cursor.com>

* ci: retrigger docs-impact-review workflow.

Prior runs failed due to Claude Code SDK initialization errors unrelated
to PR changes; retry to clear the flaky check.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Address review nits for AI-generated post indicator.

Compute isAiGenerated once and only check previousPost in areConsecutivePosts.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2026-07-14 19:31:02 +00:00
..
index.test.ts [MM-66230] Add AI-generated sparkle indicator to post headers (#9835) 2026-07-14 19:31:02 +00:00
index.ts [MM-66230] Add AI-generated sparkle indicator to post headers (#9835) 2026-07-14 19:31:02 +00:00