Commit Graph

265 Commits

Author SHA1 Message Date
AlexAlexandre 63a3e91fd9 creating the IThread interface 2021-12-14 23:09:30 -03:00
AlexAlexandre d649eb5f4e refactor: change the room interface 2021-12-14 20:44:49 -03:00
AlexAlexandre 5635fbbebb minor tweak 2021-12-10 12:06:30 -03:00
AlexAlexandre 13ee494d8a minor tweak 2021-12-09 21:10:35 -03:00
AlexAlexandre 91f73a5101 typing replyBroadcast 2021-12-09 16:59:49 -03:00
AlexAlexandre b211b5a948 updating the UploadProgress 2021-12-09 16:57:53 -03:00
AlexAlexandre 5622d1b25d typing the listRef as a flatList and removing the `.getNode()` 2021-12-09 16:43:27 -03:00
AlexAlexandre 2ca5a06c5e updating the IRoomListProps 2021-12-09 15:08:05 -03:00
AlexAlexandre 0694666a21 chore: minor tweak 2021-12-08 13:09:10 -03:00
AlexAlexandre 0cf9405a65 chore: minor tweak 2021-12-08 04:12:58 -03:00
AlexAlexandre 9519ae50e7 chore: minor tweak 2021-12-08 03:10:34 -03:00
AlexAlexandre 475d6be5b0 chore: minor tweak 2021-12-08 02:41:40 -03:00
AlexAlexandre e6a05f4434 chore: minor tweaks 2021-12-08 02:19:44 -03:00
AlexAlexandre 1dc978cc88 chore: resolving problems with the RightButtons 2021-12-08 00:45:19 -03:00
AlexAlexandre e738f5c80f chore: minor tweak 2021-12-07 22:33:06 -03:00
AlexAlexandre 42d1744cc3 chore: removing forgotten property 2021-12-07 21:47:02 -03:00
AlexAlexandre 2d45e288fb chore: removing forgotten property 2021-12-07 17:04:21 -03:00
AlexAlexandre bd34344a0c chore: minor tweaks 2021-12-07 16:50:32 -03:00
AlexAlexandre 2493cf3f59 chore: minor tweaks 2021-12-07 15:37:34 -03:00
AlexAlexandre ba2b9e862b chore: minor tweaks 2021-12-07 15:13:30 -03:00
AlexAlexandre 244c2a05a9 chore: minor tweaks 2021-12-07 01:18:58 -03:00
AlexAlexandre f68ed794d2 chore: minor tweaks 2021-12-06 23:16:26 -03:00
AlexAlexandre d675828c28 chore: minor tweaks 2021-12-06 21:58:57 -03:00
AlexAlexandre 8a4892e61e chore: changing other components to room requirements 2021-12-06 21:30:49 -03:00
AlexAlexandre 55982566f7 chore: migrate room to ts 2021-12-03 20:19:44 -03:00
AlexAlexandre 8239c4489a chore: migrate services room to ts 2021-12-03 18:26:47 -03:00
AlexAlexandre a6146bd02b chore: Migrate List room to ts 2021-12-03 10:06:25 -03:00
AlexAlexandre dc3e21056e chore: Migrate List room to ts 2021-12-02 19:11:16 -03:00
AlexAlexandre 6e5df501cb chore: Migrate LoadMore room to ts 2021-12-02 18:19:52 -03:00
AlexAlexandre 46cf0f8e6f chore: Migrate RightButtonsContainer room to ts 2021-12-02 17:47:01 -03:00
AlexAlexandre 9b746cf1e0 chore: Migrate LeftButtons room to ts 2021-12-02 17:11:49 -03:00
AlexAlexandre 87f7c15dfa chore: Migrate UploadProgress room to ts 2021-12-02 17:03:56 -03:00
AlexAlexandre 7408cf88fe chore: Migrate JoinCode room to ts 2021-12-02 00:20:03 -03:00
AlexAlexandre 1849c295a2 chore: Migrate ReactionPicker room to ts 2021-12-01 23:52:17 -03:00
AlexAlexandre 3c5d0f127c chore: Migrate separator room to ts 2021-12-01 23:31:02 -03:00
AlexAlexandre 161e667678 chore: start the RoomView migrate to typescript 2021-12-01 23:24:51 -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
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 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 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 a52199a49c
[NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-22 14:29:26 -03:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Sumukha Hegde 9bfe0e9912
[FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list

fixes: #2684

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

* Fix the props passed in Message

* Function to context

* Added button attachment to stories

* New snapshot

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:29:34 -03:00
Reinaldo Neto 5c6b4633bc
[FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:45:02 -03:00
Reinaldo Neto bea88afca7
[FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:43:09 -03:00
Reinaldo Neto 300c1f96f0
[FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification

* Bug fix to scroll proper the last message

* Minor tweak

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

* Fix thread tests

* Remove unnecessary function and uncomment tests

* Minor tweak

* Fix tests and minor tweaks

* Minor tweaks

* Update docker data

* Fix docker

* Fix duplicated testid

* Minor refactor

* Fix jump to old message test

* Fix load on scroll

* Add fab test

* Minor addition

* stash

* almost there

* Final changes

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-22 16:41:55 -03:00
Gerzon Z 5fd7981d07
[NEW] Convert/Move Channel to Team (#3164)
* Added Create Team

* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView

* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView

* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view

* Minor tweaks

* Show TeamChannelsView only if joined the team

* Minor tweak

* Added AddChannelTeamView

* Added permissions, translations strings for teams,  deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView

* Refactor touch component and update removeRoom and deleteRoom methods

* Minor tweaks

* Minor tweaks for removing channels and addExistingChannelView

* Added missing events and fixed channels list

* Minor tweaks for refactored touch component

* Added SelectListView and logic for leaving team

* Added addTeamMember and removeTeamMember

* Minor tweak

* Added deleteTeam function

* Minor tweak

* Minor tweaks

* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable

* Remove unnecesary prop

* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable

* Minor tweak

* Update loadMessagesForRoom.js

* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item

* Fix unnecessary changes

* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView

* Updated styles, added tag story

* Minor tweak

* Minor tweaks

* Auto-join tweak

* Minor tweaks

* Minor tweak on search

* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam

* Minor tweaks

* Update SelectListView

* Update handleLeaveTeam, remove unnecessary method, add story

* Minor tweak

* Minor visual tweaks

* Update SelectListView.js

* Update index.js

* Update RoomMembersView

* Updated SelectListView, RoomActionsView, leaveTeam method and string translations

* Update SelectListVIew

* Minor tweak

* Update SelectListView

* Minor tweak

* Minor tweaks

* Fix for List.Item subtitles being pushed down by title's flex

* Minor tweaks

* Update RoomActionsView

* Use showConfirmationAlert and showErrorAlert

* Remove addTeamMember, update removeTeamMember

* Update Alert

* Minor tweaks

* Minor tweaks

* Minor tweak

* Update showActionSheet on RoomMembersView

* Remove team main from query and move code around

* Fetch roles

* Update RoomMembersView and SelectListView

* Update rocketchat.js

* Updated leaveTeam and handleRemoveFromTeam

* Fix validation

* Remove unnecessary function

* Update RoomActionsView

* Update en.json

* updated deleteTeam function and permissions

* Added showConfirmationAlert

* Added string translations for teams

* Fix permission

* Added moveChannelToTeam and convertToTeam functionality

* Fix SelectListView RadioButton

* Fix moveToTeam

* Added searchBar to SelectListVIew

* Update RoomView , SelectListVIew and string translation for error

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-02 10:44:19 -03:00
Diego Mello 3ef4ef5317
[NEW] Jump to message (#3099)
* Scrolling

* Add loadMore button at the end of loadMessagesForRoom

* Delete dummy item on tap

* Only insert loadMore dummy if there's more data

* load surrounding messages

* fixes and load next

* First dummy and dummy-next

* Save load next messages

* Check if message exists before fetching surroundings

* Refactoring List

* Jumping to message :)

* Showing blocking loader while scrolling/fetching message

* Check if message exists on local db before inserting dummy

* Delete dummies automatically when the message sent to updateMessages again

* Minor cleanup

* Fix scroll

* Highlight message

* Jump to bottom

* Load more on scroll

* Adding stories to LoadMore

* Refactoring

* Add loading indicator to LoadMore

* Small refactor

* Add LoadMore to threads

* getMoreMessages

* chat.getThreadMessages -> getThreadMessages

* Start jumping to threads

* Add jumpToMessageId on RoomView

* Nav to correct channel

* Fix PK issue on thread_messages

* Disable jump to thread from another room

* Fix nav to thread params

* Add navToRoom

* Refactor styles

* Test notch

* Fix Android border

* Fix thread message on title

* Fix NavBottomFAB on threads

* Minor cleanup

* Workaround for readThreads being called too often

* Lint

* Update tests

* Jump from search

* Go to threads from search

* Remove getItemLayout and rely on viewable items

* Fix load older

* stash working

* Fix infinite loading

* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable

* Add generateLoadMoreId util

* Minor cleanup

* Jump to message from notification/deep linking

* Add getMessageInfo

* Nav to threads from other rooms

* getThreadName

* Unnecessary logic

* getRoomInfo

* Colocate getMessageInfo closer to RoomView

* Minor cleanup

* Remove search from RoomActionsView

* Minor fix for search on not joined public channels

* Jump to any link

* Fix tablets

* Jump to message from MessagesView and other bug fixes

* Fix issue on Urls

* Adds race condition to cancel jump to message if it's stuck or after 5 seconds

* Jump from message search quote

* lint

* Stop onPress

* Small refactor on load methods

* Minor fixes for loadThreadMessages

* Minor typo

* LoadMore i18n

* Minor cleanup
2021-05-26 14:24:54 -03:00
Gerzon Z 1f0ff830a3
[NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-12 16:01:29 -03:00