Commit Graph

239 Commits

Author SHA1 Message Date
lingohub[bot] 46c18fb20d
Language update from LingoHub 🤖 on 2022-12-14Z (#4748)
* Language update from LingoHub 🤖

Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Diego Mello

Easy language translations with LingoHub 🚀

* Add sv and fi

* Add missing locales to util

* Reorder languages

Co-authored-by: Diego Mello <diego.mello@rocket.chat>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-12-14 12:59:30 -03:00
Gleidson Daniel Silva a2722f07b0
[FIX] Can't upload the same file on two rooms at the same time (#4528)
* update style to match other spaces

* fix sending the same file in different rooms and add the limit for sending the same file

* remove when error happens and cant finish the upload

* use the same variable as rocket.chat

* minor tweak upload path and removed _raw

* change from 2 to 4

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-12-05 13:31:44 -03:00
Gleidson Daniel Silva 362df65bbe
[NEW] Video conf message block (#4619)
* create skeleton loading

* add phone-in icon

* fix avatar style props

* fix ios icon

* add new types

* add Rocket.Chat definitions

* fix block re-render

* create VideoConferenceBlock

* better composition

* fix call originator

* add pt-br translations

* create useSnaps hook

* update colors

* init action sheet

* fix to go back when the call ends

* create CallAgainActionSheet

* update pods

* bump lib react-native-skeleton-placeholder

* update hook location

* remove loading prop

* move files to components

* update border radius

* add verify on message options

* update icons

* apply patch
2022-11-24 08:37:08 -03:00
Diego Mello 05a04f7f29
[IMPROVE] Sync message actions order with web app (#4672) 2022-11-10 16:48:52 -03:00
Duda Nogueira 0ad5545a4c
[i18n] Add Slovenian (#4474)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-04 15:13:29 -03:00
lingohub[bot] faf79bb59e
Language update from LingoHub 🤖 (#4640)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-04 15:03:55 -03:00
Gleidson Daniel Silva 3a9a98bdfe
[NEW] Reply in direct (#4582)
* add translations

* implements reply in DM

* refactor data e2e

* fix ignoreuser e2e

* create test for reply in dm

* minor tweak

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-11-04 14:09:58 -03:00
Danish Ahmed Mirza 1486204546
[IMPROVE] Redesign emoji picker (#4328)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-10-21 15:27:55 -03:00
Gleidson Daniel Silva 16e11c7304
[IMPROVE] System messages consistency (#4461)
* fix sys messages

* update snapshot

* update snapshot

* add username

* wip

* wip

* change to switch and fix types

* wip

* new translations

* update snapshot

* Update app/containers/message/utils.ts

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>

* fix types and return

* remove unused translation

* fix types

* remove unused params

* minor tweak

* update story

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-10-21 13:35:26 -03:00
Reinaldo Neto 9cbffff248
[IMPROVE] Redesign create room flow (#4381)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-26 16:16:45 -03:00
Gleidson Daniel Silva cbc6892084
[NEW] Unify members section (#4399)
* create useUserPermissions hook

* create CheckRadioButton component

* fix return

* create MembersSection component

* apply MembersSection and header filter

* fix re-render and testID

* fix detox tests

* rename to RadioButton

* move the component closer to the screen

* remove useUserPermissions

* remove theme prop

* migrate to hooks

* fix team permissions

* remove theme prop from UserItem

* remove options prop

* fix Member

* remove commented test

* fixes

* fix for room not joined

* add room members events

* adds empty option

* add members filter and pagination

* clear RoomMembersView

* remove unused styles

* Update app/views/RoomMembersView/index.tsx

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* wip

* Temp workaround for SearchBox background color

* Rename import

* Fix missing params for 5.0

* Fix e2e tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-26 10:21:25 -03:00
Reinaldo Neto ccbc84f9a8
[IMPROVE] Remove show message in main thread preference (#4435)
* [IMPROVE] Remove show message in main thread preference

* default settings

* created the get

* fix compare server version

* fix E2E tests

* settings to logged user

* remove constant and get alsosendtochannel from user

* fix send to channel first message

* fix when the alsoSendThreadToChannel is checked

* added list picker user preference

* tweaks in messagebox tmid and detox

* added pt-br and deleted expectToBeVisible id

* reactive alsoSendThreadTOChannel

* fix the behavior when press or long press threads messages

* remove reply in thread from threads

* clean helpers detox

* tweak onMessageLongPress and onSubmit

* Remove unnecessary calculations inside ListPicker

* Fix long press logic

* Fix onReplyInit logic

* fix data_setup at detox for servers greater than 5.0

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-25 16:53:19 -03:00
Reinaldo Neto fe7722ca10
[IMPROVE] Support for tag request close when is obligatory to close Omnichannel's Channel (#4353)
* [IMPROVE] Support for tag request close

* clean up

* refactor isObrigatory and value

* fix obligatory

* removed onSubmitEditing

* create closelivechatview

* Refactor Close Omnichannel from ActionSheet to a new Screen

* Fix navigation

* fix screen title

* back to before actionsheetwithinput

* added string in pt-br

* refactor canSubmit

* fix the method closeRoom

* comment of server's version

* some tweaks

* Update app/lib/services/restApi.ts

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-07-15 17:06:27 -03:00
Diego Mello e48527b9be
Regression: missing comma on i18n file (#4320) 2022-06-27 19:33:44 -03:00
Gleidson Daniel Silva 58a15b23b5
[NEW] Basic support for Video Conf (#4307)
* create livechat video conf feature

* add handler to call url

* remove webview and change to openUrl

* Checking settings

* stash

* add action sheet on click init and ad more handlers

* fix logic and call to create a video conf

* change JitsiMeetView from InsideStack to ChatStack to remove modal animation

* fix error logic

* fix stack

* fix comma

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-27 15:04:20 -03:00
lingohub[bot] fc0d7e2ed3
Language update from LingoHub 🤖 on 2022-06-27Z (#4319)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
2022-06-27 09:51:55 -03:00
Gleidson Daniel Silva 303d127949
[FIX] Change password not working on some cases (#4312)
* create iTotp enum

* migrate change user profile to method

* Fix minor i18n issues

* Use saveUserProfileMethod from Services

* Catch cancel event from TwoFactor modal

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-23 16:59:57 -03:00
Gleidson Daniel Silva 5f248ebeb5
[NEW] Delete my account (#4219)
* create new delete account button

Co-Authored-By: Danish Ahmed Mirza <danishmirza30602@gmail.com>

* change modal to action sheet

* better naming

* remove ? from translation

* update translations

* change to new figma layout

* fix export

* remove unused state

* add new text input to base input

* clean up

* update bottom sheet and create a mock

* remove unecessary bracket and fix type

* fix header

* migrate buttons to action sheet

* fix imports

* update yarn.lock

* add separator to styles

* add ternary verification

* minor tweaks: keyboard for landscape android tablet, interface IactionSheetProvider and remove navigation options to get ismasterdetail from redux, fix jest setup

* fix colors

* disconnect from sdk when delete the account

* update snapshot

Co-authored-by: Danish Ahmed Mirza <danishmirza30602@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-06-22 09:24:25 -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
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
Alex Junior 614d9afe65
Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -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 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 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 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
Diego Mello 9a11fb2797
[FIX] Add token expired verification (#3964) 2022-04-06 17:35:53 -03:00
lingohub[bot] e750104d96
Language update from LingoHub 🤖 on 2022-03-21Z (#3940)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-03-21 18:08:00 -03:00
Diego Mello 51ed83a33e
[IMPROVE] Team system messages feedback (#3771)
* almost there

* Update stories
2022-02-23 17:31:14 -03:00
lingohub[bot] 71a50875d3
Language update from LingoHub 🤖 on 2022-02-14Z (#3730)
* Language update from LingoHub 🤖

Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

* remove draft gl

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-15 16:17:19 -03:00
Gerzon Z 680476a9a7 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 16:02:53 -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 e010d804d5 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 10:12:19 -04:00
Reinaldo Neto b75e192e20
[IMPROVE] Remove Omnichannel visitor's navigation history (#3534)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-12-13 13:29: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
lingohub[bot] 4af97f192a
Language update from LingoHub 🤖 (#3529)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-12-02 15:38:33 -03:00
Gerzon Z 2b7f589847
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-11-23 12:02:43 -04: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
Gerzon Z 47f7ee8c91
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-27 10:42:17 -04:00
lingohub[bot] 0a44731229
Language update from LingoHub 🤖 (#3460)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
2021-10-26 10:36:41 -03:00
Gerzon Z 5dc0a0a05f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-20 18:10:30 -04: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 0242fb14f8 Fix en.json 2021-10-13 11:54:25 -04:00
Gerzon Z 714608cc36 Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-13 11:46:50 -04:00
Alex Junior 8af82df7ff
[FIX] Reverting changes applied by Prettier on i18n folder (#3410)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-07 15:41:37 -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
Gerzon Z f9dc2a975f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-04 13:14:07 -04: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 55b89e6e43
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-09-17 15:18:17 -04:00
lingohub[bot] 4eb42d70b9
Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-17 09:48:49 -03:00