Diego Mello
0bea843ffa
Reenable header, add disable e2ee on header if needed, disable most of actions on RoomActionsView
2024-05-09 14:17:42 -03:00
Diego Mello
9e89b57b03
Merge branch 'develop' into feat.block-room-content-e2ee
...
# Conflicts:
# __tests__/containers/RoomHeader/__snapshots__/RoomHeader.stories.storyshot
# app/i18n/locales/ar.json
# app/i18n/locales/bn-IN.json
# app/i18n/locales/de.json
# app/i18n/locales/en.json
# app/i18n/locales/fi.json
# app/i18n/locales/fr.json
# app/i18n/locales/hi-IN.json
# app/i18n/locales/hu.json
# app/i18n/locales/it.json
# app/i18n/locales/ja.json
# app/i18n/locales/nl.json
# app/i18n/locales/pt-BR.json
# app/i18n/locales/pt-PT.json
# app/i18n/locales/ru.json
# app/i18n/locales/sl-SI.json
# app/i18n/locales/sv.json
# app/i18n/locales/ta-IN.json
# app/i18n/locales/te-IN.json
# app/i18n/locales/tr.json
# app/i18n/locales/zh-CN.json
# app/i18n/locales/zh-TW.json
# app/views/E2EEnterYourPasswordView.tsx
# app/views/RoomView/index.tsx
2024-04-19 16:59:22 -03:00
Gleidson Daniel Silva
d19239d290
feat: mobile color normalization ( #5616 )
...
* chore: remove auxiliaryText color
* chore: remove titleText
* chore: password colors change
* chore: use fontDefault on ActionSheet item
* wip: type
* chore: set custom icon default color
* remove tintActive color
* only set color when checked
* remove icon color
* remove tintActive
* chore: remove STATUS_COLORS
* chore: remove mentions colors
* chore: remove switch color
* chore: background color
* chore: auxiliaryBackground
* chore: one local colors
* wip: some colors
* wip: colors
* wip: colors
* wip: end colors
* test: update
* chore: fix some colors
* chore: fix lint
* chore: back to text props
* chore: fix ts errors
* revert
* chore: fix lint
* test: update snapshot
* update storybook
* cocoapods
* fix app theme color
* remove unused color
* fix login service button color
* remove unused color
* unused backgroundColor
* fix background color
* fix transparent color
* fix background color
* wip: key
* fix color
* chore: revert to 1 tick
* test: update
* chore: use same color as front end
* test: update
* fix radius
* fix background color
* fix wrong color
* change some colors
* chore: update stories
* chore: fix button style
* chore: fix item color
* lint
* update snapshot
* link
* remove background color
* change send to channel color
* call icons
* video conf colors
* fix app default color
* bottom sheet
* remove background
* two factor color
* update tests
* feat: add force-logout stream listener
* remove icon colors
* improve badge color
* update tests
* fix header colors
* fix collapsible icon color
* imagePreview color
* wip
* update test
* lint
---------
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2024-04-18 07:19:54 -03:00
Reinaldo Neto
4ca9042da0
feat: report user ( #5371 )
...
* feat: report user
* navigation from room info view to report user view
* minor tweak rid type
* showing the avatar and change the backghround color
* finished the ui and action to report a user
* minor tweak
* update storyshot
* add e2e test
* not show the report and block to my self and fix the text alignment
* minor tweak of container safeareaview
* remove label style and keep the default
* update test
* e2e test for 6.5 servers
* remove of block_user and unbblock_user
* remove danger from block and ignore
* remove of rid from params, change UserAvatarAndName to UserInfo
* fix e2e test
* fix the dinamic height with controlled text input
* indent basebutton
* fix button styles
---------
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2024-01-03 18:14:31 -03:00
Gleidson Daniel Silva
7a7193d1ab
chore: migrate RoomInfoView to hooks ( #5074 )
...
* create RoomInfoViewTitle
* create RoomInfoViewBody
* create RoomInfoViewAvatar
* remove some functions
* merge styles
* fix types
* remove UserInfoButton
* fix room
* fix type import
* working
* fix navigation type
* wip
* remove console
* types
* fix import
* fix types
* fix types
* wip
* add asPlain
* some tweaks
* wip
* some fixes
* wip
* fix block user
* finish migration
* some fixes
* fix rule
* add rid to avatar
* fix settings and room transition
* add disabled rule
* fix test ???
2023-09-26 11:33:53 -03:00
Gleidson Daniel Silva
3bbe553832
chore: update channel teams action label ( #5183 )
...
* update label
* Update en.json
2023-08-28 17:39:07 -03:00
Diego Mello
529891fcc0
regression: Rollback to React Native 0.69.8 ( #5162 )
2023-08-18 14:48:33 -03:00
Gleidson Daniel Silva
fea4f164d5
chore: migrate PickerView to hooks ( #5002 )
...
* migrate ForwardLivechatView to hooks and fix some types
* fix types
* fix types
* remove useless memo
* change to useDebounce
* fix types
2023-06-30 11:01:01 -03:00
Diego Mello
0079229a34
chore: Upgrade React Native to 0.71.7 ( #4984 )
2023-05-18 18:09:33 -03:00
Reinaldo Neto
43917bd789
fix: update the number of members from a room ( #4955 )
...
* [FIX] Update the number of members from a room
* update the subscription users count inside room actions view
* remove console.log
* added e2e test
---------
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-04-28 12:16:14 -03:00
Gleidson Daniel Silva
337e9e155d
regression: add teams to action screen ( #4942 )
...
* add teams to action screen
* keep it the old way
* fix test id
* back to old one rule
* fix team tests
* fix moveconvert test
* remove skip from room.spec
* fix shared config doc
* remove skip from broadcast.spec
2023-04-10 17:54:02 -03:00
Gleidson Daniel Silva
3fbb7b5720
[IMPROVE] Brings the operation of the video call closer to the web ( #4883 )
...
* rename CallAgainActionSheet to StartACallActionSheet
* remove useVideoConf and use videoConfJoin directly
* consider phone on calls
* fix text shrink
* fix mic audio
* change the behavior of call icon on header and RoomInfo
* update types
* update types and variables names
* revert old type
* fix issue on old servers
* rename to a correct naming
* fix translation
* revamp call icon
* add error handling to videoconf capabilities
* lint
* fix role logic
* change const name
* rename comp
* remove commented code
* fix types and apply correct logic
* fix naming
* correct the import
* update icon size
* create timer function for videoConf bellow 5.0
* add subscription to useVideoConf hook
---------
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-03-01 15:26:56 -03:00
Reinaldo Neto
531f3d0147
[IMPROVE] Add ignore user to user profile ( #4600 )
...
* button ignore and pased the param
* load room from database and check is is ignored
* move handleIgnore to lib/method/helpers
* Ignore and Unignore, also reactivity
* block and unblock user
* pass fromRid from actionView to InfoView too
* remove console.log
* unsubscribe subscriptionFrom
* block and unblock user from dm
* test to block user and ignore user
* minor tweak
* tweak data
* minor tweak
* add test before tapBack
* refactor names
2022-10-13 18:29:55 -03:00
Gleidson Daniel Silva
e3a99a93e4
[FIX] Add loading prop on RoomActionsView to avoid double click ( #4462 )
2022-09-05 09:33:56 -03:00
Gleidson Daniel Silva
8d26230e4f
[FIX] Wrong Team's icon on SelectTeam item's list ( #4469 )
2022-09-05 09:19: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
Gleidson Daniel Silva
585e5a0592
Chore: Migrate Touch to hooks ( #4422 )
...
* migrate to hooks and fix types
* fix import and remove theme prop
* update tests
* fix touch file name
* wip
* rename
* change to touch
* remove button and change to touch
2022-08-17 10:32:21 -03:00
Gleidson Daniel Silva
2b08b683d7
Chore: Upgrade React Native to 0.68.2 ( #4316 )
...
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-08 18:02:08 -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
Reinaldo Neto
18c44178d7
[IMPROVE] Migrate away from react-native-prompt-android to action sheet ( #4300 )
...
* Chore: Migrate away from react-native-prompt-android to action sheet
* fix header provile view with action sheet
* finished change password
* Close livechat and removed closeRoom dispatch
* remove lib react-native-prompt-android
* fix right buttons
* fix profile view in tablets
* fix action and room action for tablets
* remove onSubmitEditing
* fix keyboard for android tablet in landscape
* create base for actionSheet containers
* migrate EnterPasswordSheet to base
* migrate to base component
* fix colors and copy
* remove secure entry
* fix onSubmit
* fix android animation
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-27 16:03:24 -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
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
Reinaldo Neto
93c3c5f3a9
Chore: Evaluate RoomActionsView - TypeScript ( #4148 )
2022-05-02 20:13:39 -03:00
Reinaldo Neto
e5f140e231
Chore: Evaluate SelectListView - TypeScript ( #4119 )
...
* Chore: Evaluate SelectListView - TypeScript
* minor tweak
2022-05-02 09:40:19 -03: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
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
3c53d48a3e
[FIX] Omnichannel chat is broken the first time is taken ( #4037 )
...
* [FIX] Omnichannel chat is broken the first time is taken
* refactor how to get a room from db
2022-04-18 16:35:50 -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
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
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
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
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
Reinaldo Neto
0521c291f2
Chore: Migrate REST API - getRoutingConfig to Typescript ( #3794 )
...
* Chore: Migrate REST API - getRoutingConfig to Typescript
* minor tweak
2022-03-02 16:32:11 -03:00
Diego Mello
6626510f50
Chore: Migrate RoomActionsView to Typescript ( #3750 )
2022-03-02 11:49:43 -03:00