mattermost-mobile/app/components/post_list
Christopher Speller 0c675ec2db
Agents posts on mobile (#9317)
* Agents streaming

* Fix bug and lint

* Add reasoning summaries to mobile agents

* Add tool call approval UI for mobile agents

* Add citations and annotations support for mobile agents

Implements Phase 4 from the agents mobile plan:
- WebSocket event handling for annotations control signal
- CitationsList component displaying sources below agent responses
- Collapsible sources section with source count
- Each citation shows title, domain, and opens URL on tap
- Citations persisted in post.props.annotations
- Touch-optimized UI with 44pt minimum tap targets

* Add stop and regenerate controls for mobile agents

* Add tests

* Fix tool approval buttons not updating after accept/reject

- Remove optimistic WebSocket event approach that didn't work
- Clear component streaming state on ENDED event to force switch to persisted data
- Remove delays in streaming store cleanup (500ms and 100ms)
- POST_EDITED event now properly updates UI for both accept and reject
- Remove debug console.log statements
- Fix ESLint issues (unused vars, nested callbacks, nested ternary)

* Refactor agents code: remove unused client mixin, fix bugs, and simplify logic

* Fixes

* Add CLAUDE.md

* Review feedback.

* Review feedback inline functions

* Learnings

* Address review feedback: StyleSheet.create, parent mount checks, utils

* Move to observables

* Last style fix

* Style tweaks
2025-12-09 03:56:12 -08:00
..
combined_user_activity Improve markdown code (#9164) 2025-11-04 10:05:56 +01:00
date_separator Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
more_messages Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
new_message_line Upgrade Dependencies (#7299) 2023-04-21 12:16:54 -04:00
post Agents posts on mobile (#9317) 2025-12-09 03:56:12 -08:00
thread_overview Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
config.ts Remove unused INDICATOR_BAR_HEIGHT (#6519) 2022-07-29 08:14:46 -04:00
index.ts remove usages of isTimeZoneEnabled (#7769) 2024-01-30 13:22:55 +01:00
post_list.test.tsx Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
post_list.tsx Refactor Open Profile (#8746) 2025-05-13 17:07:13 +02:00
refresh_control.tsx Upgrade Dependencies (#7299) 2023-04-21 12:16:54 -04:00
scroll_to_end_view.tsx Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30