Commit Graph

728 Commits

Author SHA1 Message Date
Reinaldo Neto ccd1b6596e
Chore: Migrate DefaultBrowserView to Typescript (#3488)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-17 16:55:22 -03:00
Reinaldo Neto 2b3542d4ae
Chore: Migrate ShareView to Typescript (#3481) 2021-11-16 13:19:50 -03:00
Reinaldo Neto 8e55032118
Chore: Migrate UserNotificationPreferencesView to Typescript (#3469)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-16 13:16:29 -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 251b42ca54
[IMPROVE] Open Jitsi call even if server isn't found (#3442) 2021-11-16 13:04:33 -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 8b4e39d1cf
Chore: Migrate AddExistingChannelView to Typescript (#3474) 2021-11-10 17:41:13 -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 e17817ae06
Chore: Migrate AddChannelTeamView to Typescript (#3471)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-10 16:12:26 -03:00
Reinaldo Neto a6e87c1236
Chore: Migrate UserPreserencesView to Typescript
* chore: migrate the view UserPrederencesView to ts

Co-authored-by: Natilorens <nathalialorenacardoso@gmail.com>

* minor tweak

Co-authored-by: FranciscoHeronildo <heronildo.2010@hotmail.com>
Co-authored-by: Natilorens <nathalialorenacardoso@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-10 15:43:35 -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
Reinaldo Neto a54d568f2f
Chore: Migrate ReadReceiptView to Typescript
* Chore: Migrate ReadReceiptView to Typescript

* feat: minor tweak

* refactor: minor tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-11-10 14:43:20 -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
Alex Junior 7d15e2d309
Chore: Migrate NotificationPreferencesView to Typescript
* chore: migrate the view NotificationPreferencesView to ts

* chore: change the type of `room` to use Observable and Subscription
2021-11-10 11:55:37 -03:00
Alex Junior f52a017ff3
Chore: Migrate LanguageView to TypeScript
* chore: migrate the view LanguageView to ts

* chore: create the `ILanguageViewState` interface
2021-11-10 11:35:01 -03:00
Alex Junior 6746d674cc
Chore: Migrate InviteUsersEditView to TypeScript
* chore: migrate the view InviteUsersEditView to ts

* refactor: change some requestes after code review

* minor tweaks

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2021-11-10 11:11:05 -03:00
Reinaldo Neto 2ab1bacdb3
[NEW] Direct link to a threaded conversation (#3406)
* [FIX] deeplinking to thread

* fix how to find threadId

* tmid as route params jumpToThreaId

* minor tweak

* minor tweak on logic

* E2E Test

* minor tweak

* wait for the return of the thread

* Minor refactor

* Fix e2e tests for docker

* popToRoot when focused and there is a jumpToThread

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-26 13:11:50 -03:00
Gerzon Z 87a99089ce
[FIX] NewServerView skipping WorkspaceView (#3455)
* Initial commit

* Fix interface

* Unrequired change on onPress/onSubmit
2021-10-26 10:39:13 -03: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
Reinaldo Neto 744893fa31
Chore: Migrate AuthenticationWebView to Typescript (#3441)
* Chore: Migrate AuthenticationWebView to Typescript

* minor tweak

* added @types/url-parser
2021-10-20 15:00:35 -03:00
Gerzon Z 30a84a9292
Chore: Migrate SettingsView to TypeScript (#3430) 2021-10-20 14:56:52 -03:00
Gerzon Z 839645e42c
Chore: Migrate RegisterView to TypeScript (#3417)
* start migration to typescript

* update interface for RegisterView and TextInput

* Update types TextInput

* Minor tweak

* Update TextInput interface

* Minor change

* Update FormContainer.tsx

* Minor tweaks

* style: adding ts-ignore to fix later

* Minor tweak

* update storyshots

* Update TextInput interface

* Minor tweak

* Update snapshots

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 14:53:35 -03:00
Reinaldo Neto 7728997e3e
Chore: Migrate InviteUsersView to Typescript (#3426)
* Chore: Migrate InviteUsersView to ts

* minor tweaks

* minor tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-20 14:49:48 -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
William Reiske 467a1a5217
[IMPROVE] Pull down to refresh read receipts (#3427)
* [FEATURE] Pull down to refresh read receipts

This commit introduces a new feature to allow users to pull down to refresh read receipts.

* Support pull down to refresh when we renderEmpty

This adds support for the pull-down refresh to work when there are no read receipts yet.

* Removed extra new lines added while debugging.

* Minor polishing

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 14:02:55 -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
Reinaldo Neto 42c69f0c06
[FIX] Make sure messages are loading properly (#3227)
* [FIX] Conditional to compare the server version and filter or not the system messages

* instead of lowerThanOrEqualTo using lowerThan

* To do a reactive message list

* minor tweaks

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:35:28 -03:00
Reinaldo Neto 1889918875
[FIX] Disable swipe when room is not joined (#3319)
* [FIX] swipe when the user is joined and not when isn't

* Added a new conditional to check if is swipeble or not

* Minor tweaks

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:34:38 -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
Reinaldo Neto fb71b60d54
Chore: Migrate LegalView to typescript (#3425)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-06 17:36:46 -03: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
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