Commit Graph

696 Commits

Author SHA1 Message Date
Reinaldo Neto aba0e49194
Chore: Migrate WorkspaceView to Typescript (#3416)
* [CHORE] WorkspaceView migration to Typescript

* minor tweak
2021-10-05 17:48:04 -03:00
Reinaldo Neto da6af286c6
[IMPROVE] Check permission to create a room (#3233)
* [IMPROVE] Check permission to create new message, channels, teams

* Show or not the button to create at RoomListView

* Check permission for each button inside NewMessageView

* Check permission to create private or public channel

* Minor tweak

* Refactor to create a function tuserHasRolePermission

* Refactor to use only one function at rocketchat to check the user permission

* Minor tweaks

* Reactive create channel

* reactive new message view, and handleHasPermission out of constructor

* handleHasPermission to didMount in roomListView

* remove console.log

* Call the function in componentDidMount

* Changed === to dequal, to check array

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-05 10:59:40 -03:00
Reinaldo Neto 2a19054bf6
[IMPROVE] Add pagination to search messages (#3212)
* [FIX] Pagination in SearchMessage through the javascript

* Minor tweak

* Remove unnecessary state update

* Fix inconsistent value update

* Minor change

* Fixed searchMessages to work with new value of count

* minor tweak

* minor tweak

* minor tweak

* Fix encrypted search

* Added Offset to lib/rocketchat and fixed the search

* fixed the debounce in  search message view

* Needed to compare server version to lower than 3.17.0

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-05 10:58:21 -03:00
Reinaldo Neto 62562ebba9
Chore: Migrate AuthLoadingView to Typescript (#3424)
* chore: Migrate AuthLoadingView from js to tsx

* minor tweak
2021-10-05 10:54:08 -03:00
Reinaldo Neto d19f1245e6
[FIX] Searching for Online and All users for server's version less than 3.16.0 (#3407)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:37:50 -03:00
Reinaldo Neto 5bb5d54327
[FIX] Fetch members on RoomMembersView (#3403)
* [FIX] Fetch members on RoomMembersView

* needed to add a conditional to the response

* result back properly from rocketchat lib

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-28 16:34:14 -03:00
Reinaldo Neto c5df938768
[FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-28 16:33:25 -03:00
Reinaldo Neto 80d14037be
[FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet

* removed refreshControl

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-28 16:25:20 -03:00
Reinaldo Neto d2544a79c8
[IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-23 11:17:53 -03:00
Reinaldo Neto a52199a49c
[NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-22 14:29:26 -03:00
Gerzon Z 4f241b32d0
[IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-16 13:26:05 -03:00
Alex Junior 5bc74c6c68
Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript

* [improve] - migrate the view: removing unnecessary variables

* minor changes

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 17:37:21 -03:00
Alex Junior 308be2d2f4
Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript

* minor changes

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 16:58:14 -03:00
Alex Junior 212d7baea0
Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript

* TODO -> TODO:

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 11:38:51 -03:00
Alex Junior 93d734bfa9
Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 10:18:53 -03:00
Chris Price 28d7a1bab2
[FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing

* Add logEvent to error in local authenticate

* minor tweak

* Revert changes

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-14 15:31:36 -03:00
Diego Sampaio b795d4b013
[IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-09-14 13:11:26 -03:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Diego Mello 2c31fc2b84
Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps

* Update react-native-jitsi-meet

* Working on iOS from Jitsi source

* Dependencies installed

* Temp android

* Kinda working android

* Working on iOS with our SDK

* Use our maven repo

* Fix temp maven url

* Cleanup

* Fix maven url

* Bring chat back

* Add activity indicator

* Update react-native-jitsi-meet

* Fix loading on iOS

* Clear gradle cache

* Try 3.6.0

* Dummy change to update gradle cache

* Point to merged forks

* update pod commit
2021-08-30 11:27:02 -03:00
Reinaldo Neto 666943a698
[FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 15:49:26 -03:00
Reinaldo Neto f838825644
[FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined

* Added some team errors in i18n

* Added unauthorized to i18n

* Test if there is channel name too, to prevent to show {missing roomName}

* Refactor the treatment error to check if exists before translate with i18n

* Remove some check conditional points

* Minor tweak

* Added array with error inside the createChannel

* Moved error array to inside the handleFailure

* added creating_discussion

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:34:38 -03:00
Reinaldo Neto 8b35f5c2b2
[FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages

* Minor tweak

* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:33:29 -03:00
Sumukha Hegde 9bfe0e9912
[FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list

fixes: #2684

* Changed the Button and theme, text theme and how to call the function

* Fix the props passed in Message

* Function to context

* Added button attachment to stories

* New snapshot

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:29:34 -03:00
Reinaldo Neto 7cd19b6a29
[FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both

* Removed console.log

* minor tweak

* Enable and disable crashlytics and remove breadcrumb from bugsnag

* minor tweaks with the names of the variables

* minor tweak

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 11:15:01 -03:00
Reinaldo Neto 36ac646495
[FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat

* [FIX] Tags with multiselect and tagParamsSelected

* Removed console.log and the new set to filter

* Added the permission to edit livechat room custom fields

* Change Title Livechat_edit to Edit

* Added marginBottom to multiSelect

* Added marginBottom to multiSelect

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-08-23 11:08:45 -03:00
Reinaldo Neto 5c6b4633bc
[FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:45:02 -03:00
Reinaldo Neto 77f2960dbd
[FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat

* [FIX] Custom fields labels and values

* refactor field

* Added the permission to edit livechat room custom fields

* Fix the inputs.focus()

Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:43:51 -03:00
Reinaldo Neto bea88afca7
[FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:43:09 -03:00
Reinaldo Neto 8f1036f57e
[FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat

* Added the permission to edit livechat room custom fields

Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:42:09 -03:00
Reinaldo Neto 1c43c78cf4
[FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error

* Title in alert

* Disable button when the user donesn't have the role permission

* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash

* Check if the error eis translated before parse through i18n

* Remove unnecessary code

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
2021-08-16 18:08:34 -03:00
Diego Mello 3d5e69b8a1
Chore: Update dependencies (#3206)
* Update non-dev patches

* Update dev patches

* Update minors

* Update dev minors

* Update few non semver

* Cookies

* datepicker, netinfo, base64 and bootsplash

* Patch cookies

* Update navigation

* Device info

* mocha

* localize

* react-native-picker-select

* vector icons, xregexp, popover

* try save husky

* document picker

* Remove emotion dev

* Downgrade some libs and make sure jest is passing

* Update storybook to stable

* mocha, axios, bootsplash

* Update lint job to node 15
2021-07-20 10:23:29 -03:00
Gerzon Z e040be0b45
[IMPROVE] Remove difference between public/private on "Group by type" (#3271)
* Merge channels and private groups

* Remove i18n
2021-07-13 16:35:21 -03:00
Reinaldo Neto 4882ccd588
[IMPROVE] Make `system default` the default browser (#3265)
* [FIX] use systemdefault: as the default browser, not inApp

* Fix

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-12 16:19:25 -03:00
Gerzon Z c9d5bc37c4
[IMPROVE] Set black as default dark theme (#3270)
* Update default darkLevel

* Minor tweak
2021-07-12 15:05:09 -03:00
Reinaldo Neto 16fee2aa64
[IMPROVE] Convert Team to Channel (#3249)
* [IMPROVE] Add convert team to a channel

* Action to SelectListView and new words to i18n

* Implemented the post and it's working with selected channels or not

* Fixed the Convert Team Warning at english i18n and changed the function name

* E2E test completed in sequence the convert/move teams

* [IMPROVE] Add convert team to a channel

* Action to SelectListView and new words to i18n

* Implemented the post and it's working with selected channels or not

* Fixed the Convert Team Warning at english i18n and changed the function name

* rebase develop into this branch

* [IMPROVE] Add convert team to a channel

* Action to SelectListView and new words to i18n

* Implemented the post and it's working with selected channels or not

* Fixed the Convert Team Warning at english i18n and changed the function name

* rebase develop into this branch

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-09 15:46:24 -03:00
Gerzon Z f42c9149fb
[FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout

* Add loginEmailPassword to loginOAuthOrSso

* Add isFromWebView field

* Fix migrations

* Minor tweak

* Fix OAuth for other services

* Fix migrations

* Stop persisting loginEmailPassword

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-05 15:21:15 -03:00
Reinaldo Neto 300c1f96f0
[FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification

* Bug fix to scroll proper the last message

* Minor tweak

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-02 16:17:47 -03:00
Reinaldo Neto 58d21be195
[IMPROVE] Add Jitsi button to Teams (#3223)
* [IMPROVE] Add Jitsi button to teams

* Added setting to check is Jitsi is Enable for Channel too

* Fix typo

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-02 16:15:21 -03:00
Reinaldo Neto 46689930c3
[FIX] App not showing proper alert on team delete (#3219)
* [FIX] Rule to delete team's channel

* Fixed Saga and flow to delete team and team's channel

* Adjusted the warning alert as the Figma

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-02 16:13:41 -03:00
Gung Wah 88191b965a
[IMPROVE] Subscribe to roles (#2992)
* [CHORE] Subscribe to Roles

* subscribe to roles-change

* add subscribe for stream-roles

* fixed subscribe roles

* Add componentDidUpdate to RoomMembersView and propType

* Update componentDidUpdate in RoomMembersView, roles reducer,  getRoles method and actionType

* Minor tweaks

* Remove componentDidUpdate

* Fix add role

* Fix initialState and remove role

* Minor try/catch fix

* Fix lint

* Fix offline first

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2021-07-01 13:51:19 -03:00
Gerzon Z a6ded9546b
[TEST] E2E for Jump to Message (#3202)
* E2E tests for jump to message

* Fix thread tests

* Remove unnecessary function and uncomment tests

* Minor tweak

* Fix tests and minor tweaks

* Minor tweaks

* Update docker data

* Fix docker

* Fix duplicated testid

* Minor refactor

* Fix jump to old message test

* Fix load on scroll

* Add fab test

* Minor addition

* stash

* almost there

* Final changes

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-22 16:41:55 -03:00
Reinaldo Neto 3177bc3e58
[FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions

* Use RocketChat.isGroupChat instead of simple if condition

* Add return

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-10 14:52:00 -03:00
Diego Mello 267dfc547e
[FIX] Teams tests (#3196)
* Make team_main not optional and fix tests

* Undo isOptional and fix query

* Comment
2021-06-07 17:20:07 -03:00
Diego Mello dfe9e4fccb
Revert "[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)" (#3194)
This reverts commit fa00ef92ef.
2021-06-07 16:08:20 -03:00
Reinaldo Neto 0b7461e800
[FIX] App not showing proper alert on team leave (#3161)
* [IMPROVEMENT] refactoring how to leave team

* Fix the data passed to leaveTeam

* Fixed the lint error in i18n, the path of i18n, merged two ifs in one

* Fixed the Saga's flow when try to leave a room

* Fixed params passed to leaveRoom

* Fix the function name of leaveTeam

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-07 13:18:14 -03:00
Reinaldo Neto 29ccb47456
[FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-07 11:56:11 -03:00
Diego Mello 87dd31a91a
[FIX] Item not animating on tap on team's channels view (#3187) 2021-06-07 11:13:48 -03:00
Reinaldo Neto 2502b27564
[FIX] Option to prevent users from using Invisible status (#3186)
* [FIX] Option to prevent users from using Invisible status

* Added error to pt-BR

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-04 17:53:39 -03:00
Reinaldo Neto fa00ef92ef
[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)
* [IMPROVEMENT] Search team list rooms of user in watermelon db

* Minor nitpick

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-04 17:23:31 -03:00
Reinaldo Neto abf3945f32
[FIX] Show alert `Not allowed` when click on a private channel that you don't be invited before (#3177)
* [FIX] Showing only channel you joined

* [FIX] How to get the params to mnavigation to other room from TeamChannelList

* Show alert Not allowed when trying access private channel that you don't joined

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-04 15:40:50 -03:00