mattermost-mobile/ios
Felipe Martin 714c3dc769
feat: AI rewrite (#9280)
* feat: ai rewrite

* feat: allow crating content apart from editing it

* feat: feature parity with webapp

* feat: feature parity with webapp

* chore: fixed padding

* map ux to webapp

* refactored ai rewrite logic to separate package

* chore: tests and lint

* Update app/products/ai/rewrite/screens/options/options.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* rewrite post editor animation

* i18n

* ui feedback, centered icon and less top padding

* chore: lint

* Consolidate @ai product into @agents

Move all rewrite functionality from app/products/ai/ into
app/products/agents/ to unify under a single namespace.

- Add rewrite types, store, hooks, components, and screens to agents
- Merge AI client methods into agents client
- Update screen constants (AI_* -> AGENTS_*)
- Update all consumer imports
- Remove AI state from EphemeralStore
- Remove @ai path alias from config
- Delete app/products/ai/ directory

* refactor: load screens from product package

* refactor: move detection logic to the agents pacakge

* refactor: remove "backwards compatibility"

* refactor: move hooks to proper package

* refactor: styles

* refactor: remove unneedd position attribute

* refactor: remove unneeded cancel animation calls

* refactor: "backwards compat"

* refactor: optimize renderContent with useCallback for performance

* refactor: rename variable to avoid confusion

* refactor: update handleRewrite to use async/await for better error handling

* refactor: simplify handleRewrite by always dismissing keyboard

* refactor: use hook, always all keyboard.dismiss

* chore: enhance AgentSelector component with FlatList support

* feat: add rewriteMessage function for AI message rewriting and integrate it into useRewrite hook

* refactor: simplify message length calculation in useHandleSendMessage hook

* refactor: consolidate agent screen constants and integrate with existing screens

* fix: update dependency array in useMemo for isUnrevealedPost to include post expiration metadata

* refactor: remove unused variable to clean up Typing component

* refactor: simplify logic for atDisabled and slashDisabled flags in QuickActions component

* feat: add AIRewriteAction component for AI message rewriting functionality

* revert: thread.ts changes manually

* refactor: integrate useSafeAreaInsets

* refactor: cleanup unused methods

* chore: add comment to clarify casting

* refactor: use_agents

* chore: lint and test

* fix: trim

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-16 16:48:57 +01:00
..
ErrorReporting fix(MM-63460): HTTPClientError spam (#8693) 2025-03-20 11:15:05 -06:00
Fonts Barebones code for v2 2020-11-17 14:20:58 -03:00
Gekidou feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
Mattermost Bump app build number to 720 (#9511) 2026-02-13 11:41:14 +02:00
Mattermost.xcodeproj Bump app build number to 720 (#9511) 2026-02-13 11:41:14 +02:00
Mattermost.xcworkspace feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
MattermostShare Bump app build number to 720 (#9511) 2026-02-13 11:41:14 +02:00
MattermostTests Barebones code for v2 2020-11-17 14:20:58 -03:00
NotificationService Bump app build number to 720 (#9511) 2026-02-13 11:41:14 +02:00
SplashScreenResource [Gekidou] Update Splash Screen / App icons and Android snooze Push Notifications (#5658) 2021-08-31 14:58:09 -04:00
.xcode.env Gekidou upgrade RN to 0.69.3 and dependencies (#6537) 2022-08-08 09:06:20 -04:00
bundleReactNative.sh Added support for self-hosted Sentry (#7230) 2023-04-19 14:58:59 -04:00
GekidouWrapper.swift feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
Podfile fix(): update INTUNE_ENABLED within Github CI & Podfile (#9453) 2026-01-21 16:50:35 -07:00
Podfile.lock feat: AI rewrite (#9280) 2026-02-16 16:48:57 +01:00
PrivacyInfo.xcprivacy feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
uploadDebugSymbols.sh Added support for self-hosted Sentry (#7230) 2023-04-19 14:58:59 -04:00