Commit Graph

1822 Commits

Author SHA1 Message Date
Gleidson Daniel Silva 74a82974f0
[FIX] Fix require cycle for appGroupPath (#4298)
* fix require cycle for appGroupPath

* add console log
2022-06-13 10:58:00 -03:00
Reinaldo Neto 79cd150231
[NEW] Option to show mentions badge (#4265)
* [IMPROVE] Option to show mentions badge

* fix the local database and mergeSubscriptions, missing the state in notificationPrefView

* finished the hideMentions

* fix the string version
2022-06-13 10:24:54 -03:00
Reinaldo Neto a21c797886
[FIX] Searching for users when creating Discussions (#4267) 2022-06-13 10:15:22 -03:00
Danish Ahmed Mirza 5899b1f789
[NEW] Go to RoomView if the mentioned #channel is already joined (#4204)
* [NEW] Go to RoomView if the mentioned #channel is already joined

* Update stories and fix lint errors

* Use getSubscriptionByRoomId

* Fix channel name issue

* Use goRoom

* add jest-expo to jest preset

* update snapshot

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-10 17:33:48 -03:00
Gerzon Z 20a03611a7
[NEW] Call to Action buttons for Omnichannel (#4060)
* add: kebab and bottom sheet for omnichannel

* update: `RoomActionsView`

* chore: add canned responses to MessageBox

* chore: add omnichannel permissions to RightButtons

chore: missing changes to previous commit on RoomView

* chore: make icon available on first re-render after joining the room

* refactor: omnichannel permissions logic outside RightButtons

* refactor: extract omnichannel permissions' logic from RoomActionsView

* fix: omnichannel permissions on RightButton component

* add: omnichannelPermissions to RoomActions route props

* update: RoomView

* remove: setOmnichannelPermissions function

* refactor: `omnichannelPermissions` to object

* refactor: extract `on-hold` Omnichannel to `RoomView`

* add: `canPlaceLivechatOnHold` to `Omnichannel`s actions

* update: type for `showActionSheet`

* update: canned responses permission on

* fix: place on-hold permission not updating properly

* update: validation for on-hold

remove: unused variable

* remove: unnecessary param

* update: MessageBox

* fix: Omnichannel permissions on taking chat

* undo: comment on Reactotron

* Fix place chat on-hold

* fix setOptions in messageBox

* resolve lint

* change return to return to waiting line

* remove joined

* fix console.log

* fix kebab button

* fix subscription to room outside of db

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-06-09 11:42:12 -03:00
Diego Mello d47320733a
[FIX] Form re-rendering on RoomInfoEditView when app receives newer data from stream (#4220) 2022-06-09 10:01:58 -03:00
Danish Ahmed Mirza 748e87acf3
Chore: Migrate containers/Avatar to hooks (#4139)
* Migrate containers/Avatar to hooks

* Migrate to `useSelector` hook and `useRef`

* Change user object prop to primitive type

* fix re-render and update snapshot

* fix lint

* update pods

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-06 12:33:36 -03:00
Alex Junior 614d9afe65
Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
Alex Junior e212a3c946
[IMPROVE] Redesign search box component (#4195)
Co-authored-by: Danish Ahmed Mirza <danishmirza30602@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-06 10:53:02 -03:00
Danish Ahmed Mirza 02c1bc50b9
[NEW] Update room item animations (#4024)
* Upgrade react-native-gesture-handler to 2.3.0

* Update room item animations to reanimated v2

* Add Parallax animation on fav and hide buttons and additional swipe gesture to toggleFav

* Fix tests

* Ignore typescript error for setTimeout function

* Update pods

* Fix blank area on swiping all the way right/left

* Fix Action Buttons on devices with notch

* Update snapshot

* Use colors from useTheme

* Destructure props

* Proper types for nativeEvent and event

* Remove toggleFav gesture

* Clean bits

* Fix lint error

* Fix position of Room Action Buttons on MasterDetail

* Remove comment

* Update animations logic

* Add haptic feedback on swipe

* Add haptic feedback on unswipe gesture

* Update react-native-gesture-handler to 2.4.2

* update pods

* Migrating off RNGHEnabledRootView

* Update types to ReturnType<typeof setTimeout>

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-06 10:23:49 -03:00
Gleidson Daniel Silva 329e74b720
[FIX] Unify attachment rendering logic (#4260)
* fix verification adding fields logic

* update snapshot

* Change order for both logics

* Cleanup

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-02 16:58:42 -03:00
Alex Junior 6220375f7b
Chore: upgrade react navigation to 6.0.10 version (#4120) 2022-06-01 16:46:37 -03:00
Reinaldo Neto 496d3f2ceb
[FIX] Search Message stops showing the correct result (#4253) 2022-05-31 14:37:42 -03:00
Gerzon Z 11c8510398
[FIX] User status update (#3961)
* update: `setCustomStatus` function

* update: `StatusView`'s `setCustomStatus`

* update: `setCustomStatus` function

* update: `StatusView`'s `setCustomStatus`

* refactor: `submit` function

remove: setCustomStatus
update: logEvent

* remove: failed request logic

* fix detox test

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-05-31 13:50:10 -03:00
Gleidson Daniel Silva c85fd0ba99
Chore: Update react-native-fast-image from 8.2.0 to 8.5.11 (#4210)
* upgrade react-native-fast-image

* change import to react-native-fast-image

* bump version

* update path from lib

* fix import
2022-05-31 13:08:18 -03:00
Reinaldo Neto a527b320e9
[FIX] Migrate autoTranslate.translateMessage to REST API (#4029)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-27 14:33:21 -03:00
Alex Junior 1ce7d5cf6a
Regression: right icons overlapping when users name is long (#4224)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-27 14:27:43 -03:00
Alex Junior 3265a8395d
Regression: Fix load starred, mentions, pinned and files messages (#4214) 2022-05-27 14:22:47 -03:00
Reinaldo Neto a82e3e6c1a
[FIX] Navigate to MarkdownTableView using tablets (#4222)
* [FIX] Navigate to MarkdownTableView using tablets

* [FIX] Navigate to MarkdownTableView using tablets

* fix lint

* update yarn.lock

Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
2022-05-27 14:18:51 -03:00
Reinaldo Neto 53aaae5d82
[FIX] Showing blank screen on share extension if the user is not logged in (#4207)
* [FIX] Redirect not logged users to WithoutServersView

* minor tweak

* [FIX] Redirect not logged users to WithoutServersView

* minor tweak

* fix the init

* update yarn.lock

Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
2022-05-27 14:11:26 -03:00
Danish Ahmed Mirza 992e43815d
[FIX] Closing animation of action sheet on item press (#4223) 2022-05-26 15:13:34 -03:00
Reinaldo Neto bc34706f48
Chore: Update Detox to 19.7.0 (#4215)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-26 14:10:24 -03:00
Reinaldo Neto 5101ab4769
Chore: update @rocket.chat/ui-kit to 0.31.11 (#4203)
* Chore: Update UiKit

* fix interfaces and plain_text and mrkdwn
2022-05-26 11:07:17 -03:00
Reinaldo Neto 41721757d0
Chore: Evaluate SearchMessagesView - TypeScript (#4122)
* Chore: Evaluate SearchMessagesView - TypeScript

* minor tweaks

* Update app/views/SearchMessagesView/index.tsx

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-05-23 14:46:30 -03:00
Reinaldo Neto b1ffffb04b
Chore: Migration to Hooks - QueueListView (#4171)
* Chore: Migration to Hooks - QueueListView

* minor tweaks

* minor tweaks
2022-05-23 14:33:58 -03:00
Gleidson Daniel Silva aa3f963af6
[FIX] Fix delete room on team's channel list (#4191)
* fix delete room

* update pods
2022-05-23 14:16:17 -03:00
Alex Junior 8178f7cf87
[FIX] Applying same color to the time on replied messages (#4211) 2022-05-23 13:37:56 -03:00
Reinaldo Neto d4bee9254d
Regression: Click to join call button (#4206) 2022-05-23 10:24:33 -03:00
Alex Junior 4fc8e5e9a4
[FIX] Unify RoomItem UpdatedAt and Message time styles (#4205) 2022-05-20 14:56:07 -03:00
Danish Ahmed Mirza 6384d60efc
Chore: Migrate containers/Button to Typescript and Hooks (#4071) 2022-05-20 13:37:57 -03:00
Alex Junior e38cfa61fe
Chore: Upgrade react-native-document-picker from 5.2.0 to 8.1.0 (#4172)
* chore: upgrade `react-native-document-picker` from 5.2.0 to 8.1.0

* change `DocumentPicker.pick` to `DocumentPicker.pickSingle`
2022-05-20 00:01:34 -03:00
Alex Junior 469c04e90a
Chore: Evaluate e2e screens - TypeScript (#4142) 2022-05-19 23:42:55 -03:00
Danish Ahmed Mirza f5625cd5f3
Chore: Migrate ActionSheets to `react-native-bottom-sheet` and make them dynamic (#4193)
* Install react-native-bottom-sheet

* Migrate ActionSheets to react-native-bottom-sheet

* Remove unnecessary props

* Minor fixes

* Enable OverDrag

* Fix position in landscape mode

* Prefix interface with I

* Remove react-native-scroll-bottom-sheet

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-19 13:53:45 -03:00
Gleidson Daniel Silva 9d514690f0
Chore: Fix websocket connection to sdk (#4182) 2022-05-19 13:43:49 -03:00
Alex Junior 4a84e47cfa
Chore: Evaluate TextInput component (#4181)
* changing from `containers/TextInput` to `containers/TexInput/FormTextInput`

* changing from `presentation/TextInput` to `containers/TexInput/index`

* update storybook

* update status view after merge with develop

* removing `app/containers/__snapshots__/TextInput.stories.storyshot` in favor from `app/containers/TextInput/__snapshots`
2022-05-18 16:17:42 -03:00
Reinaldo Neto 1a52c7dc57
Chore: Evaluate AddChannelTeamView - TypeScript (#4170) 2022-05-17 10:39:21 -03:00
Reinaldo Neto f5051e189d
Chore: Evaluate ModalBlockView - TypeScript (#4124) 2022-05-17 10:22:41 -03:00
Gleidson Daniel Silva be19da54a3
Chore: Evaluate StatusView - TypeScript ++hooks (#4075)
* move statusview to your specific folder

* create showToast helper

* migrate StatusView to hooks

* fix type

* add peer deep to useEffect

* fix lint

* fix error message
2022-05-17 09:42:31 -03:00
Gerzon Z f9394b66e3
Chore: evaluate `RoomsListView` (#4147) 2022-05-16 15:14:04 -03:00
Alex Junior 5cd4186f64
[IMPROVE] Place time after username on message (#4177) 2022-05-15 15:29:07 -03:00
Gleidson Daniel Silva 6dfce40c90
Chore: Create useAppSelector hook (#4189)
* create useAppSelector hook

* migrate useSelector to useAppSelector
2022-05-13 12:01:34 -03:00
Gleidson Daniel Silva 0a7082e2fe
Chore: Evaluate RocketChat v3 (#4155)
* remove roomSub from rocketchat

* remove _setUser

* remove this.activeUsersSubTimeout and IRocketChat imports

* remove this from connect

* remove rocketchat and comment abort controler

* fix lint

Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
2022-05-13 11:52:37 -03:00
Gleidson Daniel Silva f99ec9f8e3
[FIX] iOS Share Extension not loading on development (#4187)
* remove deviceToken from constructor

* remove old patch to verify if is running on shareExtension

* add share extension verification

* Remove imports from `/notifications/` just to test the share extension

* Revert "Remove imports from `/notifications/` just to test the share extension"

This reverts commit b3492abad413a5a8a6cf3cd027e33044c437c627.

* changes from constructor to a plain function

* update pods

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-13 11:37:02 -03:00
Gerzon Z 311b346347
Chore: evaluate `InviteUsersView` (#4100) 2022-05-13 10:02:01 -03:00
Gerzon Z 4d4a5cffd9
Chore: evaluate `MarkdownTableView` (#4104) 2022-05-13 09:57:19 -03:00
Reinaldo Neto 81c6ffce40
Chore: Evaluate RoomInfoView - TypeScript (#4107)
* Chore: Evaluate RoomInfoView - TypeScript

* refactor interfaces
2022-05-11 15:20:59 -03:00
Reinaldo Neto fe84090703
Chore: Evaluate ShareView - TypeScript (#4087) 2022-05-11 14:59:29 -03:00
Reinaldo Neto 59be3b68b8
Chore: Evaluate AddExistingChannelView - TypeScript (#4169) 2022-05-11 14:38:49 -03:00
Reinaldo Neto fb11932d0b
Chore: Evaluate AuthenticationWebView - TypeScript (#4158) 2022-05-11 13:59:57 -03:00
Reinaldo Neto 390516a5b4
Chore: Evaluate AttachmentView - TypeScript (#4161) 2022-05-11 13:42:03 -03:00
Reinaldo Neto 5970d29ee7
Chore: Evaluate AdminPanelView - TypeScript (#4162) 2022-05-11 13:33:27 -03:00
Alex Junior 1d452ed9e6
Chore: Evaluate MessagesView - TypeScript (#4113) 2022-05-10 23:22:17 -03:00
Gerzon Z e233058e22
Chore: evaluate `RoomInfoEditView` (#4095)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-10 18:26:06 -03:00
Gerzon Z c9fd7973f0
Chore: evaluate `LegalView` (#4097)
* chore: evaluate LegalView

* remove: `options` from `LegalView` on OutsideStack

* remove: `mapStateToProps` in favor of `useSelector`
2022-05-10 18:19:57 -03:00
Gerzon Z 9320d1e05e
Chore: evaluate SettingsView (#4090)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-10 18:19:06 -03:00
Alex Junior e0bfdee70c
[IMPROVE] Create edited component for edited messages (#4048) 2022-05-10 14:40:08 -03:00
Gerzon Z 6623044344
Chore: Evaluate `TeamChannelsView` (#4088)
* update: `TeamChannelsView`'s interfaces

* update: `TeamChannelsView`'s route params and types

* update: `teamChannels` type

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-05-09 10:21:09 -03:00
Alex Junior abbb97cd84
Chore: Evaluate ThreadMessagesView - TypeScript (#4084) 2022-05-06 23:34:58 -03:00
Alex Junior 55d66c85db
Chore: Evaluate ProfileView - Typescript (#4091) 2022-05-06 23:11:07 -03:00
Alex Junior 1346154b65
Chore: Evaluate SidebarView - Typescript (#4089) 2022-05-06 22:19:27 -03:00
Alex Junior 8ca73e273a
Chore: Evaluate emoji picker - TypeScript (#4069) 2022-05-06 22:06:08 -03:00
Gerzon Z 88b4a3f672
Chore: evaluate `ThemeView` (#4086)
* chore: evaluate `ThemeView`

* update: `IThemeViewProps` to extend `IBaseScreen`

* update: `ThemeView` interface

* update: dependency array

* update: use `useLayoutEffect` instead
2022-05-05 11:24:36 -04:00
Gleidson Daniel Silva 305f360b40
[FEAT]: Request current passcode before enter "Screen lock" screen (#4052)
* move auth to handleLocalAuthentication function

* add support to close ScreenLockedView

* create useServer hook

* add check to verify if you have a password before entering the screen

* fix import
2022-05-03 17:29:00 -03:00
Danish Ahmed Mirza 2077671761
Chore: Migrate containers/Loading to `reanimated` v2 and Hooks (#4073)
* Chore : Clean `Loading` component and migrate to reanimated v2

* Remove theme prop

* Use colors from useTheme and PixelRatio for image

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-05-03 17:15:16 -03:00
Samay Kothari 9d0b659097
[FIX] Messages showing URL preview on Room Actions (#4065)
* using database query instead of Rocketchat search api to get message search results

* getting search data from server then converting it into the format as required for message rendering

* fixing some redundant changes

* remove ts-ignore

* removing redundant statements

* url preview is visible when we see messages in pinned, mentions and starred messages

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2022-05-03 15:52:56 -04:00
Gerzon Z b006fc4358
Chore: evaluate `JitsiMeetView` (#4103) 2022-05-03 14:17:00 -04:00
Gerzon Z d720b5aca9
Chore: evaluate `ForgotPasswordView` (#4106) 2022-05-03 12:33:35 -04:00
Gerzon Z d277788dc4
Chore: evaluate `AuthLoadingView` (#4102)
* chore: evaluate `AuthLoadingView`

* remove: `mapStateToProps`, `connect` and interface
2022-05-03 12:25:18 -04:00
Gerzon Z 0dc34f1eca
Chore: evaluate `DefaultBrowserView` (#4105) 2022-05-03 12:12:43 -04:00
Gerzon Z 784b016736
chore: evaluate `LoginView` (#4098) 2022-05-03 12:05:01 -04:00
Gerzon Z 99409d1af4
chore: evaluate `NewServerView` (#4101) 2022-05-03 11:48:02 -04:00
Gerzon Z 5dea514751
chore: evaluate `PickerView` (#4096) 2022-05-03 11:13:53 -04:00
Gerzon Z ed63f69a2d
chore: evaluate `SendEmailConfirmationView` (#4093) 2022-05-03 11:06:02 -04:00
Gerzon Z edfeeb80d3
Chore: Unsupported system messages (#4047)
* chore: unsupported system messages

* add: Livechat's ignored system messages

* add: `IGNORED_LIVECHAT_SYSTEM_MESSAGES`

* add: support for Livechat's system messages

* remove: `console.log`
2022-05-03 10:27:20 -04:00
Gleidson Daniel Silva 06a0c4f730
Regression: Fix badge count logic on iOS (#4154)
* fix badge count logic

* set count default value
2022-05-03 08:53:18 -03:00
Reinaldo Neto bd55fe44ba
Chore: Evaluate NewMessageView - TypeScript (#4115)
* Chore: Evaluate NewMessageView - TypeScript

* minor tweak
2022-05-02 23:43:30 -03:00
Reinaldo Neto 5d29fcad53
Chore: Evaluate RegisterView - TypeScript (#4114) 2022-05-02 23:21:43 -03:00
Reinaldo Neto d24e59669a
Chore: Evaluate ScreenLockConfigView - TypeScript (#4094) 2022-05-02 23:14:49 -03:00
Reinaldo Neto 57154101bd
Chore: Evaluate SecurityPrivacyView - TypeScript (#4092) 2022-05-02 23:06:37 -03:00
Reinaldo Neto 5f1ac0b523
Chore: Evaluate SetUsernameView - TypeScript (#4082) 2022-05-02 22:53:19 -03:00
Reinaldo Neto 1118ae6fae
Chore: Evaluate UserNotificationPreferencesView - TypeScript (#4079) 2022-05-02 22:45:31 -03:00
Reinaldo Neto 3ce32bbfd8
Chore: Evaluate UserPreferencesView - TypeScript (#4078) 2022-05-02 22:34:56 -03:00
Reinaldo Neto 82bca54575
Chore: Evaluate WorkspaceView - TypeScript (#4077) 2022-05-02 22:27:33 -03:00
Reinaldo Neto 83fb5ce7fb
Chore: Evaluate LivechatEditView - TypeScript (#4125) 2022-05-02 22:19:28 -03:00
Reinaldo Neto 21a6fcee87
Chore: Evaluate SelectServerView - TypeScript (#4118) 2022-05-02 22:13:03 -03:00
Reinaldo Neto 10c4fddd61
Chore: Evaluate ShareListView - TypeScript (#4117) 2022-05-02 22:06:19 -03:00
Reinaldo Neto 888bcae48e
Chore: Evaluate RoomMembersView - TypeScript (#4116)
* Chore: Evaluate RoomMembersView - TypeScript

* evaluate show action sheet

* fix tsubscriptionmodel
2022-05-02 21:48:08 -03:00
Reinaldo Neto fe1b8b75bd
Chore: Evaluate CannedResponsesListView - TypeScript (#4149) 2022-05-02 21:30:20 -03:00
Reinaldo Neto 243d016bf1
Chore: Evaluate CannedResponseDetail - TypeScript (#4150) 2022-05-02 21:23:03 -03:00
Reinaldo Neto 93c3c5f3a9
Chore: Evaluate RoomActionsView - TypeScript (#4148) 2022-05-02 20:13:39 -03:00
Reinaldo Neto a84d4e9534
Chore: Evaluate RoomView - TypeScript (#4134)
* Chore: Evaluate RoomView - TypeScript

* fix messagebox and list refs

* fix the refs

* refactor other refs

* remove any from privates

* storyshot tweak
2022-05-02 19:58:23 -03:00
Reinaldo Neto cb1dabbc16
Chore: Evaluate CreateDiscussionView - TypeScript (#4133) 2022-05-02 19:48:29 -03:00
Alex Junior d99b31849a
Chore: Evaluate Icon - Typescript (#3982)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-02 16:21:15 -03:00
Alex Junior b63f514df7
Chore: Evaluate NotificationPreferencesView - Typescript (#4099) 2022-05-02 15:24:17 -03:00
Alex Junior 43e9964b7b
Chore: Evaluate Create Channel - TypeScript (#4144) 2022-05-02 15:11:41 -03:00
Alex Junior 1efd6a9a65
Chore: Evaluate AutoTranslate- TypeScript (#4145) 2022-05-02 14:59:49 -03:00
Reinaldo Neto ee3e569512
Chore: Evaluate ReadReceiptView - TypeScript (#4123) 2022-05-02 11:17:55 -03:00
Reinaldo Neto 8ac38a2e04
Chore: Evaluate SelectedUsersView - TypeScript (#4121) 2022-05-02 10:09:10 -03:00
Reinaldo Neto e5f140e231
Chore: Evaluate SelectListView - TypeScript (#4119)
* Chore: Evaluate SelectListView - TypeScript

* minor tweak
2022-05-02 09:40:19 -03:00
Reinaldo Neto 8896370a6c
Chore: Evaluate DiscussionsView - TypeScript (#4129) 2022-05-02 09:23:57 -03:00