* [MM-29037]: Unit and e2e tests for MM-28100
* e2e test
* review fixes
* move test to correct folder
* update to latest master
* remove console log
* skip query when not required
* re-add console.log
* MM-30286 Detox/E2E: Add e2e test for MM-T3236
* Fix more testID hierarchies
* Fix typo
* Fix failing test
* Remove extra lines
* Updated to use string interpolation
* Update channels list element query
* Updated channel item unit test to be more consistent
* Fix error text testID hierarchies; fix edit channel info testIDs
* Fix snap file
* Fix line return
* MM-30286 Detox/E2E: Add e2e test for MM-T3222 and some cleanup
* Fix merge issues
* Fix more issues
* Fixed new line
* Remove redundant check
* Updated instance to getElement
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Emit the event for visible items in the thread screen
* Feedback review
* fix unit test
* check for deeplink before running the animation
* Load progressive image for recent mentions, saved / pinned posts & search
* On change, Group mentions are updated in autocomplete
* Converted getAssociatedGroupsForReference, searchAssociatedGroupsForReferenceLocal functions to reselectors
* Sending only state to getCurrentUserLocale in selector
* Added types to passed params
Co-authored-by: anurag shivarathri <anuragindianbraves@gmail.com>
* Adding E2E tests for at mention autocomplete
* Removing mentionComplete from at_mention autocomplete
- The component is already being hidden when there is no valid matchTerm or sections
- Setting mentionComplete to true after an autocomplete was selected prevented the autocomplete from rendering when @ is tapped a second time
* Updating E2E description
* Update detox/e2e/test/autocomplete/at_mention.e2e.js
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
* complete at-mention selection when there are no more sections
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
* Open/Close Gallery transitions
* Include postId in file info & disable opening the gallery in some cases
* Add progress bar component
* Transition to gallery based on platform
* Improve getting the filename for non attachments
* Patch RNFetchBlob TS definition
* Add gallery types
* fix unit tests for message and post attachment
* add getLocalPath method
* Add react-native-share dependency
* Re-style gallery footer
* Refactor Gallery screen
* Double tap zoom in/out and translate
* Make android activity "transparent"
* Do not animate to height on dismissing gallery
* Open gallery for file uploads
* Fix borderRadius for gallery action button
* Use progress bar for file uploads
* Replace progress bar for file attachment document
* Upgrade RNN to 7.1.0 to fix share elements transitions
* Fix Gallery unit tests
* translate down when popping screen on iOS
* Swipe, Pan & Tap fixes
* fix gallery footer avatar eslint
* Fix gallery snapshot tests
* Use CompassIcon in Gallery
* Feedback from UX review
* Fix gallery UI for other file types
* Set other file type gallery button to 48pt
* init
* Pick one from mini preview and thumnail URL in file attachment image
* Blur thumbnail mini preview & update testID's
* Set blurRadious based on Platform OS
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Group mentions are not highlighted until they are posted
* Disable highlight when post is pending
* Reverted unit test
Co-authored-by: anurag shivarathri <anuragindianbraves@gmail.com>
*Summary*
- This PR adds storybook into the mobile repo, and adds a sample story for the existing "loading" component.
- In the root of the repo run `npm run storybook`. This step automatically scans and loads all stories. A new browser tab will open with the storybook interface. You can configure the storybook host url by updating the .env file in the root of the repo. This might be required if you're using a real device. When running in an emulator, the code tries to use the default network values.
- Then run the usual `npm run android` (or `npm run ios`) and `npm run start` commands
- Storybook has been integrated into the react-native-dev-menu. When the app is running in the emulator press CTRL+M or CMD+M to open the dev menu and select "Storybook". If running on a real device, shaking the device will bring up the react-native dev menu. You can also press d in the terminal where you ran npm run start to get the app running.
- The storybook interface will open in the mobile app. The stories can be controlled either through the desktop browser storybook UI or the mobile browser storybook UI. Both will render the component on the device.
*Ticket Link*
https://mattermost.atlassian.net/browse/MM-28845
*Device Information*
This PR was tested on:
Iphone 11 emulator running ios 13.7
Pixel 3XL emulator running Android 10
* MM-29948 Display error msg when pasting files and uploads are disabled
* Remove unnecessary ref and Animated.View
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
* MM-28105 do not crash when in-app notification shows
* Use index.tsx to register the notification screen
* Fix notification e2e and some import cleanup
* Update iOS notification json
* e2e: Show the add reaction screen before receiving a notification
* Update snapshots
* Patch react-native-notifications to prevent iOS crash when opening
* Apply TM4J id
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
* MM-28688 Close sidebar when current channel is selected
* Update snapshot
* Apply suggestions from code review
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
* Fix iOS select_channel e2e and feedback review
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
* MM-28336 Align hamburger menu badges
* Fix Fastlane and CI artifacts for PR's
* Fastlane to post to QA build channel
* Fix plist.erb template
* Fix variable type
* [MM-22366] Make user autocomplete also match on spaces
* Move template string to fullName variable
* Add Detox E2E tests for user autocomplete
* Add TM4J IDs
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
* Add test for keyword not associated with user
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>