mattermost-mobile/app/hooks
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
..
android_back_handler.ts Make androidBackHandler to update if the handler changes (#7519) 2023-08-31 10:31:55 +02:00
apps.ts App framework - Post menu and channel info bindings, App forms (#6735) 2022-11-30 21:25:08 +02:00
autocomplete.ts Fix autocomplete not scrolling in search in Android (#6596) 2022-09-08 04:39:15 -03:00
channel_switch.ts Add minor fixes and performance improvements on channel switch (#6469) 2022-07-15 16:04:58 +02:00
device.ts Extra keyboard (#8348) 2024-11-29 11:58:13 +08:00
did_update.ts Upgrade Dependencies (#7299) 2023-04-21 12:16:54 -04:00
emoji_category_bar.ts New UI for Emoji picker (#6933) 2023-01-12 13:38:44 +02:00
fetching_thread.ts [MM-47483] Activity Indicator while loading thread posts (#6865) 2022-12-17 01:15:22 +05:30
files.ts Channel Bookmarks (#7817) 2024-07-18 09:10:28 +08:00
freeze.ts [Gekidou] optimizations, fix & moved files (#6177) 2022-04-18 08:49:17 -04:00
gallery.ts Push react native to 0.73.6 (#7863) 2024-04-22 12:44:39 +02:00
handle_send_message.ts Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
header.ts fix: MM-58164 Search text is behind the textbox while searching (#8026) 2024-09-05 11:28:00 -06:00
input.ts Fix double tilde by waiting for text values to propagate to the native side (#7132) 2023-02-22 18:03:21 +01:00
markdown.ts Show at mentions in RemoveMarkdown renderer (#7664) 2023-11-17 11:43:25 +01:00
navigate_back.ts Add support for review app (#6772) 2022-11-24 18:52:15 +01:00
navigation_button_pressed.ts MM-56899 - prevent app block when setting custom status if no internet (#8283) 2024-12-05 15:53:54 -05:00
persistent_notification_props.ts Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
show_more.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
team_switch.ts [Gekidou] perf improvement & fix upgrade path (#6302) 2022-05-24 08:45:17 -04:00
teams_loading.ts Show loading only when team channels are being loaded (#6872) 2022-12-19 12:25:23 +01:00
use_external_link.test.ts Add test notification tool (#8271) 2024-11-11 10:22:57 +01:00
use_external_link.ts Add test notification tool (#8271) 2024-11-11 10:22:57 +01:00
useCollapsibleHeader.test.tsx fix: MM-58164 Search text is behind the textbox while searching (#8026) 2024-09-05 11:28:00 -06:00
why_did_you_update.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00