Commit Graph

778 Commits

Author SHA1 Message Date
Reinaldo Neto cd7e9e22f8
[FIX] Unresponsive status icons on Directory View and Share View (#4303) 2022-06-21 16:44:02 -03:00
Reinaldo Neto a16c271f1f
Chore: Hooks - migrate RoomHeader to hook (#4200)
* roomHeader hook

* minor tweak

* Fix ts stuffs

* fix colors

* refactor
2022-06-13 17:16:20 -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
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
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
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
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
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
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
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
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
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
Reinaldo Neto fe84090703
Chore: Evaluate ShareView - TypeScript (#4087) 2022-05-11 14:59:29 -03:00
Alex Junior e0bfdee70c
[IMPROVE] Create edited component for edited messages (#4048) 2022-05-10 14:40:08 -03:00
Alex Junior 8ca73e273a
Chore: Evaluate emoji picker - TypeScript (#4069) 2022-05-06 22:06:08 -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
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
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 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
Alex Junior d99b31849a
Chore: Evaluate Icon - Typescript (#3982)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-02 16:21:15 -03:00
Reinaldo Neto a27d63c22e
Chore: Evaluate DirectoryView - TypeScript (#4130) 2022-05-02 08:53:47 -03:00
Gerzon Z 744ee27e18
Regression: Omnichannel icons (#4136)
* fix: Omnichannel icons

* update: `RoomItem.storyshot`
2022-04-29 13:08:19 -04:00
Gleidson Daniel Silva 89e0a40d95
Chore: remove lib/rocketchat step 2 (#4035)
* create index file

* remove roomTypeToApiType from rocketchat and fix imports

* move TOKEN_KEY to const file

* move CURRENT_SERVER to const file

* move CERTIFICATE_KEY to const file

* getRoom

* rename getSlashCommands

* getSlashCommands

* readMessages

* getRooms

* loadThreadMessages

* loadNextMessages

* loadSurroundingMessages

* loadMessagesForRoom

* loadMissedMessages

* clearCache

* canOpenRoom

* setUser

* userPreferencesMethods

* getCustomEmojis

* callJtisi

* triggerActions

* getPermissions

* getRoles

* getSettings

* getUsersPresence

* logout

* sendFileMessage

* shareExtension

* sendMessage

* enterpriseModules

* getPermalinks

* search

* change RocketChat.metodo to direct call

* fix types

* Fix login

* Fix createChannel

* migrate service methods to Service.method call

* change call directly to RocketChat because the use of this

* rollback

* rollback

* fix create discussion

* fix import

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-28 17:37:25 -03:00
Gerzon Z 8a75dcf87b
Chore: evaluate `RoomItem` (#4023)
* chore: evaluate `RoomItem`

* update: `RoomItem.storyshot`

* update: interfaces for RoomItem components

* update: UnreadBadge import and RoomItem interfaces

* remove: `avatarSize` from interfaces

* update: `RoomItem.storyshot`
2022-04-20 17:37:54 -04:00
Gerzon Z aab4e4b12a
[FIX] Avatar's size on display mode change (#4042)
* fix: avatar's size

* update snapshot

* update: snapshots

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-20 17:02:18 -04:00
Reinaldo Neto 8012031cd3
[NEW] On-Hold chats for Omnichannel (#4051)
* [NEW] Implementing On-Hold Livechat for Omnichannel

* added onHold to database

* list header title open livechats

* update rooms list view

* remove placeOnHold after clicked

* fix mesasgebox reactive to on hold

* navigate to roomslistview

* minor tweaks

* for grouping too

* fix chat on-hold when the agent is fully

* show on hold system messages
2022-04-20 17:53:11 -03:00
Reinaldo Neto 21c8de56ea
[IMPROVE] Accept user avatar url from external provider (#4002)
* [IMPROVE] Accept url to user avatar from external provider

* fix avatar sidebar
2022-04-18 21:52:02 -03:00
Reinaldo Neto 0a67cb8096
[IMPROVE] Visibility of the “incoming chats” in queue (#4039)
* [IMPROVE] Visibility of the “incoming chats” in queue

* fix the custom icon for rtl

* fix thumb colors

* clean queue empty

* added alert to confirm enable omnichannel

* switch to normal

* fix storyshot because was added a new props to list item

* fix height container

* minor tweak

* minor tweak

* fix title
2022-04-15 00:11:36 -03:00
Reinaldo Neto 064920e61b
Chore: Evaluate UnreadBadge to Typescript (#4018)
* Chore: Evaluate UserItem to Typescript and moved from presentation to container

* minor tweak
2022-04-14 23:51:59 -03:00
Reinaldo Neto b75ac1de8b
[IMPROVE] Support Omnichannel icons (#3959)
* [IMPROVE] Support Channel Icons for Omnichannel

* Prop drilling sourceType

* create a column for source in WatermelonDB

* Add sms icon

* start of fetching

* removed usefetch

* custom icon to RoomHeader, RoomActions, RoomInfo

* minor tweak in interface

* fix margin

* add connected to sourceType

* make ts happy

* minor tweak

* fix storyshot

* refactor omnichannel source interface

* minor tweak roomActionsview

* Added storyshot

* minor tweak

* fix storyshot

* fix display extended without avatar

* fix connected object

* wip android build

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-14 23:27:36 -03:00
Reinaldo Neto 25c37c1a60
Chore: Migrate i18n to Typescript (#3988)
* Chore: Migrate i18n to Typescript and fix the Left and Right actions in RoomItem

* remove fix to roomItem

* update storyshot

* Chore: Migrate i18n to Typescript and fix the Left and Right actions in RoomItem

* remove fix to roomItem

* update storyshot

* fix removed itens

* fix changes requested

* interface for i18n, added resolveJsonModule to tsconfig.json

* tweak at error alert

* fix storyshot

* refactor comments

* create function isTranslated

* fix accessibilityLabel

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-14 17:30:41 -03:00
Reinaldo Neto e28f7ac4b6
[FIX] Send upload inside a thread (#4053) 2022-04-14 14:40:37 -03:00
Alex Junior ef81796cd3
Chore: Evaluate KeyboardView - TypeScript (#4014)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-13 17:43:56 -03:00
Gerzon Z b9651493d2
Chore: update `theme` type (#4025)
* chore: update `theme` type

* update: components

* update: storyshots

* add: `theme` type to `DirectoryItem`

* chore: update theme type on `message/index.tsx`

* update: `RoomTypeIcon`'s useTheme
2022-04-12 12:27:05 -04:00
Alex Junior b0d408ebc8
Chore: add eslint-plugin-react-hooks lib (#4021)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-11 15:01:43 -03:00
Reinaldo Neto 53eb251476
Chore: Evaluate UserItem - TypeScript (#3983)
* Chore: Evaluate UserItem - TypeScript

* fix storyshot

* minor tweaks

* tweaks on comments

* fix storyshot

* move useritem from presentation to containers

* remove comments
2022-04-08 23:43:31 -03:00
Reinaldo Neto 8268beeb67
[FIX] Create a discussion from NewMessageView (#4003)
* [FIX] Create a discussion from NewMessageView

* fix the itemData.value to any

* minor tweak
2022-04-08 19:53:48 -03:00
Reinaldo Neto ec952b058a
Chore: Upgrade @types/react-native to 0.64.2 (#4026)
* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* fix accessibility within bordelessbutton
2022-04-08 11:27:10 -03:00
Gerzon Z 349e10e328
Chore: TypeScript Migration - evaluate DirectoryItem (#4016)
* chore: evaluate DirectoryItem

* chore: move `DirectoryItem` to `containers`

* update: `themes` import
2022-04-07 16:25:25 -04:00
Gerzon Z cd0c8abced
Chore: evaluate ServerItem - TypeScript Migration (#4015)
* chore: evaluate ServerItem

* update: IServerInfo interface

* chore: move `ServerItem` to `containers` folder

* update: `ServerItem` import on Storybook

* update: `themes` import
2022-04-07 13:07:16 -04:00
Gleidson Daniel Silva d38c17bcd8
Chore: Create app/lib/store folder (#4028)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-07 11:19:54 -03:00
Gleidson Daniel Silva bdf83e546e
Chore: Move constants away from rocketchat folder - Typescript (#4022)
* create keys file and export all consts

* fix import E2E_MESSAGE_TYPE

* fix constants import

* fix constants import

* fix E2E_BANNER_TYPE import

* fix E2E_ROOM_TYPES import

* fix THEME_PREFERENCES_KEY import

* fix CRASH_REPORT_KEY and ANALYTICS_EVENTS_KEY import

* fix MIN_ROCKETCHAT_VERSION import

* fix constantDisplayMode import

* fix environment imports

* fix links imports

* fix localAuthentication imports

* fix localPath imports

* fix messagesStatus imports

* fix messageTypeLoad imports

* fix defaultSettings imports

* fix tablet imports

* update with todo for colors

* move to lib folder

* change constant/colors to constant
2022-04-07 11:10:03 -03:00
Gleidson Daniel Silva 474ea98a3b
Chore: Create app/lib/navigation folder (#4027)
* change Navigation to appNavigation and move to navigation folder

* change ShareNavigation to shareNavigation and move to navigation folder

* fix navigation import

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-07 10:22:19 -03:00
Gleidson Daniel Silva 7d2ae5ea7c
Chore: Evaluate helpers and methods - Typescript (#4030)
* move userPreferences to methods folder

* create formatAttachmentUrl file

* create compareServerVersion file

* create generateLoadMoreId file
2022-04-07 10:13:19 -03:00
Gleidson Daniel Silva 2eba327396
Chore: Evaluate lib/rocketchat structure and files (#3986)
* create TSubscription type

* move logoutOtherLocations to restApis

* mvoe getUserInfo to restApi

* move constants to lib folder

* change Rocketchat methods to sdk methods

* move toggleFavorite to restApis

* move functions to rocketchat folder

* delete old rocketchat file :)

* fix imports

* fix lint and return types

* Fix subscribe to rooms not getting called

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-04 16:15:29 -03:00
Alex Junior 488074b4ae
Chore: Evaluate Message - TypeScript (#3944)
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-01 18:52:38 -03:00
Alex Junior 3b3cd67d78
Chore: Clean ReactionsModal - TypeScript (#3926) 2022-04-01 12:32:17 -03:00
Gleidson Daniel Silva cfe352dfbc
Chore: Clean SafeAreaView - Typescript (#3907)
* chore: clean SafeAreaView

* fix type

* update supported types
2022-03-31 19:46:11 -03:00
Gleidson Daniel Silva e0459aed89
Chore: Evaluate MessageBox - TypeScript (#3936)
* chore: migrate buttons

* chore: migrate CommandsPreview

* chore: migrate Mention

* chore: migrate Some files

* chore: migrate RecordAudio

* fix lint

* fix context value

* fix MessageBox types
2022-03-31 19:39:24 -03:00
Gleidson Daniel Silva 64b594f9ae
Chore: clean RoomHeader (#3923) 2022-03-31 19:29:14 -03:00
Diego Mello 4416f82665
Chore: Properly type MessageActions (#3930) 2022-03-31 09:38:20 -03:00
Gerzon Z 49c92cfa7b
[FIX] `AttachedActions`'s button (#3989)
* fix: `AttachedActions`'s button

* fix: text color

* update: `Message.storyshot`
2022-03-30 17:55:57 -04:00
Alex Junior 5a3ffe5136
[FIX] Animation to show all login services options (#3985)
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-03-29 20:56:50 -03:00
Reinaldo Neto 40cb3b1ae7
Chore: Evaluate UiKit - TypeScript (#3939)
* Chore: Evaluate UiKit - TypeScript

* minor tweak
2022-03-29 17:06:50 -03:00
Gerzon Z 1c70ffc614
Chore: Evaluate `Avatar` - TypeScript (#3929)
* update: `Avatar` component

remove: non-null assertion from ThreadMessagesView Item

* remove: `this.mounted` from `Avatar` component

update: navParam on MessageAvatar component
2022-03-29 12:23:45 -04:00
Gerzon Z 93c9d2efdf
Chore: use `@react-native-clipboard/clipboard` (#3950)
* add: @react-native-clipboard/clipboard

* create jest.setup.js file and centralizes all mocks on these folder for jest

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-03-29 12:09:44 -04:00
Gleidson Daniel Silva d9d9d35928
[FIX] Update navToRoom press verification (#3974) 2022-03-28 14:43:57 -03:00
Gleidson Daniel Silva f3cf4f1e7f
[FIX] Adds a check to see if the collapsed property exists. (#3973)
* Adds a check to see if the collapsed property exists.

* 👀

* update snapshot

* revert

* revert yarn.lock
2022-03-28 12:08:18 -03:00
Diego Mello 902827422b
Chore: Properly type Status (#3911)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-25 17:05:49 -03:00
Reinaldo Neto 70cb252d1b
Chore: Migrate containers: List to Typescript (#3921)
* Chore: Migrate containers: List to Typescript

* minor tweak

* fix storyshot List - item flatlist

* fix IListContainer

* fix type of childrens

* minor tweak
2022-03-25 15:09:02 -03:00
Reinaldo Neto 744712b8d5
Chore: Migrate containers: FormContainer to Typescript (#3922)
* Chore: Migrate containers: FormContainer to Typescript

* minor tweak

* theme fix

* fix react.reactelement[]

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-25 14:55:20 -03:00
Reinaldo Neto 6418803517
Chore: Evaluate Markdown - TypeScript (#3948) 2022-03-25 14:20:09 -03:00
Gerzon Z d5ac663199
[FIX] Drawer failing to open/close on ProfileView (#3963) 2022-03-25 11:35:25 -03:00
Gerzon Z f9064bf5af
Chore: Evaluate HeaderButton - TypeScript (#3925)
* update: `HeaderButton` components

* update: types

* fix types

* fix lint and update snapshot

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-03-24 15:55:01 -04:00
Gerzon Z 8ea183373e
[FIX] Audio thumb's size (#3945)
* update: Audio component
2022-03-23 10:49:45 -04:00
Gerzon Z 9a17ce91a8
[FIX] "Sent an attachment" text on media preview for threads (#3947)
* update: `Content` component

* update: `Message` snapshots
2022-03-23 10:37:11 -04:00
Reinaldo Neto 4d3c440892
Chore: Evaluate Passcode - TypeScript (#3931)
* Chore: Migrate containers: Passcode to Typescript

* minor tweak

* minor tweak
2022-03-22 21:43:59 -03:00
Alex Junior cbe2b23e27
Chore: Clean LoginServices - TypeScript (#3935) 2022-03-22 19:14:42 -03:00
Gleidson Daniel Silva 2fb7d917a7
Chore: Evaluate ActionSheet - TypeScript (#3927) 2022-03-22 17:44:27 -03:00
Gerzon Z e8d23791d3
Chore: Evaluate TextInput - TypeScript (#3908)
* update `TextInput` component

update: ActivityIndicator

* remove: `any`

* update: `TextInput` on `UIKit`

* Fix returnKeyType

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-03-22 14:01:54 -04:00
Alex Junior f90f1a326f
Chore: Clean MessageErrorActions - TypeScript (#3928) 2022-03-22 11:29:45 -03:00
Alex Junior e00580d84e
Chore: Clean ThreadDetails - TypeScript (#3924) 2022-03-22 11:16:41 -03:00
Alex Junior e1038af2f8
Chore: Clean InAppNotification - TypeScript (#3920) 2022-03-22 11:01:55 -03:00
Alex Junior 6f31a00e90
Chore: Clean Check component - TypeScript (#3919)
* chore: clear Check component

* chore: update tests
2022-03-22 10:53:09 -03:00
Alex Junior 571afcaab8
Chore: Clean TwoFactor - Typescript (#3912)
* chore: clean TwoFactor

* minor tweak

* minor refactor

* chore: removing console log
2022-03-22 10:44:07 -03:00
Gerzon Z b0580bf547
[NEW] Redesign quoted messages (#3883) 2022-03-21 17:44:06 -03:00
Reinaldo Neto 82acb917fc
[FIX] Wrong param sent to system message (#3943)
* [FIX] Display added user to team

* tweak when remove members from team too

* update storyshot

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2022-03-21 17:25:40 -03:00
Gleidson Daniel Silva 2ff48471d6
chore: Evaluate SearchBox (#3909) 2022-03-21 16:23:59 -03:00
Gleidson Daniel Silva 1a3d2fbc10
Chore: StatusBar theme and style props (#3906)
* chore: clean status bar and remove useless theme

* mend

* wip

* remove unused props
2022-03-21 16:10:11 -03:00
Reinaldo Neto 8af1d1ceb5
Chore: Migrate containers: Loading to Typescript (#3915) 2022-03-18 12:02:04 -03:00
Reinaldo Neto fae46f565b
Chore: Migrate containers: Toast to Typescript (#3913) 2022-03-18 11:25:03 -03:00
Gleidson Daniel Silva 75f3f90913
[NEW] Collapsible Message (#3879)
* create new collapsible component

* create collapsible tests and update snapshot

* fix quote :)

* update snapshot

* add support to color

* add collapsed prop

* fix some styles

* fix tests

* wip

* clean

* add CollapsibleQuote story

* better style

* update snapshots

* add better tests

* remove testID

* update storyshot
2022-03-18 07:01:30 -03:00
Gerzon Z 38b2b08278
Chore: Evaluate ActivityIndicator - TypeScript (#3914)
* update: `BackgroundContainer` and `ActivityIndicator`

* update: return type for `RCActivityIndicator`

* update: return type for `BackgroundContainer`
2022-03-17 22:37:10 -04:00
Gerzon Z 334b1bad7b
Chore: Evaluate BackgroundContainer - TypeScript (#3917)
* update: `BackgroundContainer`

* remove: `theme` from `IBackgroundContainer`

* update: return type for `BackgroundContainer`
2022-03-17 17:21:19 -04:00
Gerzon Z a1e33c4a69
Chore: evaluate Header components - TypeScript (#3918)
* update: Header components
2022-03-17 15:25:31 -04:00
Gerzon Z a754983ac8
Chore: Dehydrate share extension from rocketchat.js (#3753)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-16 17:40:32 -03:00
Reinaldo Neto 823d4c658c
Chore: Migrate methods/actions to Typescript and refactor UiKit folder (#3716)
* Chore: Migrate methods/actions to Typescript

* tweak in actions

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

* refactor sdk.current

* interface and uikit done

* refactor interface, index and utils from UiKit

* minor tweak

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-16 16:07:49 -03:00
Alex Junior 9650c98b4f
Chore: Migrate REST API - runSlashCommand to Typescript (#3893) 2022-03-15 22:14:50 -03:00
Danish Ahmed Mirza 1d04e9379f
[FIX] Mention from suggestions concatenates to query string on autocomplete (#3696)
* [FIX] Mention suggestion concatenate to query string

* Add function to get regexp and its tests in separate files

* Update getRegexp.ts

* Update file names

* Try new regex

* One regex for all mention types

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-15 16:33:43 -03:00
Reinaldo Neto 2cc4b9c1ba
Chore: Migrate REST API - getCommandPreview and executeCommandPreview to Typescript (#3897) 2022-03-15 11:41:23 -03:00
Alex Junior 8a1f81d707
Chore: Migrate REST API - getCommandPreview to Typescript (#3894) 2022-03-14 23:16:53 -03:00
Alex Junior cd00366613
Chore: Update react-native-mmkv-storage to 0.6.12 (#3634)
* chore: updating mmkv library

* feat: updating android ejson to use the getSecureKey new version

* feat: updating IOS files to use the getSecureKey new version

* feat: changing all mmkv methods to use sync calls

* feat: changing mmkv methods from Screen lock

* feat: changing all mmkv methods from login, ssl certificate and change/add server

* feat: changing all mmkv methods from login, ssl certificate and change/add server

* feat: changing all mmkv methods from logout

* feat: changing all mmkv methods from e2e

* fix: small fix at encryption and server drop down

* feat: changing all mmkv methods from set theme

* feat: changing all mmkv methods from openLink

* fix: setting up mmkv to works property on Android

* fix: fix an error to set the theme when open the app

* refactor: change the react-native branch (temporary)

* refactor: removing all `Async` from mmkv functions name

* refactor: removing await from unnecessary functions, removing console.log and update cocoapods

* refactor: removing unnecessary undefined from methods

* feat: creating a custom hook for mmkv

* refactor: changing the fetchPasscode to use the useUserPreferences hook

* refactor: changing setTheme from app/index

* refactor: small fix on setTheme

* chore: update mmkv to 0.6.11

* chore: update mmkv to 0.6.11

* chore: minor tweak

* chore: update mmkv to 0.6.12

* chore: mock NativeModules

* chore: fix test mmkv

* chore: removing custom MMKV JSI module, since is no more necessary after 0.6.11 version

* feat: removing some async calls from mmkv after update from develop

* feat: creating a function to get the initialTheme

* feat: removing unnecessary try/catch

* fix: fixing the blink white when open the app

* feat: changing useMMKVStorage to create from mmkv lib

* test: creating a mock for mmkv create function

* chore: fix errors on tablet

* minor tweak
2022-03-09 16:41:26 -03:00
Gerzon Z 80918f56fa
Chore: Dehydrate login methods from rocketchat.js (#3759)
* dehydrate login methods from rocketchat.js
2022-03-08 14:54:26 -04:00
Reinaldo Neto 9becdf564e
Chore: Migrate REST API - getListCannedResponse to Typescript (#3858) 2022-03-08 11:30:45 -03:00
Reinaldo Neto cbfa7bf43a
Chore: Migrate RoomInfoView to Typescript (#3778)
* Chore: Migrate RoomInfoView to Typescript

* tweak in avatar

* tweak with SubscriptionType

* minor tweak package

* Chore: Migrate RoomInfoView to Typescript

* tweak in avatar

* tweak with SubscriptionType

* minor tweak package

* react.reactelement | null

* minor tweak

* minor tweak livechatvisitor

* remove console.log

* Tweaks
2022-03-03 18:46:53 -03:00
Reinaldo Neto b06be5a2ac
Chore: Migrate methods/loadSurroundingMessages to Typescript (#3733)
* Chore: Migrate methods/loadSurroundingMessages to Typescript

* tweaks

* tweak

* tweak

* tweaks to make ts happy

* instead as IMessage is optional u

* enum to MessageTypeLoad

* minor tweaks
2022-03-03 17:25:03 -03:00
Diego Mello 6b3730ce43
Chore: Migrate RoomView to Typescript (#3754) 2022-03-02 11:18:01 -03:00
Gleidson Daniel Silva 4224f4d9d0
Chore: Migrate to TS RommInfoEditView (#3766)
* initial commit

* fix last types

* fix import

* fix lint
2022-02-25 18:24:08 -03:00
Alex Junior 91de74ed9f
Chore: Migrate views/RoomListView to typescript (#3758)
* chore: migrating RoomListView to ts

* chore: migrating RoomListView to ts

* chore: implementing types for RoomListView

* chore: change ChatsStackParamList for fix RoomListView errors

* chore: minor tweak

* chore: minor tweak

* chore: fix setTimeout type

* chore: applying changes requested

* chore: minor tweak
2022-02-25 15:59:39 -03:00
Diego Mello 51ed83a33e
[IMPROVE] Team system messages feedback (#3771)
* almost there

* Update stories
2022-02-23 17:31:14 -03:00
Alex Junior 17c63c717b
Chore: Migrate methods/sendFileMessage to typescript (#3683)
* chore: start the migration

* chore: update sendFileMessage to ts

* chore: removing an `any` from uploadQueue

* chore: minor tweak

* chore: minor tweak

* chore: minor tweaks after merge with developer

* chore: minor tweak after merge develop into current
2022-02-21 13:06:57 -03:00
Reinaldo Neto 5ac4700d51
Chore: Migrate Markdown to Typescript (#3558)
* Chore: Migrate Markdown to TS

* Chore: Migrate Markdown to TS

* minor tweak

* added preview where markdown was preview and fixed params within markdown

* removed ts-ignore

* fix lint

* removed numbersofline={0} and default value to numberOfLines=1

* change how to import markdown preview and remove numberOfLines

* using useTheme inside markdownPreview and remove theme from components

* minor tweak on interfaces

* isNewMarkdown return as boolean

* minor tweaks

* minor tweaks

* removed unused component

* fixed markdown stories

* updated snapshot because removed numberOfLines={0} from message/content

* create IEmoji.ts in definitions and refactor all places where getCustomEmoji was called

* onLinkPress typed

* todo: refactor navtoroominfo

* formatText.test.ts

* markdown stories to typescript too

* minor tweak

* IMessage definition

* refactor: update new types and interfaces for use ISubscription

* refactor: update threadItem for use new MarkdownPreview

* refactor: rollback wrong file commited

* formatHyperlink

* fix lint

* updated item story shot

* refactor and refactor some types

* Remove non-null assertion

* Minor change on useRealName

* tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-17 12:27:01 -03:00
Gerzon Z 86cc8a7d16
Chore: Migrate buildMessage to TS (#3732)
* migrate buildMessage to TS

* Fix lint

* minor tweak

* minor tweaks
2022-02-16 20:07:24 -04:00
Gleidson Daniel Silva 977cfd2863
[FIX] Inject Redux store to prevent/remove require cycles (#3691)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-09 18:16:20 -03:00
Danish Ahmed Mirza f78a763dfb
[FIX] Disable tap gesture on call messages (#3694) 2022-02-08 09:47:23 -03:00
Gerzon Z 2d1b093666
Chore: Migrate lib/utils to TypeScript (#3637)
* Migrate utils to TypeScript

* Add @types/semver

* Refactor compareServerVersion(currentVersion, oldVersion, func) to compareServerVersion(current, func, oldVersion)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-07 14:44:04 -04:00
Reinaldo Neto d894c6aab8
Regression: Prevent duplicated .jpg on file upload (#3658)
* [FIX] Regression: Prevent duplicated .jpg on file upload

* refactor to all files typed as image/jpeg

* isolate regexp to function

* refactor forceJpgExtension

* clean

* minor tweak

* [FIX] Regression: Prevent duplicated .jpg on file upload

* refactor to all files typed as image/jpeg

* isolate regexp to function

* refactor forceJpgExtension

* clean

* minor tweak

* refactored comment
2022-02-07 13:52:09 -03:00
Gerzon Z d246c2c6e8
Regression: Message press navigating to empty RoomView (#3680)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-07 11:41:29 -04:00
Reinaldo Neto 0289ba716d
Chore: Migrate LivechatEditView to Typescript (#3499)
* Chore: Migrate LivechatEditView to Typescript

* refactor: minor tweak

* refactor: fix the interfaces for input

* refactor: fix lint erros

* minor tweak with new navigation types

* function

* iroom tweak

* livechateditview tweak

* TextInput tweak

* refactor: update new types and interfaces for use ISubscription

* refactor to default useState type

* change the component name in SearchBox

* changed state type

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-07 12:18:37 -03:00
Reinaldo Neto 6933278fd5
Chore: Migrate CannedResponsesListView to Typescript (#3553)
* Chore: Migrate CannedResponsesListView to TS

* Moved IcannedResponse to definitions and fixed the index

* Chore: Migrate CannedResponseDetail to TS

* minor tweaks

* refactor: update new types and interfaces for use ISubscription

* fix lint error and canned responses's dropdown

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-04 19:15:01 -03:00
Gerzon Z 9caff40a2e Merge branch 'develop' into new.add-discusions-roomactionsview 2022-02-01 09:49:39 -04:00
Reinaldo Neto f88bdfb97c
Chore: Migrate Database to Typescript (#3580)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-01 10:39:09 -03:00
Gerzon Z 89613bb85b Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-31 17:32:49 -04:00
Gleidson Daniel Silva 2f7ff43ea0
[FIX] StoryShots not working for async rendered components (#3677) 2022-01-31 18:15:44 -03:00
Gerzon Z 5a320a806c
Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-28 10:59:02 -04:00
Gleidson Daniel Silva 8305d3dd6d
Merge branch 'develop' into chore/migration-ts-redux-users-typing 2022-01-26 09:52:14 -03:00
Gerzon Z 5d84468561 Minor tweaks 2022-01-24 15:12:09 -04:00
Gerzon Z bce775d88d Fix navigation logic and update interfaces 2022-01-24 14:35:06 -04:00
Gerzon Z 0a6e5d3fb0 Move onDiscussionpress logic on message, update SearchHeader and DiscussionDetails component, add useLayoutEffect at DiscussionsView 2022-01-24 11:51:31 -04:00
Diego Mello ea9a2da90a
Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-21 13:07:49 -03:00
Diego Mello 782bdda2c7
[IMPROVE] Convert HEIC images to JPG and remove compression (#3633) 2022-01-20 15:24:27 -03:00
GleidsonDaniel b0c45bad90 chore: fix types and apply IAplicationState to types 2022-01-18 12:04:40 -03:00
Gerzon Z 6c9a3f977e Minor tweaks 2022-01-17 16:15:58 -04:00
Gerzon Z 680476a9a7 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 16:02:53 -04:00
Gerzon Z 2946c4724e
[FIX] TypeScript's errors raised by HOCs (#3535)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-01-17 13:10:39 -03:00
Gerzon Z eb1712e5fb minor tweak 2022-01-17 10:47:15 -04:00
Danish Ahmed Mirza 11af3503b8
[FIX] Joining and leaving messages in teams (#3591)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-01-17 11:31:15 -03:00
Gerzon Z 18da04ba08 update definitions 2022-01-17 10:18:32 -04:00
Gerzon Z e010d804d5 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 10:12:19 -04:00
Gerzon Z dc70bf617b Add DiscussionDetails and Item for DiscussionsView; update ThreadDetails, BackgroundContainer and DiscussionsView 2022-01-14 13:38:08 -04:00
Reinaldo Neto a2b92f5e70
Chore: Migrate Utils Folder to Typescript (#3544)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2022-01-12 09:54:04 -03:00
Reinaldo Neto 13af9d80ed
Chore: Migrate Model's folder to Typescript (#3564) 2022-01-11 10:51:48 -03:00
Reinaldo Neto a1cee02fb0
[NEW] Permission for uploading files (#3505)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-12-13 13:27:01 -03:00
Gerzon Z 691bf1ef17
Chore: Migrate react-navigation to TypeScript (#3480)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-12-03 16:27:57 -03:00
Reinaldo Neto 11f00fb5f7
Chore: Migrate TeamChannelsView to Typescript (#3532)
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2021-12-02 10:58:49 -03:00
Reinaldo Neto 17c70e73d3
Chore: Migrate StatusView to Typescript (#3527)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-12-02 10:36:46 -03:00
Reinaldo Neto 8d06b17995
Chore: Migrate ScreenLockedView to Typescript (#3515) 2021-12-02 10:26:02 -03:00
Anant Bhasin f69b82dae9
Tests: Make Detox work on Android (#3051) 2021-12-02 10:19:15 -03:00
Gerzon Z 2b7f589847
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-11-23 12:02:43 -04:00
Reinaldo Neto 7715f93faf
Chore: Migrate ForwardLivechatView to Typescript (#3497)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-11-17 17:09:20 -03:00
Alex Junior b223a711a2
Chore: Migrate MessagesView to Typescript (#3447)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-11-16 13:10:49 -03:00
Alex Junior c216544cc4
[NEW] Preview or download attachments (#3470)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-11-16 12:59:58 -03:00
Reinaldo Neto 3249c54d03
Chore: Migrate CreateChannelView to Typescript (#3486)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-11-10 18:18:35 -03:00
Reinaldo Neto 138f0ab444
Chore: Migrate ChangePasscodeView to Typescript (#3482) 2021-11-10 17:50:38 -03:00
Reinaldo Neto 64f7b1f84f
Chore: Migrate SidebarView to Typescript (#3478)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-11-10 17:14:45 -03:00
Reinaldo Neto 0600c091d3
Chore: Migrate SearchMessagesView to Typescript
* Chore: Migrate SearchMessagesView to Typescript

* feat: minor tweak

* minor tweaks

* minor tweak

* minor tweak scrollPersist

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-10 14:56:19 -03:00
Gerzon Z 8e4d47cf7b
Chore: Migrate ProfileView to TypeScript
* Initial commit

* Fix module import

* Improve TextInput and KeyboardView interfaces and migrate scrollPersistTaps to TS

* update interfaces

* add new interfaces and extract them to their own file

* chore: migrate style.js to ts

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-10 12:10:34 -03:00
Gerzon Z a1c8ce0c7f Minor tweak 2021-10-29 12:16:52 -04:00
Gerzon Z ffb17d603e Minor tweaks 2021-10-29 11:56:57 -04:00
Gerzon Z 47f7ee8c91
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-27 10:42:17 -04:00
Diego Mello b2db7c8adf
[FIX] Different token types inside list items (#3458)
* Fix different token types inside list items

* Fixing more styles

* Update tests

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-10-27 10:13:20 -03:00
Diego Mello e0a0a31257
[FIX] Markdown not rendering as preview for threaded messages (#3465)
* Use older preview logic

* Stories
2021-10-27 10:09:09 -03:00
Gerzon Z 5dc0a0a05f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-20 18:10:30 -04:00
Reinaldo Neto 27db881962
Chore: Migrate NewServerView to Typescript (#3431)
* Chore: Migrate NewServerView to Typescript

* fix one alert lgtm

* Item.tsx

* export interface and try to rewrite write instead action

* minor tweak

* minor tweak

* refactor: change the type of username to connectServer

* refactor scaling

* minor tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-20 15:04:15 -03:00
Gerzon Z 9922fdd7e5
Chore: Migrate LoginView to TypeScript (#3423)
* Initial commit

* Update interface

* Minor tweaks

* Update FormContainer.tsx

* Minor tweaks

* update snapshots

* Update TextInput interface

* Update snapshots

* Merge branch 'develop' into chore.migrate-loginview-ts

* Minor tweak
2021-10-20 14:45:47 -03:00
Reinaldo Neto 15ccb73f37
[NEW] Flow to resend email confirmation from mobile (#3439)
* [NEW] Flow to resend email confirmation from mobile

* Hooks

* theme

* minor tweak

* refactor: improving withTheme ts

* minor tweaks

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-20 13:42:44 -03:00
Gerzon Z 76a99519ec
[NEW] Support new message parser (#3313)
* Add message parser to profile view and db

* Add md to db

* Remove changes to Xcode project

* Remove message-parser lib and add enable message parser field to User model

* Fix message parser

* Remove admin enableMessageParserEarlyAdoption

* Add NewMarkdown component

* Remove NewMarkdown component and add specific components for new message parser

* Add new parser components

* Fix BigEmoji

* Updated components and added more Code components

* update components and add storybooks

* Update Code component and add it to storybooks

* Update Mention component

* Minor tweaks

* Add server message parser validation

* Renamed folder, add @rocket.chat/message-parser, migrate some files to TypeScript

* Migrate components to TypeScript and fix styling

* Change interfaces and add TaskListComponent and styles

* Fix new markdown and styles

* Fix inlinecode

* Stop using server setting

* Use enableMessageParserEarlyAdoption on mapStateToProps

* Remove React.FC

* add link to bold, italic and strike

* Update parser components

* Fix missing components

* Minor tweak

* Fix lint and add getCustomEmojis

* Fix customEmojis

* Update emojis

* Minor tweak

* disconnect markdown from store

* Use @rocket.chat/message-parser@0.30.0

* Fix link style

* Unify lists and styles

* Remove style prop

* Use big emoji as a normal token

* Remove unnecessary memo

* Fix code styles

* Update tests

* Conditionally create renderer

* Use Context instead of prop drill

* Fix Link component

* Fix plain text regression and update tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:32:58 -03:00
Gerzon Z 086d13b4ef Remove no-non-null-assertion 2021-10-13 11:59:16 -04:00
Gerzon Z 714608cc36 Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-13 11:46:50 -04:00
Reinaldo Neto 27dd007874
[NEW] Display preferences screen (#3318)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-06 17:30:10 -03:00
Gerzon Z dcb79b18a4
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-06 11:17:05 -04:00
Gerzon Z 1d40c3ba7e Update snapshots 2021-10-06 11:16:29 -04:00
Reinaldo Neto aba0e49194
Chore: Migrate WorkspaceView to Typescript (#3416)
* [CHORE] WorkspaceView migration to Typescript

* minor tweak
2021-10-05 17:48:04 -03:00
Gerzon Z a226cad57c Undo changes, add timeFormat prop 2021-10-05 12:00:00 -04:00
Gerzon Z 89a2381a1e test commit 2021-10-04 18:03:28 -04:00
Gerzon Z eedfd42162 Minor tweak 2021-10-04 13:19:01 -04:00
Gerzon Z f9dc2a975f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-04 13:14:07 -04:00
Reinaldo Neto 8916a195a8
[FIX] Toggle password visibility button not working (#3404)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:36:59 -03:00
Gerzon Z f196a7afaf
Chore: Update Reanimated to 2.2.2 (#3341)
* Update reanimated to 2.2.0

* Podfile and Manifest

* Update MainApplication.java

* Merge develop to branch

* Update yarn.lock

* Run yarn

* Other fixes

* Fix for Android build https://github.com/software-mansion/react-native-reanimated/issues/2412#issuecomment-917958173

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:34: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
Diego Mello 30aab71db1
[FIX] Preserve voice message if recording is interrupted (#3397)
* 7c25909671

* Minor changes

Co-authored-by: Marco Jakobs <mj@jacotec.de>
2021-09-23 09:16:23 -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 0871849de8
[IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
2021-09-21 11:47:00 -03:00
Gerzon Z d1d35c7a6e Minor tweak 2021-09-17 16:33:22 -04:00
Gerzon Z df480fb8ae Update property type rule 2021-09-17 16:26:10 -04:00
Gerzon Z 5379109882 Rollback interfaces changes 2021-09-17 16:25:07 -04:00
Gerzon Z ec665e0bdb Simplify logic 2021-09-17 16:22:02 -04:00
Gerzon Z c641bf5577 Fix threads 2021-09-17 16:10:57 -04:00
Gerzon Z 9473bf4024 Minor tweaks 2021-09-17 15:55:06 -04:00
Gerzon Z 6128bc4e50 Migrate SearchHeader to TS 2021-09-17 15:22:40 -04:00
Gerzon Z ecee12c9d0 Migrate to TypeScript, update interfaces and some changes to container components 2021-09-17 15:15:26 -04:00
Diego Mello 191e71c887
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-09-15 17:38:14 -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
Gerzon Z f4c86eca29 Merge develop into branch 2021-09-14 15:30:03 -04:00