Daniel Espino García
4c8594d330
Add linter rules for import order and type member delimiters ( #5514 )
...
* Add linter rules for import order and type member delimiters
* Remove unneeded group
* Group all app/* imports before the internal imports
* Move app/ imports before parent imports
* Separate @node_modules imports into a different group
* Substitute app paths by aliases
* Fix @node_modules import order and add test related modules
* Add aliases for types and test, and group import types
2021-07-23 11:06:04 +02:00
Miguel Alatzar
ee4b85edcf
[MM-23520] Port mattermost-redux ( #4088 )
...
* Remove mattermost-redux
* Move mm-redux files into app/redux
* Add @redux path to tsconfig.json
* Fix imports
* Install missing dependencies
* Fix tsc errors
* Fix i18n_utils test
* Fix more imports
* Remove redux websocket
* Fix tests
* Rename @redux
* Apply changes from mattermost-redux PR 1103
* Remove mattermost-redux mention in template
* Add missing imports
* Rename app/redux/ to app/mm-redux/
* Remove test file
* Fix fetching Sidebar GM profiles
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-31 11:09:26 -07:00
Miguel Alatzar
459801d10b
[MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal ( #3298 )
...
* Patch react-native-navigation
* Make navigation actions regular functions
* Fix unhandled promise rejection warning
* Missing semicolons
* Mock navigation actions
* Add unit tests for navigation actions
* Place all patches in patches directory
* Fix channel_info snapshot test
2019-09-25 15:23:45 -07:00
Miguel Alatzar
5eee2b7652
[MM-16139] [MM-16140] [MM-16141] Update the remaining screens/components ( #2920 )
...
* Update screens
* Update login tests
* Remove done
* Fix failing tests
* Update screens and components
* Check styles fix
* Update tests
* Prevent setState call after component unmounts
* Add empty setButtons func to dummy navigator
* Remove platform check
* Remove Platform import
* Update react-native-navigation version
* Add separate showModalOverCurrentContext function
* check-style fixes
* Remove overriding of AppDelegate's window
* Fix modal over current context animation
* Add showSearchModal navigation action
* Check-style fix
* Address review comments
* Update SettingsSidebar and children
* Update EditProfile screen
* Update SettingsSidebar
* Keep track of latest componentId to appear
* Track componentId in state to use in navigation actions
* Update FlaggedPosts and children
* Update RecentMentions
* Update Settings
* Store componentIds in ephemeral store
* Update AttachmentButton
* Remove unnecessary dismissModal
* Fix typo
* Upate NotificationSettings
* Update NotificationSettingsAutoResponder
* Update NotificationSettingsMentions
* Update NotificationSettingsMobile
* Update CreateChannel and children
* Update MoreChannels
* Update ChannelPeek and children
* Update ChannelNavBar and children
* Update ChannelPostList and children
* Update ChannelInfo and children
* Update ChannelAddMembers
* Update ChannelMembers
* Update EditChannel
* Fix setting of top bar buttons
* Update Channel screen and children
* Update PinnedPosts
* Update LongPost
* Update PostOptions
* Update PostTextboxBase
* Update EditPost
* Check-styles fix
* Update DisplaySettings
* Update Timezone
* Update SelectTimezone
* Update IntlWrapper and Notification
* Update InteractiveDialog and children
* Update ExpandedAnnouncementBanner
* Update ClientUpgradeListener
* Update MoreDirectMessages
* Update SelectorScreen
* Update UserProfile
* Update Thread
* Update About
* Update ImagePreview
* Update TextPreview
* Update AddReaction
* Update ReactionList and children
* Update Code
* Update TermsOfService
* Update Permalink
* Update Permalink
* Update ErrorTeamsList
* Update Search
* Remove navigator prop
* Fix setButtons calls
* Remove navigationComponentId
* Fix test
* Handle in-app notifs in global event handler
* Fix in-app notification handling
* Fix typo
* Fix tests
* Auto dismiss in-app notif after 5 seconds
* Fix typo
* Update overlay dismissal
* Animate in-app notif dismissal and allow gesture dismissal
2019-07-08 10:03:31 -07:00
Miguel Alatzar
913f05e131
[MM-16011] Update screens related to main sidebar ( #2907 )
...
* Update screens
* Update login tests
* Remove done
* Fix failing tests
* Update screens and components
* Check styles fix
* Update tests
* Prevent setState call after component unmounts
* Add empty setButtons func to dummy navigator
* Remove platform check
* Remove Platform import
* Update react-native-navigation version
* Add separate showModalOverCurrentContext function
* check-style fixes
* Remove overriding of AppDelegate's window
* Fix modal over current context animation
* Add showSearchModal navigation action
* Check-style fix
* Address review comments
2019-06-24 10:58:15 -07:00
Harrison Healey
154def4af8
Only update Client4.setAcceptLanguage when locale changes ( #1942 )
2018-07-26 07:54:33 -04:00
Jesse Hallam
8372e95d4a
add eslint-plugin-header, and --fix all ( #1726 )
2018-06-19 19:14:50 -04:00
Jesse Hallam
58b72302d6
update eslint's comma-dangle rule to always-multiline ( #1457 )
...
* update eslint's `comma-dangle` rule to `always-multiline`
* add check and fix scripts to package.json
* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
enahum
cd80cdfdf4
Fix race condition preventing the app opened from a PN to go to the correct channel ( #1398 )
...
* Fix race condition preventing the app opened from a PN to go to the correct channel
* Feedback review
2018-01-31 11:02:02 -05:00
enahum
c69bf5a950
Remove unneded ownProps ( #1177 )
2017-11-21 12:35:03 -03:00
Harrison Healey
a9489dcc5f
Replace getTheme selector with one from mattermost-redux ( #1013 )
2017-10-12 08:45:17 -07:00
Harrison Healey
98abbd6dca
RN-345 Additional improvements to channel switching ( #926 )
...
* RN-345 Only show refreshing indicator when channel is actually refreshing
* Added getCurrentLocale selector
* Added SwitchTeams component to channel drawer to reduce rerenders
* Reduced number of props passed from ChannelsList into children
* Removed unused prop from FilteredList
* Moved visible post calculation out of render function
* Don't set the channel to loading when not switching channels
* Added most of channel view state to blacklist
2017-09-22 11:48:30 -07:00
enahum
088ecad2b5
Split Post component into smaller components and prevent re-rendering ( #740 )
...
* Split Post component into smaller components and prevent re-rendering
* Feedback review
* Fix render reply bar
* Remove eslint-disable-line
2017-07-13 17:48:45 -04:00
enahum
8d72c0a020
Fix localization + setting the token for APIv3 ( #674 )
2017-06-26 15:49:28 -04:00
enahum
56b8f6e479
Handle the cases when a user with no teams ( #621 )
2017-06-14 10:04:41 -04:00
enahum
ecf39f61dd
Various fixes & improvements ( #611 )
...
* RN-166 follow user prefs for join/leave messages
* RN-158 Fix Android input textbox offscreen issue
* RN-181 Use device locale as default locale
* Upgrade mattermost-redux
* Fix TouchableHighlight in the channel drawer items
* Update channel title when switching channels
* Fix channel name title when switching teams
* Fix unit test
2017-06-08 15:40:29 -04:00
enahum
844c654fda
Update RN to 0.44.0 and project dependencies ( #546 )
2017-05-16 21:13:44 -04:00
enahum
248dafbe0e
RN-97 Changed navigation from NavigationExperimental to ReactNative Navigation ( #540 )
...
* Add react-navigator dependency
* Add react-native-navigation dependency
* react-native-navigation, ios and android config
* update react-native-navigation
* New navigation and code cleanup
* Set ScreenBackgroundColor
* Fix channel drawer event issue
* Applied RNPN non-working popInitial notification
* Android navbar and back button
* packages and notices
* MM-redux update
* Fix draft on team switch
* Remove custom NavBar
2017-05-16 11:19:46 -04:00
enahum
cdff304be1
RN-64 Ability to open the app in offline mode ( #479 )
2017-04-13 11:57:19 -03:00
Harrison Healey
43e4c5e2f2
PLT-5860 Updated copyright date ( #476 )
2017-04-10 11:33:35 -03:00
Harrison Healey
1319f1fcf8
Added KeyboardLayout to automatically use a KeyboardAvoidingView as necessary ( #263 )
...
* Renamed layouts/root_layout to components/root
* Added KeyboardLayout to automatically use a KeyboardAvoidingView when necessary
2017-02-16 09:19:48 -05:00