mattermost-mobile/app/utils
Rajat Dabade 84eded1bde
Mobile drafts (#8280)
* refactor: started with draft, done until new tabs for draft

* refactor: change the query and added the screen for draft

* added condition for fetching draft for channel delete or not

* refactor: added draft screen

* linter fixes

* Added draft post component

* added avatar and header display name for the draft post list

* added channel info component

* channel info completed

* proper naming

* added image file markdown acknowledgement support

* draft actions

* Fix the draft receiver in drafts

* separated send message handler

* Done with send drafts

* done with delete drafts

* change save to send draft

* handle lengthy message with show more button

* done with persistent message edit, send and delete drafts

* added alert for sending message

* added update at time for the drafts

* en.json extract fix

* Updated dependencies for useCallback

* refactor: added drafts list to animated list

* added swipeable component and delete conformation for drafts

* done with rendering of images in markdown for drafts

* en.json issue fixed

* fix en.json issue

* refactor: en.json fix

* addressed review comments

* updated image metadata handling code

* linter fixes

* added the empty draft screen

* linter fix

* style fix

* back button an android takes to the channel list page

* en.json fix

* draft actions theme compatible

* CSS fix for draft channel_info and avatar component

* removed the badge icon and change font style drafts

* fix send alert sender name for GMs

* updated snapshot

* added testId to the drafts components

* updated send draft test id

* clicking on draft takes to the channel

* Added toptip for draft tours

* intl extract

* Rebase to main and reverted local testing changes

* Added tooltip for drafts

* addressed review comments

* reset navigation when click on a draft in draft tabs

* fix the theme issue and navigation issue

* reverted back the draft click navigation changes

* observing draft when hitting back button

* removed the unwanted animiation

* updated regex for parsing markdown

* removed unnecessary checks and change folder name

* removed react memo and merge unwanted observes function

* removed unnecessary comments

* changed the name for observing and querying draft function

* removed memo from component level

* Text to FormattedText component

* Text to formatted text, change image name

* added confirmation modal for deleting draft from bottomsheet

* using common send_handler for both draft and post

* removed magic number for tooltip and bottomsheet

* renamed channel_info to draft_post_header

* text to formattedText for Edit drafts

* removed unnecessary changes

* minor fixes

* mounting draft only when there is draft

* map to reduce

* renamed SwipeableDraft to DraftSwipeAction

* name fixes

* isValidUrl to isParsableUrl and added test

* added test and addressed minor review comments

* added inline component for the duplicate code

* inlt fixes

* clearDraft is not optional

* optimised categories_list.tsx component

* Swipeable to ReanimatedSwipeable, TouchableWithoutFeedback to Pressable and folder name changes

* Added comment and disabled eslint rule for showing warning

* fixed component file name

* minor'

* Removed deprecated Animated createAnimatedComponent flatlist

* added test for missing protocol check

* import change for SwipeableMethod

* active tab for tablet view

* Updated the drafts icons

* Updated compass-icon version to v0.1.48

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-01-13 18:40:03 +05:30
..
channel more utils unit test coverage (#8068) 2024-07-11 20:18:55 +08:00
deep_link Network metrics (#8390) 2024-12-17 19:51:26 +08:00
document more utils unit test coverage (#8068) 2024-07-11 20:18:55 +08:00
draft Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
emoji more utils unit test coverage (#8068) 2024-07-11 20:18:55 +08:00
file Fix 60879 (#8344) 2024-12-03 10:49:38 +01:00
gallery Add post props validation (#8323) 2024-11-28 15:59:30 +01:00
general add unit tests to app/utils/general (#8133) 2024-08-08 14:21:17 +03:00
images fix: fixed image overflow in message attachments (#8361) 2024-12-06 08:27:42 +02:00
markdown Fix Thai search keywords not properly hi-lighted in the search results. (#8347) 2024-12-04 02:40:07 +08:00
navigation add unit tests for app/utils/navigation (#8139) 2024-08-29 00:03:50 +08:00
notification add unit tests to app/utils/notification (#8140) 2024-08-29 00:04:12 +08:00
permalink add unit tests to app/utils/permalink (#8141) 2024-08-29 00:03:25 +08:00
post Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
post_list Fix join/leave messages not showing (#8396) 2024-12-06 07:46:15 +08:00
role Add utils/role unit tests (#8266) 2024-10-18 06:30:34 +08:00
search Add utils/search unit tests (#8267) 2024-10-18 06:29:49 +08:00
server Add tests for utils/server (#8456) 2025-01-08 09:41:02 -05:00
snack_bar [MM-42565] Toast - Follow/Unfollow thread with undo functionality (#7267) 2023-04-14 12:28:03 -04:00
svg Gekidou MultiServers second part (#5963) 2022-02-17 10:42:06 -03:00
tap MM-36721 - [GEKIDOU] Porting Markdown components (#5586) 2021-08-02 20:30:17 +04:00
theme MM-59583 Add tests for utils/theme (#8455) 2025-01-08 11:59:52 -05:00
thread Filter unused preferences (#7015) 2023-01-30 21:00:19 +02:00
url Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
user Add tests for utils/user (#8453) 2025-01-08 15:30:48 -05:00
apps.test.ts fix issues found by sonarqube (#8095) 2024-07-18 09:40:47 +08:00
apps.ts Add post props validation (#8323) 2024-11-28 15:59:30 +01:00
buttonStyles.test.ts Add unit tests to Utils buttonStyles and categories (#8015) 2024-06-14 17:11:36 +08:00
buttonStyles.ts Add unit tests to Utils buttonStyles and categories (#8015) 2024-06-14 17:11:36 +08:00
categories.test.ts Channel Bookmarks (#7817) 2024-07-18 09:10:28 +08:00
categories.ts Add unit tests to Utils buttonStyles and categories (#8015) 2024-06-14 17:11:36 +08:00
config.test.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
config.ts Fix race condition when the same websocket gets initialized twice (#7185) 2023-03-07 19:11:28 +01:00
datetime.test.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
datetime.ts Add support for review app (#6772) 2022-11-24 18:52:15 +01:00
error_handling.test.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
error_handling.ts Refactor errors around the app (#7306) 2023-05-03 13:08:55 +02:00
errors.test.ts add unit tests to app/utils/general (#8133) 2024-08-08 14:21:17 +03:00
errors.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
files.test.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
files.tsx Update Dependencies and bug fixes (#7000) 2023-01-24 09:14:23 +02:00
font_family.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
font_family.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
groups.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
groups.ts [Gekidou] Groups + group-memberships deferred fetch (#6370) 2022-07-07 12:20:06 +02:00
helpers.test.ts Fix bottomSheet bottom insets (#8331) 2024-11-29 12:50:09 +08:00
helpers.ts Fix bottomSheet bottom insets (#8331) 2024-11-29 12:50:09 +08:00
integrations.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
integrations.ts Fix interactive dialog number handling (#8431) 2024-12-19 09:45:03 +01:00
key_mirror.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
key_mirror.ts MM-35115 [Gekidou] Login flow - Email and Password (#5402) 2021-06-18 00:57:40 -04:00
log.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
log.ts Gekidou Sentry Installation (#6726) 2022-11-11 22:48:38 +04:00
mattermost_managed.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
mattermost_managed.ts Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
message_attachment.test.ts MM-62394 Add unit tests to utils/message_attachment (#8443) 2025-01-06 12:13:52 -05:00
message_attachment.ts MM-62394 Add unit tests to utils/message_attachment (#8443) 2025-01-06 12:13:52 -05:00
mix.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
mix.ts Remove watermelondb limitation on updating an already updated model (#7067) 2023-02-03 17:11:57 +02:00
opengraph.test.ts MM-59600 Add unit tests to utils/opengraph (#8444) 2025-01-06 15:30:48 -05:00
opengraph.ts MM-59600 Add unit tests to utils/opengraph (#8444) 2025-01-06 15:30:48 -05:00
push_proxy.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
push_proxy.ts capitalize back the alert text 2023-10-18 21:06:12 +02:00
reviews.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
reviews.ts Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
security.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
security.ts Remove uneeded database migrations (#6985) 2023-01-19 16:56:30 +01:00
sentry.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
sentry.ts Refactor errors around the app (#7306) 2023-05-03 13:08:55 +02:00
strings.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
strings.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
timezone.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
timezone.ts remove usages of isTimeZoneEnabled (#7769) 2024-01-30 13:22:55 +01:00
types.ts Add post props validation (#8323) 2024-11-28 15:59:30 +01:00
typography.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
typography.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00