Commit Graph

479 Commits

Author SHA1 Message Date
Elias Nahum
b4e0304f2f Change permalink modal to overFullScreen 2022-06-03 12:34:30 -04:00
Matthew Birtch
a78f2de690 made styling changes to address UI tweaks needed (#6346) 2022-06-03 12:26:34 -04:00
Elias Nahum
bf427c700e use TouchableOpacity instead of TouchableWithoutFeedback for the unread filter 2022-06-03 12:20:42 -04:00
Elias Nahum
fa14f93e3f Fix typo and add subtitle to pinned posts 2022-06-03 10:04:39 -04:00
Elias Nahum
a61d65eb09 [Gekidou] pinned posts (#6336)
* Pinned messages

* Move isCRTEnabled query to be called earlier and only once

* Update Channel stats when post is (un)pinned

* Create svg module type definition

* Add missing localization strings

* feedback review
2022-06-03 09:27:45 -04:00
Elias Nahum
6d0e65d5fd [Gekidou] Sort unfiltered find channels by mention / unread (#6340)
* Sort unfiltered find channels by mention / unread

* Prevent Double tap to access find channels
2022-06-03 09:09:30 -04:00
Elias Nahum
834c81fd27 Show permalink view with CRT enabled (#6343) 2022-06-03 08:49:13 -04:00
Elias Nahum
df1da4da19 Use sidebarUnreadText for unread channel item (#6342) 2022-06-03 08:17:20 -04:00
Elias Nahum
413dc41bf0 Ease the way the keyboard can be dismissed in the login screen (#6341) 2022-06-03 08:10:51 -04:00
Avinash Lingaloo
2d3d43c000 MM-39711 - Gekidou Notification Push Notification main screen (#6312)
* added chevron to menu item component

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* remove extra line

* tested on tablets

* some corrections

* corrections as per review

* starting with notification skeleton

* attached notification settings to navigation

* added auto responder

* update translation

* update snapshot

* updated snapshot

* correction after review

* removed unnecessary screen

* refactored

* updated the testIDs

* Update Package.resolved

* refactor

* removed Mattermost as default server name

* fix ts

* refactored settings constant

* display settings skeleton

- pending: query for allowed themes

* added 'allowedThemes' query

* added section item

* mention screen skeleton in place

* added section and sectionItem component

* added reply section to the mention screen

* update i18n

* rename screens properly

* update i18n

* Refactored to MentionSettings component

* Refactored to ReplySettings component

* style clean up

* textTransform uppercase

* rename Section/SectionItem to Block/BlockItem

* added mobile push notif screen - push status section

* adding text to those two components

* correction following review

* added mobile push notification section

* added mobile push notification thread section

* style fix

* code fix

* code fix

* MM-39711 - Gekidou Notification - Auto Responder main screen (#6313)

* added skeleton for auto responder

* code clean up

* correction from peer review

* correction from PR review

* clean up

* PR review correction

* correction

* clean up

* clean up

* code clean up

* code clean up
2022-06-03 16:02:40 +04:00
Elias Nahum
18a94f2b33 Fix channel quick actions bottom sheet size (#6322) 2022-06-03 07:33:45 -04:00
Amy Blais
96797909ea [Gekidou] Update NOTICE.txt (#6315) 2022-06-03 07:26:52 -04:00
Elias Nahum
0b4980cf65 [Gekidou] multiple fixes (#6335)
* Fix navigation stack tracking

* Fix hardwareBackPress handlers

* Use user locale for formattedTime

* Show in-app notifications when in a thread but hide when in the same thread

* Fix post draft archived & read only safe area

* Do not show reply post option in thread screen

* Open permalink as full screen modal

* Fix crash when using chinese locale

* Fix team list and call handle team change
2022-06-03 07:18:29 -04:00
Shaz MJ
088d125792 Unreads header is capitilized (#6337) 2022-06-03 11:55:52 +10:00
Elias Nahum
a0f25f0e3b [Gekidou] Channel Info screen (#6330)
* Channel Info screen

* Delete the channel & related data when archiving while viewing archived channels is off

* feedback review

* UX feedback

* Add missing isOptionItem prop
2022-06-02 16:09:12 -04:00
Elias Nahum
62d2e20441 [Gekidou] Navigation bar refactored (#6319)
* Navigation bar refactored

* feedback review

* add MAX_OVERSCROLL constant
2022-06-01 17:07:54 -04:00
Elias Nahum
f203b74b2f [Gekidou] Update Markdown theme (#6328)
* Fix Markdown when theme changes / latex correct font color

* Do not fetch emojis that are unicode

* Check for unicode emoji before searching for custom emoji
2022-06-01 17:05:25 -04:00
Daniel Espino García
8f10d1ee96 Remove ts-expect-error regarding legacy refs (#6317) 2022-05-31 07:42:34 +02:00
Elias Nahum
f2777d46bb Bump app build number to 403 (#6320) 2022-05-27 14:43:32 -04:00
Elias Nahum
4ab7a6baa6 [Gekidou] commonmark feature parity (#6303)
* Initial attempt at search highlighting for Markdown

* Remove fonts from highlighted text so that it can be bolded

* Add initial task list support

* Render markdown checkbox

* Switch to Commonmark fork

* Use searchPatterns prop

* searchPatterns prop at post level

* Update app/components/markdown/transform.ts

Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>
2022-05-27 14:30:34 -04:00
Krm
efeab53d0b [Gekiodu - MM-44156] Channel ordering is different between web and mobile (#6304)
* new approach added queries for sorting channels

* crt reply checking added for post remote actions

* Fix category_body test

* crt replay check fixed for fetchPostsForChannel

* sortedchannels re-rendering fix

* Only fetch Direct channels if there are more/less

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-05-26 14:23:40 -04:00
Shaz MJ
4825a54de0 [Gekidou] Groups API Calls (#6277)
* Adds missing group API calls

* Rename methods to fetch and move to remote actions
2022-05-26 14:10:04 -04:00
Jason Frerich
340522a90c [Gekidou - MM-44258] Search Screen - Results Empty State (#6279)
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
2022-05-26 11:50:43 -05:00
Avinash Lingaloo
b5038ba55e MM-39711 - Gekidou Notification Mention main screen (#6309)
* added chevron to menu item component

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* remove extra line

* tested on tablets

* some corrections

* corrections as per review

* starting with notification skeleton

* attached notification settings to navigation

* added auto responder

* update translation

* update snapshot

* updated snapshot

* correction after review

* removed unnecessary screen

* refactored

* updated the testIDs

* Update Package.resolved

* refactor

* removed Mattermost as default server name

* fix ts

* refactored settings constant

* display settings skeleton

- pending: query for allowed themes

* added 'allowedThemes' query

* added section item

* mention screen skeleton in place

* added section and sectionItem component

* added reply section to the mention screen

* update i18n

* rename screens properly

* update i18n

* Refactored to MentionSettings component

* Refactored to ReplySettings component

* style clean up

* textTransform uppercase

* rename Section/SectionItem to Block/BlockItem

* adding text to those two components

* correction following review
2022-05-26 17:25:03 +04:00
Daniel Espino García
37457e3f31 Comment out create team options until we have a create team screen (#6310) 2022-05-26 14:39:02 +02:00
Daniel Espino García
a1eaadac41 Update en.json to show proper message on threads tab (#6311) 2022-05-25 13:19:22 +02:00
Elias Nahum
fe5b034915 Fix update own DM display name 2022-05-24 17:39:12 -04:00
Elias Nahum
d1c9c98900 Fix WS connection for cloud servers 2022-05-24 17:39:12 -04:00
Shaz MJ
10c714e02f [Gekidou] Groups are included in the @metion auto-complete (#6261)
* Group autocomplete -
* Styling fixes
* Loading indicator
* Displays group name and display name
* PR Feedback
* Cleans up styling
* Adds constraints to group searches
* Channel Team before current team
* PR Feedback; displayName > name, model observable
* PR Feedback; rename fetch + model observable
* PR Feedback: return {error}, spelling fix
* PR Feedback: Add forceLogoutIfNecessary to fetch calls
* Remove doubled up logout
2022-05-25 07:25:59 +10:00
Elias Nahum
2cfb0ba77b Remove double filter for directChannels 2022-05-24 10:30:47 -04:00
Elias Nahum
19ecc150b6 [Gekidou] Update dependencies (#6305)
* Update dependencies

* Fix iOS build

* update fastlane
2022-05-24 08:47:12 -04:00
Elias Nahum
a4e4e18445 [Gekidou] perf improvement & fix upgrade path (#6302)
* Improve loading display name of direct channels

* Improve team switching

* Improve perceived performance when opening the app with an active session

* Fix upgrade path from v1

* Set moment locale while formatting date

* feedback review
2022-05-24 08:45:17 -04:00
Avinash Lingaloo
11b58c4de3 Gekidou - Section Component (#6308)
* added section and sectionItem component

* some code fix
2022-05-24 15:34:36 +05:30
Joseph Baylon
558d83719c Detox/E2E: Global threads e2e tests in Gekidou (#6300)
* Detox/E2E: Global threads e2e tests in Gekidou

* Revert update deps
2022-05-20 15:51:15 -07:00
Elias Nahum
b6e3c2c66d Bump app build number to 402 (#6301) 2022-05-20 14:17:29 -04:00
Matthew Birtch
631e8ebd59 [Gekidou MM-44209] Markdown heading style updates (#6296)
* first commit to update heading styles for markdown

* updated heading styles to use typography helper

* fix imports

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-05-20 14:15:50 -04:00
Elias Nahum
b0e425ce07 Wait until bottom sheet closes before adding the reaction (#6299) 2022-05-20 13:23:38 -04:00
Elias Nahum
e883186fde [Gekidou] retry post (#6293)
* Add try again functionality to failed posts

* Fix attach files on Android

* feedback review

* Prevent android crash when uploading files for the first time

* Update the timestamp for updateAt when retrying to post

* Add POST TIME TO FAIL

* use function isPostFailed
2022-05-20 13:23:19 -04:00
Elias Nahum
502efbcdc0 Prevent crash when tapping on a MD table 2022-05-20 12:57:53 -04:00
Avinash Lingaloo
87c2adfde2 fix to prevent 'race' condition for screenDidDisappear event (#6298) 2022-05-20 11:51:36 -04:00
Daniel Espino García
5dba7f2667 Properly handle deleted system posts (#6297) 2022-05-20 13:12:22 +02:00
Elias Nahum
dfe2b7cfbd CRT fixes for MM-44210 & MM-44156 (#6295)
* CRT fixes for MM-44210 & MM-44156

* Covered other conditions and renamed variables to be consistent

Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
2022-05-20 06:28:12 +05:30
Elias Nahum
4573732fd2 [Gekidou] channel quick actions (#6288)
* Add hitSlop to navigation header right buttons

* Fix channel_item info muted style

* Fix team switch when global threads

* Wrap WS channel events in try/catch

* Group Box component and Animated Group Box

* SlideUpPanelItem style

* Fix return value of setCurrentTeamAndChannelId

* Add observeChannelSettings and include channel settings in prepareDeleteChannel

* update OPTIONS_HEIGHT reference in find channels quick options

* Fix DM limit in channel list

* Fix category header style and translate default categories

* Add snackbar for unmute/favorite/unfavorite

* Add toggleFavoriteChannel remote action

* Add makeDirectChannelVisible remote action

* Use makeDirectChannelVisible in switchToChannelById and update toggleMuteChannel snackbar

* Add channel actions common components

* Update channel intro to use channel action common components

* Rename ChannelDetails screen to ChannelInfo

* Add channel quick actions

* Update localization strings

* Fix addChannelToDefaultCategory

* Leave channel

* Add localization strings

* Fix snackBar screen event listener

* Feedback review
2022-05-19 14:30:55 -04:00
Matthew Birtch
06d2f1facd [Gekidou - MM-44258] Modifies post padding to 16 (#6292)
* modifies post padding to 16 instead of 20

* add spacing changes for date separator, new message line, youtube, files, thread overview, channel info, post with channel info

* update snapshots

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-05-19 13:24:33 -04:00
Elias Nahum
353e5ceb0a [Gekidou] Skip push notification processing for CRT (#6289)
* Skip push notification processing for CRT

* Fix pushNotificationEntry
2022-05-19 13:03:14 -04:00
Avinash Lingaloo
c1a39094c6 MM-39711 Gekidou Settings - Display Main Screen (#6287)
* added chevron to menu item component

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* remove extra line

* tested on tablets

* some corrections

* corrections as per review

* starting with notification skeleton

* attached notification settings to navigation

* added auto responder

* update translation

* update snapshot

* updated snapshot

* correction after review

* removed unnecessary screen

* refactored

* updated the testIDs

* Update Package.resolved

* refactor

* removed Mattermost as default server name

* fix ts

* refactored settings constant

* display settings skeleton

- pending: query for allowed themes

* added 'allowedThemes' query

* correction after review

* correction after review

* removed extra notification_settings line

* Update en.json

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-19 17:14:29 +04:00
Avinash Lingaloo
8902c8e1c1 MM-39711 Gekidou Settings - Notification Main Screen (#6285)
* added chevron to menu item component

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* remove extra line

* tested on tablets

* some corrections

* corrections as per review

* starting with notification skeleton

* attached notification settings to navigation

* added auto responder

* update translation

* update snapshot

* updated snapshot

* correction after review

* removed unnecessary screen

* refactored

* updated the testIDs

* Update Package.resolved

* refactor

* removed Mattermost as default server name

* fix ts

* refactored settings constant

* correction after review

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-19 08:47:49 -04:00
Daniel Espino García
4bd2416d47 Observe CRT preference with values (#6291) 2022-05-19 12:32:06 +02:00
Daniel Espino García
0464dd34ee Unify entry functions (#6231)
* Unify entry functions

* Handle switched to channel on websocket reconnect

* Simplify global threads by moving it to switchByChannelId

* Keep in mind team when changing to global threads view

* Avoid unneeded channel switches on notification entry

* Fix effects on home screen

* Address feedback
2022-05-19 11:24:59 +02:00
Kyriakos Z
fd2a8a36e8 MM-40081: adds pull to refresh in threads (#6284)
Adds pull to refresh functionality in global threads lists, both in all
and unread threads.
Refreshing fetches either all newer threads, or in the case we have no
threads in store, the first page of threads.
2022-05-19 11:10:02 +03:00