mattermost-mobile/app/queries/servers
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
..
categories.ts Somre review fixes 2023-11-10 16:14:11 +05:30
channel.test.ts Add tests for queries/server/channel (#8395) 2024-12-06 09:35:21 +08:00
channel.ts Add tests for queries/server/channel (#8395) 2024-12-06 09:35:21 +08:00
channel_bookmark.ts fix bookmarks sort order when WS does not bump update_at (#8264) 2024-10-17 09:05:01 +08:00
custom_emoji.ts [Gekidou] Extract common observers to queries (#5984) 2022-03-23 09:19:29 -03:00
drafts.ts Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
entry.ts Channel Bookmarks (#7817) 2024-07-18 09:10:28 +08:00
features.ts Add GM as DM feature support (#7515) 2023-09-26 18:35:40 +02:00
file.ts Channel Bookmarks (#7817) 2024-07-18 09:10:28 +08:00
group.ts Sanitize sqlite like queries and allow non-latin characters (#7141) 2023-02-16 11:18:05 +02:00
post.ts [MM-60236] Remove ephemeral posts on refresh/during initial load (#8260) 2024-11-01 09:28:06 -06:00
preference.ts Remove watermelondb limitation on updating an already updated model (#7067) 2023-02-03 17:11:57 +02:00
reaction.ts Do not access record children directly to avoid crashes if the child is not present in the db (#7028) 2023-01-27 17:57:38 +02:00
role.ts fixes 2023-11-16 13:20:41 +05:30
system.test.ts Fix upload permissions and centralize download permissions (#7109) 2023-02-14 22:55:02 +02:00
system.ts Improve websocket behavior (#7976) 2024-06-17 09:58:58 +02:00
team.ts Refactor errors around the app (#7306) 2023-05-03 13:08:55 +02:00
terms_of_service.ts Update Dependencies and bug fixes (#7000) 2023-01-24 09:14:23 +02:00
thread.ts Refactor errors around the app (#7306) 2023-05-03 13:08:55 +02:00
user.ts Prioritize @ autocomplete results based on recency and thread activity (#7506) 2024-05-06 10:45:44 +02:00