Commit Graph

255 Commits

Author SHA1 Message Date
Reinaldo Neto fb11932d0b
Chore: Evaluate AuthenticationWebView - TypeScript (#4158) 2022-05-11 13:59:57 -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
Alex Junior 55d66c85db
Chore: Evaluate ProfileView - Typescript (#4091) 2022-05-06 23:11:07 -03:00
Alex Junior 8ca73e273a
Chore: Evaluate emoji picker - TypeScript (#4069) 2022-05-06 22:06:08 -03:00
Reinaldo Neto 82bca54575
Chore: Evaluate WorkspaceView - TypeScript (#4077) 2022-05-02 22:27:33 -03:00
Reinaldo Neto 10c4fddd61
Chore: Evaluate ShareListView - TypeScript (#4117) 2022-05-02 22:06:19 -03:00
Reinaldo Neto fe1b8b75bd
Chore: Evaluate CannedResponsesListView - TypeScript (#4149) 2022-05-02 21:30:20 -03:00
Reinaldo Neto 93c3c5f3a9
Chore: Evaluate RoomActionsView - TypeScript (#4148) 2022-05-02 20:13:39 -03:00
Reinaldo Neto cb1dabbc16
Chore: Evaluate CreateDiscussionView - TypeScript (#4133) 2022-05-02 19:48:29 -03:00
Alex Junior b63f514df7
Chore: Evaluate NotificationPreferencesView - Typescript (#4099) 2022-05-02 15:24:17 -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 a27d63c22e
Chore: Evaluate DirectoryView - TypeScript (#4130) 2022-05-02 08:53:47 -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
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 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
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
Gleidson Daniel Silva 5494037f78
Chore: Upgrade react-native-notifications to 4.2.4 (#3958)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-07 16:14:04 -03: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
Gerzon Z 13a2962fa2
Chore: evaluate getUserSelector (#4013)
* update: type for user

* update: LanguageView's user type

* update: UserNotificationPreferencesView's user

* chore: set `enableMessageParserEarlyAdoption` as non-optional
2022-04-07 12:27:45 -04: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 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
Gleidson Daniel Silva 5bd060b7b2
Chore: Add `colors` prop to useTheme hook (#3993)
* create react-native-appearance mock

* create base for colors theme

* mend

* export TColors prop

* update snapshot
2022-03-31 20:04:29 -03:00
Diego Mello 4416f82665
Chore: Properly type MessageActions (#3930) 2022-03-31 09:38:20 -03:00
Reinaldo Neto 40cb3b1ae7
Chore: Evaluate UiKit - TypeScript (#3939)
* Chore: Evaluate UiKit - TypeScript

* minor tweak
2022-03-29 17:06:50 -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
Alex Junior cbe2b23e27
Chore: Clean LoginServices - TypeScript (#3935) 2022-03-22 19:14:42 -03:00
Alex Junior f90f1a326f
Chore: Clean MessageErrorActions - TypeScript (#3928) 2022-03-22 11:29:45 -03:00
Gerzon Z b0580bf547
[NEW] Redesign quoted messages (#3883) 2022-03-21 17:44:06 -03:00
Reinaldo Neto 0582cdfa61
Chore: Migrate REST API - e2eFetchMyKeys to Typescript (#3942) 2022-03-21 13:56:38 -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
Alex Junior 11a809a065
Chore: Migrate REST API - getThreadsList to Typescript (#3895)
* chore: add rest api return

* chore: removing sort param
2022-03-16 23:24:22 -03: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 e792f2a49b
Chore: Migrate REST API - registerPushToken to Typescript (#3902) 2022-03-16 17:04:16 -03:00
Alex Junior f98f2a46d9
Chore: Migrate REST API - getRoomMembers to Typescript (#3899) 2022-03-15 22:37:49 -03:00
Alex Junior 4cfadbc97b
Chore: Migrate REST API - getSyncThreadsList to Typescript (#3896) 2022-03-15 22:25:48 -03:00
Alex Junior 9650c98b4f
Chore: Migrate REST API - runSlashCommand to Typescript (#3893) 2022-03-15 22:14:50 -03:00
Reinaldo Neto ee336a84a3
Chore: Migrate REST API - getDirectory to Typescript (#3898) 2022-03-15 13:47:40 -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
Reinaldo Neto de8a7f1ce0
Chore: Migrate REST API - addUsersToRoom to Typescript (#3884)
* Chore: Migrate REST API - addUsersToRoom to Typescript

* Update app/lib/rocketchat/services/restApi.ts

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

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-14 21:29:48 -03:00
Reinaldo Neto db5c7d94aa
Chore: Migrate REST API - getRoomRoles to Typescript and fix getRoomMembers (#3868)
* Chore: Migrate REST API - getRoomRoles to Typescript and fix getRoomMembers

* change GetRoomRoles local
2022-03-14 21:11:34 -03:00
Reinaldo Neto 307ae1295f
Chore: Migrate REST API - e2eResetOwnKey to Typescript (#3888)
* Chore: Migrate REST API - e2eResetOwnKey to Typescript

* Update app/lib/rocketchat/services/restApi.ts

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-14 11:56:49 -03:00
Reinaldo Neto 6ff2fc37d0
Chore: Migrate REST API - editMessage to Typescript (#3887)
* Chore: Migrate REST API - editMessage to Typescript

* minor tweak
2022-03-14 11:18:53 -03:00
Reinaldo Neto 7bf0de5825
Chore: Migrate REST API - getReadReceipts to Typescript (#3877) 2022-03-14 10:32:22 -03:00
Reinaldo Neto cfb10ada60
Chore: Migrate REST API - editLivechat to Typescript (#3878) 2022-03-14 10:23:20 -03:00
Alex Junior d73da2942b
Chore: Migrate REST API - getFiles to Typescript (#3873) 2022-03-10 12:29:33 -03:00
Alex Junior b5f8f6f305
Chore: Migrate REST API - searchMessages to Typescript (#3874) 2022-03-10 12:17:49 -03:00
Alex Junior 69cf9b638e
Chore: Migrate REST API - getMessages to Typescript (#3875) 2022-03-10 12:00:50 -03:00
Reinaldo Neto 4dc43313ab
Chore: Migrate REST API - getUsernameSuggestion to Typescript (#3872) 2022-03-10 10:44:55 -03:00
Reinaldo Neto c4124af73a
Chore: Migrate REST API - resetAvatar to Typescript (#3870) 2022-03-10 09:37:54 -03:00
Reinaldo Neto 5d28453201
Chore: Migrate REST API - getAvatarSuggestion to Typescript (#3869) 2022-03-10 09:25:25 -03:00
Alex Junior 4ea8d613a9
Chore: Migrate REST API - getUserPreferences to Typescript (#3830) 2022-03-09 21:16:20 -03:00
Reinaldo Neto 60ecbe284c
Chore: Migrate REST API - saveUserProfile to Typescript (#3863)
* Chore: Migrate REST API - saveUserProfile to Typescript

* minor tweak
2022-03-09 15:10:36 -03:00
Alex Junior b962925121
chore: add rest api return (#3865) 2022-03-09 14:04:25 -03:00
Alex Junior abd9722133
chore: add rest api return (#3864) 2022-03-09 13:49:52 -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
Gerzon Z 15f573a703
Chore: Migrate REST API - getTeamListRoom to TS (#3840)
* add: `teams.listRooms` types

* add: `PaginatedResult<T>` to `teams.ts`
2022-03-08 13:59:17 -04:00
Alex Junior b2bd71e83e
Chore: Server API types - chat.getDiscussions (#3776)
* chore: implementing type for test api - getDiscussions

* Fix DiscussionDetails count usage

* chore: update getDiscussions to use IMessageFromServer

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-03-08 14:09:45 -03:00
Diego Mello 09f73aee3d
Chore: Create IServerRoom and IServerSubscription (#3782) 2022-03-08 13:25:27 -03:00
Reinaldo Neto 679a628f75
Chore: Migrate REST API - getAgentDepartments to Typescript (#3855) 2022-03-08 12:04:41 -03:00
Reinaldo Neto c758fa5c9f
Chore: Migrate REST API - getCustomFields to Typescript (#3856)
* Chore: Migrate REST API - getCustomFields to Typescript

* minor tweak
2022-03-08 11:37:38 -03:00
Reinaldo Neto 9becdf564e
Chore: Migrate REST API - getListCannedResponse to Typescript (#3858) 2022-03-08 11:30:45 -03:00
Gleidson Daniel Silva e2612eb455
Chore: Migrate search and localSearch methods to Typescript (#3751)
* chore: migrate search to typescript

* fix types

* fix type

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-03-08 11:24:21 -03:00
Gerzon Z d7c46a27d0
Chore: Migrate REST API - getChannelInfo to TS (#3839)
* add: type for REST API `channels.info`

* add: `ts-ignore` to `RoomActionsView`
2022-03-08 09:46:33 -04:00
Gerzon Z 8decd0f4b6
Chore: Migrate normalizeMessage to TS (#3743)
* migrate normalizeMessage to ts

* fix: missing null validations and type aliases
2022-03-07 22:54:34 -04:00
Reinaldo Neto 004f4ab0ee
Chore: Migrate REST API - getTagsList to Typescript (#3854) 2022-03-07 23:30:13 -03:00
Reinaldo Neto b7e523a267
Chore: Migrate ee/omnichannel folder to Typescript (#3749)
* Chore: Migrate ee/omnichannel folder to Typescript

* omnichannelstatus and queue list

* boolean searching and react.ref

* test initi

* test and refactor interfaces

* minor tweak

* minor tweaks
2022-03-07 18:16:20 -03:00
Reinaldo Neto 45c0e0630c
Chore: Migrate REST API - getRoomCounters to Typescript (#3842)
* Chore: Migrate REST API - getRoomCounters to Typescript

* minor tweak
2022-03-07 13:48:33 -03:00
Reinaldo Neto 4d6f21647e
Chore: Migrate REST API - joinRoom to Typescript (#3835)
* Chore: Migrate REST API - joinRoom to Typescript

* join to discussion
2022-03-07 13:07:40 -03:00
Alex Junior 637d69bb17
chore: add rest api return (#3848) 2022-03-07 12:52:22 -03:00
Alex Junior 518ad5f64e
chore: add rest api return (#3847) 2022-03-07 12:40:38 -03:00
Reinaldo Neto b21d044f13
Chore: Migrate REST API - spotlight to Typescript (#3821)
* Chore: Migrate REST API - spotlight to Typescript

* minor tweak
2022-03-07 12:16:20 -03:00
Alex Junior d43da089bf
Chore: Migrate REST API - setUserStatus to Typescript (#3828)
* chore: add rest api return

* chore: add rest api return
2022-03-07 12:00:39 -03:00
Alex Junior c72b524ac0
chore: add rest api return (#3849) 2022-03-07 11:47:06 -03:00
Alex Junior ec7538abfd
chore: add rest api return (#3850) 2022-03-07 11:08:45 -03:00
Gleidson Daniel Silva 1ef9f57f3d
Chore: Migrate REST API - hideRoom to Typescript (#3832) 2022-03-07 09:57:57 -03:00
Gleidson Daniel Silva 82439159a5
Chore: Migrate REST API - removeUserFromRoom to Typescript (#3837) 2022-03-07 09:44:11 -03:00
Gleidson Daniel Silva 256bf0eaee
Chore: Migrate REST API - deleteRoom to Typescript (#3834) 2022-03-07 09:33:58 -03:00
Gleidson Daniel Silva 892e919768
Chore: Migrate REST API - leaveRoom to Typescript (#3833)
* chore: add rest api type

* remove any
2022-03-07 09:20:12 -03:00
Alex Junior a9f074d20a
chore: add rest api return (#3826) 2022-03-05 00:40:41 -03:00
Alex Junior f69ef6e59b
chore: add rest api return (#3829) 2022-03-05 00:28:36 -03:00
Alex Junior 70c15343e8
chore: add rest api return (#3825) 2022-03-05 00:17:24 -03:00
Alex Junior 4989e6cb5c
chore: add rest api return (#3824) 2022-03-05 00:08:26 -03:00
Alex Junior 0444e9b846
Chore: Migrate REST API - updateJitsiTimeout to Typescript (#3822)
* chore: add rest api return

* chore: add rest api return
2022-03-04 23:29:12 -03:00
Gleidson Daniel Silva cbb1d0f3cf
Chore: Migrate REST API - forgotPassword to Typescript (#3818) 2022-03-04 11:18:06 -03:00
Gleidson Daniel Silva 9265dc345d
Chore: Migrate REST API - updateGroupKey to Typescript (#3817) 2022-03-04 11:08:36 -03:00
Gleidson Daniel Silva 4bd9dc0e09
Chore: Migrate REST API - removeTeamRoom to Typescript (#3819) 2022-03-04 11:00:17 -03:00
Gleidson Daniel Silva 2e95a3c9a7
Chore: Migrate REST API - e2eSetRoomKeyID to Typescript (#3816) 2022-03-04 10:51:39 -03:00
Gleidson Daniel Silva a7ecc1e427
Chore: Migrate REST API - toggleRead to Typescript (#3820) 2022-03-04 10:38:05 -03:00
Alex Junior c6824e7fcf
Chore: Migrate REST API - merge v1/user in v1/users (#3827) 2022-03-04 10:18:07 -03:00
Alex Junior 3a7ec74e5a
Chore: Migrate subscriptions/room to TS (#3752)
* chore: initial commit

* chore: fix readMessages

* chore: removing some `any`

* chore: removing some `any`

* chore: removing some `any`

* chore: fix erros after merge develop inside this branch

* chore: minor tweak

* chore: applying changes requested

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-03 21:49:20 -03:00
Alex Junior 765e526bbf
Chore: Migrate subscriptions/rooms to TS (#3748)
* chore: migrate subscriptions rooms to ts

* chore: adding a TODO to remember this problem

* chore: removing unnecessary todos

* chore: minor tweak after develop updates

* chore: migrate message service to ts

* chore: minor tweaks

* chore: minor tweak

* chore: minor tweak after merge develop into this branch

* chore: minor tweak after merge with dev

* minor tweak
2022-03-03 21:23:11 -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
Gerzon Z 399cdac452
Chore: Migrate REST API - teamListRoomsOfUser to TS (#3805)
* migrate REST API `teams.listRoomsOfUser` to TypeScript

* update: `rooms` type on `teams.listRoomsOfUser`

* update: if-conditionals on `RoomActionsView`
2022-03-03 00:58:14 -04:00
Alex Junior 214cf52cf9
Chore: Server API types - teams.updateRoom (#3774)
* chore: type the API call `teams.updateRoom`

* chore: creating the interface `IServerTeamUpdateRoom`

* chore: minor tweak after merge
2022-03-02 23:22:59 -03:00
Alex Junior 7de686b0e8
Chore: Server API types - user.setPreferences (#3781)
* chore: implementing type for test api - user.setPreferences

* chore: minor tweak
2022-03-02 22:53:44 -03:00
Gerzon Z 4ba7f16b71
Chore: Migrate REST API - deleteMessage to TS (#3802)
* Migrate REST API `chats.delete` to TypeScript
2022-03-02 17:45:05 -04:00