Commit Graph

807 Commits

Author SHA1 Message Date
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
Diego Mello 5edb363f50
revert: "fix: commonmark code_block (#5531)" (#5627) 2024-03-21 12:47:17 -03:00
Reinaldo Neto 4c8caf0bfd
feat: mobile troubleshoot notifications (#5330)
* feat: troubleshoot notification (#5198)

* navigation done

* create the icon inside roomslistview, navigation to push troubleshot and layout push troubleshoot

* custom header

* fix the rooms list view header icon

* layout done

* update the pt-br i18n

* tweak on colors

* feat: create notification in room view (#5250)

* button and simple navigation done, missing master detail

* navigation

* add withTheme and colors to rightuttons

* fix e2e test

* feat: add troubleshooting to notifications pages (#5276)

* feat: add troubleshooting to notifications pages

* fix e2e test

* feat: device notification settings (#5277)

* iOS go to device notification setting to change the configuration

* go to notification settings with android

* add notifee

* add the reducer and action

* saga request done

* add the setInAlert action

* tweak at name and add focus to dispatch the request

* use the foreground inside pushTroubleShoot to request the notification and fix the icon color

* add the request at roomslistview didmount

* remove the notification modulo from android

* add patch

* minor tweak

* feat: test push notification (#5329)

* feat: test push notification

* restApi and definition

* push.info and change properly the troubleshootingNotification

* use the finally at try/catch

* minor tweak

* alert and push.info just for 6.6

* fix the react-native.config

* minor tweaks

* minor tweak

* push.test as rest api

* change the name from inAlertNotification to highlightTroubleshooting

* feat: push quota

* refactor the percentage state

* removed the push quota feature

* minor tweaks

* update the link to push notification

* the notification icon in the room header will appear if notifications are disabled or highlight troubleshoot is true

* remove push quota texts

* updated some of the push quota texts

* chore: rename highlightTroubleshooting

* chore: better prop naming

* wip

* chore: fix function name

* chore: fix colors

* fix: copy

* chore: 💅

* chore: use fork

* chore: naming

* chore: fix init

* chore: naming

* chore: naming

* Comment CE code

* Use put on troubleshooting saga

* Add db column

* fix: check notification payload

* action: organized translations

* fix: push init

---------

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: GleidsonDaniel <GleidsonDaniel@users.noreply.github.com>
2024-03-04 08:27:24 -03:00
Sathurshan eefb8793a5
feat: display language icon for auto translated msgs (#5398)
* feat: display language icon for auto translated msgs

* add translate icon to stoybook

	modified:   app/containers/message/Message.stories.tsx

* fix test

* refactor: use colors straightly without finding them with theme

* refactor some code

* fix test storyshot

* fix test issue
2024-03-04 07:25:41 -03:00
Gleidson Daniel Silva 54f2cea4e9
fix: empty draft when the message is sent (#5595)
* chore: move draftMessage to helpers

* fix: set draft when the message is sent
2024-02-28 08:49:14 -03:00
Reinaldo Neto 94807ef05b
fix: commonmark code_block (#5531)
* fix: commonmark code_block

* update the style of code blocks

* fix: bump commonmark and remove patch

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-02-22 10:27:02 -03:00
Gleidson Daniel Silva 116c217675
chore: apply alignSelf style only on LastMessage (#5580)
* chore: remove alignSelf Styles.ts

* chore: apply alignSelf style only on LastMessage

* test: update snapshot
2024-02-20 17:22:40 -03:00
Reinaldo Neto 316f771a8f
feat: play audio in sequence (#5526)
Co-authored-by: Sathurshan <jsathu07@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2024-02-20 17:17:46 -03:00
Gleidson Daniel Silva 37e936e1d6
chore: update totp copy (#5579) 2024-02-19 14:28:19 -03:00
Gleidson Daniel Silva c4a3f9ce19
fix: add a style to prevent Android from breaking when rendering a katex via webview (#5570) 2024-02-19 12:06:09 -03:00
Gleidson Daniel Silva 1beb0d0efa
fix: fixes the behavior of the alsoSendThreadToChannel property (#5573) 2024-02-19 11:56:22 -03:00
Diego Mello e55b172bc1
tests: message composer unit tests (#5556)
* jest.fn issue

* Working on tests

* Add quotes test

* Audio

* Mock search

* Fix some act errors from jest

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-02-19 11:08:17 -03:00
Reinaldo Neto f89a28e4f7
regression: open self profile from messages (#5554)
* fix: open self profile from messages

* fix the inAppFeedback reducer function name

* add e2e test to open profile by username

* update tests

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-02-15 18:07:48 -03:00
Gleidson Daniel Silva 2a1b59cd57
tests: add draft e2e tests (#5553)
* chore: update detox

* chore: improve mocks

* chore: add testId

* chore: add e2e tests

* add more time

* Fix tests

* fxi tests

* update yarn lock

* fix import

* wip

* test

* Fix deep linking tests

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2024-02-15 16:41:03 -03:00
Diego Mello b189f59950
fix: NavBottomFAB position (#5555) 2024-02-08 14:49:09 -03:00
Fahad Ali c8e1f20d1e
feat: add support for tasks and unordered list markdown (#5057)
* merged conflicts

* test cases fixed

* test case fixed

* comments addressed

* test update

* checkbox package removed

* test case fixed

* podfile updated

* podlock file fixed

* fix test

* comments addressed

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-02-07 18:03:03 -03:00
Gleidson Daniel Silva b81e22c934
feat: add draft and quote on shareview support (#5540) 2024-02-07 15:57:22 -03:00
Diego Mello d9dd6a3dd8
feat: button to refresh cloud data on support window expired screen (#5528) 2024-02-01 10:32:02 -03:00
Gleidson Daniel Silva 39f8a92059
feat: audio recording permission handling in MicOrSendButton component (#5515) 2024-01-31 11:28:34 -03:00
Diego Mello 7b73eac895
feat: better composer height calculation (#5523)
* Revert "feat: Send native calculated keyboard and tracking view height to TS (#5514)"

This reverts commit cedd0b98f2.

* better height calculation
2024-01-31 10:57:17 -03:00
Reinaldo Neto e06aaf1cc0
feat: haptics feedback in app notificaiton (#5507)
* create redux for inAppFeedback

* add the clear inAppFeedback, haptic feedback to room view

* added haptics feedback to room view

* add the user preference to in app vibration and the value

* minor tweak

* yarn prettier-lint
2024-01-29 12:54:37 -03:00
Gleidson Daniel Silva 501e42196d
feat: adds scroll when a new quote is added to the list (#5516) 2024-01-26 17:43:57 -03:00
Diego Mello cedd0b98f2
feat: Send native calculated keyboard and tracking view height to TS (#5514) 2024-01-26 17:40:18 -03:00
Diego Mello 7bf7111cfa
feat: New message composer (#5205) 2024-01-25 11:11:07 -03:00
Reinaldo Neto dc13ed3b5e
fix: iOS upload a file with gif and heic format (#5457)
* fix: iOS upload with gif format

* update the package json

* update library

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-01-23 09:58:06 -03:00
Reinaldo Neto 0639d22e30
fix: remove blur from attachments (#5475)
* fix: remove the blur view

* update story

* remove raect-native-blur

* update test

* change blurcomponent to overlaycomponent

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-01-22 18:53:01 -03:00
Reinaldo Neto c2656459ea
feat: add a focus state to audio player (#5491)
* feat: add a focus state to audio player

* update the rcactivity indicator

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-01-22 18:39:01 -03:00
Reinaldo Neto e5746451ba
fix: an image link was reaching maximum regex stack depth (#5495)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2024-01-22 10:23:20 -03:00
Gleidson Daniel Silva 35cb39a2f2
fix: ringer audio playing on background (#5453)
* feat: refactor Ringer component to improve sound loading and playing

* chore: add audio state to IncomingCallNotification

* Update app/containers/InAppNotification/IncomingCallNotification/index.tsx

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

---------

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2024-01-09 14:18:24 -03:00
Reinaldo Neto e4d4592145
feat: add "show more" to user info status (#5383)
* improve: handle long status text with a collapsible text element

* remove the points from  show_more value

* refactor the path

* add storyshot

* remove comments

* minor tweak at pt-br

* add the e2e  test

* remove fontInfo

* refactor layout

* fix e2e test

* fix the text for both platforms

* add comment

* update detox to 20.11 to accept regex and fix the test for show more
2023-12-26 10:36:59 -03:00
Reinaldo Neto 64d1134ea6
fix: navigate to myself from mention (#5400)
Co-authored-by: Gabriel Casals <83978645+casalsgh@users.noreply.github.com>
2023-12-22 12:36:23 -03:00
Devaansh Bhandari 3e9ab8877c
fix: Add markdown to Directory descriptions (#5399)
Signed-off-by: brf153 <153hsb@gmail.com>
2023-12-18 15:22:46 -03:00
Reinaldo Neto fd1827f618
fix: hide the edit/delete action based on permission (#5393)
* fix: hide the edit/delete item for not allowed or not own the message

* fix e2e test
2023-12-12 14:58:40 -03:00
Reinaldo Neto 3a5173ffda
feat: display disabled actions on action sheet (#5356)
* improve: show the item disabled when the user doesn't have permission

* minor tweak changing from disabled to enabled param

* add the behavior at long press message

* minor tweak

* minor tweak

* remove the header notPermission and show toast

* tweak at auto translate e2e test

* minor tweak

* minor tweak translated

* minor tweak en.json

* minor tweak description
2023-12-11 12:51:44 -03:00
Reinaldo Neto b217435ffe
improve: handle attachment actions in a quote and how to jump to message (#5363)
* improve: handle attachment actions in a quote

* actions with video

* actions with audio

* show alert when trying to jump to a message inside a not allowed room

* jump to message from long press

* disable the reply onPress when is a quote or forward

* update tests

* fix 02-broadcast e2e

* fix the e2e tests

* remove the await from handleResumeDownload and remove the esline-disable
2023-11-30 12:03:03 -03:00
Gleidson Daniel Silva 2989b3c2ee
fix: translation prop checking (#5369)
* fix translation checks

* wip
2023-11-29 15:30:15 -03:00
Gleidson Daniel Silva 31ed940426
feat (Android): mobile ringer (#5286) 2023-11-24 09:46:58 -03:00
Reinaldo Neto 0a75a6615c
feat: new audio player (#5160)
* feat: media auto-download view

* media auto download view completed and saving the settings in mmkv

* audio download preference

* audio auto download when the user who sent the audio is the same logged on mobile

* creation of isAutoDownloadEnabled, evaluate hist hook, Image Full Size preload done

* minor tweak audio show play button after download

* refactor audioFile to handleMediaDownload and fixed the audio download

* desestructured params to download too

* image download and autoDownload, algo fix the formatAttachmentUrl to show the image from local

* add the possibility to cancel image download and clear local images

* refactor blur component

* video download and auto download, also keeped the behavior to download unsuportted videos to the gallery

* add the possibility to start downloading a video, then exit the room, back again to room and cancel the video previously downloading

* remove the custom hook for autoDownload

* remove blurcomponent, fix the blur style in image.tsx, minor tweak video function name

* send messageId to video

* introducing the reducer to keep the downloads in progress

* create a media download selector

* remove all the redux stuff and do the same as file upload

* video download behavior

* done for image and audio

* fix the try catch download media

* clean up

* image container uiKit

* fix lint

* change rn-fetch-blob to expo-filesystem

* add pt-br

* pass the correct message id when there is an attachment on reply

* refactor some changes requested

* fix audio and move the netInfo from autoDownloadPreference to redux

* variable isAutoDownloadEnable name and handleMediaDownload getExtension

* message/Image refactored, change the component to show the image from FastImage to Image

* refactor handleMediaDownload and deleteMedia

* minor tweak

* refactor audio

* refactor video

* fix the type on the messagesView(the view of files)

* minor tweak

* fix the name of searchMediaFIleAsync's result

* minor tweak, add the default behavior, add the OFF as label

* minor tweaks

* verify if the media auto download exists on settings view

* fix media auto download view layout and minor tweak wifi

* avoid auto download from reply

* minor tweak at comment

* tweak list.section

* change the name to netInfoState and Local_document_directory

* remove mediaType and refactor audio and image

* separate blurview

* thumbnail video and video behavior

* add Audio to i18n and minor tweak

* set the blur as always dark and add the possibility to overlay

* don't need to controle the filepath in the view

* fix the loading in image and video at begin

* save the file with a similar filename as expected

* removed the necessity of messageId or id

* minor tweak

* switch useLayoutEffect to useEffect

* avoid onpress do some edge case because of cached at video

* minor tweak

* tweak at audio comment extension

* minor tweak type userpreferences

* remove test id from mediaAutoDownloadView

* change action's name to SET_NET_INFO_STATE

* caching and deleting video's thumbnails

* remove generate thumbnail

* minor tweak in image

* update camera-roll and save the file from local url

* remove local_cache_directory and deleteThumbnail

* update blur to fix error on android

* first commit

* fix togglePlayPause

* separate audio to a folder inside components and minor tweak attachment

* created the slider with text

* play/pause button, currentTime equal the sound, can change the slider and reflect to the sound

* play/pause, track is working and onEnd

* update the icons with play-shaped-filled, pause-shape-filled, loading

* start the tweaks on layout

* can play multiple audios, pausing the previous to execute the new one

* loading animated

* added the audio rate

* layout fixed

* removed the sound manipulation from Slider to manipulate only in the index

* fix time margin horizontal

* fix play 2 audios and play/pause properly

* change the way we treat the audio

* remove audio copy

* minor tweak

* fix rate state

* remove the PAUSE_AUDIO

* fix unloadAll, add hit slop to slider, show the duration on the first render

* refactor colors to be the same as figmas name

* change the class' name and add the method pauseCurrentAudio

* pause audio when unmount a RoomView and unloadAll when focusing at RoomsListView

* pause audio when entering a thread

* fix where call the pauseCurrentAudio

* moved the player from messageAudio to audioPlayer

* refactor audio component

* remove loading

* update snapshot

* fix colors name

* pauseAudio when roomview is blur

* moved audio from message/component/audio to message/Audio

* add navigation focus to AudioPlayer component and fix the jest

* add the { androidImplementation: 'MediaPlayer' }

* fix action sheet swipe 02-room

* fix action sheet swipe 05-threads

* tweak touchable

* remove react.memo from playbutton

* hitSlop

* speed playback from array

* textinputprops

* tweak at names

* minor tweak at onEnd

* minor tweak at names

* update styles

* thumb seek size

* change marginBottom

* add the clamp, adjust the thumb position, remove the necessity of OnEndGestureHandler

* change the utils to constants

* change to audioState

* fix the seek for android

* TDownloadState

* speed array

* pause audio from messagesView when open the files

* update test

* minor tweak

* change the time after ony one click, fixes the thumb to move sync with the click

* Fix seek

* minor tweak Sound to Audio.Sound

* name of Icon

* enable PlaybackSpeed only when playing the audio

* playbackSpeed to mmkv

* mock implementation

* create native button

* minor tweak

* minor tweaks

* playbackSpeed after loadAudio

* avoid show the error when try to setRate without audio

* add messageID to differ audios inside a quote/forward from original one

* unloadRoomAudios instead of unloadAllAudios inside the roomsListView

* minor tweak

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-11-20 11:13:15 -03:00
Reinaldo Neto 1d681917b8
fix: show last message when pinned (#5316)
* fix: show last message when pinned

* add the Pinned_a_message and the message as a quote

* tweak at locales
2023-11-14 15:42:31 -03:00
Devaansh Bhandari 5b335bdc37
fix: add channel name when the text is bold (#5319)
* added changes in the Bold.tsx file for Channel Mention

Signed-off-by: bhandari <153hsb@gmail.com>

* added changes for strike and italic

Signed-off-by: bhandari <153hsb@gmail.com>

---------

Signed-off-by: bhandari <153hsb@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-11-13 14:14:37 -03:00
Gleidson Daniel Silva 93c8409354
chore: bump message parser from 0.31.14 to 0.31.26 (#5338)
* chore: bump message parser

* fix markdown value assignment

* update snapshot
2023-11-13 14:00:00 -03:00
Gleidson Daniel Silva fd7c9176b1
feat: enable navigate to my own profile from messages (#5293)
* enable navigation to my own profile

* fix block user logic

* fix types

* enable navigation to my own profile

* update snapshot
2023-11-08 15:03:53 -03:00
Gleidson Daniel Silva bec1bc77c7
fix: checks if the room exists before navigating to it (#5278)
* checks if the room exists before navigating to it

* Update app/i18n/locales/pt-BR.json

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

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-10-30 17:41:29 -03:00
Diego Mello 18b77ab4d6
feat: Supported Versions (#5185) 2023-10-19 10:38:57 -03:00
Reinaldo Neto 3f2e5ced19
chore: migrate LoginView to hooks (#5092)
* chore: migrate LoginView to hooks

* minor tweak

* minor tweak

* fix ref

---------

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2023-10-18 14:23:12 -03:00
Reinaldo Neto 3cf08c29e1
feat: add the support for CDN_PREFIX (#5266)
* add the support for cdn_prefix

* add cdn-prefix to video and audio too

* refactor where call the store to cdn

* fix e2e test

* add connect redux
2023-10-17 16:28:02 -03:00
Reinaldo Neto 199331f8f6
fix: check the permissions properly to create a discussion and reply in dm (#5217)
* fix: check the permissions properly to create a discussion

* add the permission start-discussion-other-user and fix the permission at messagebox

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-10-16 17:55:38 -03:00
Reinaldo Neto 74cd85a069
feat: image base64 (#5264)
* improvement: handle base64

* update tests

* minor tweak

* remove imageprocess and remove the save to gallery from image base64

* Update app/containers/message/Image.tsx

* Update app/views/AttachmentView.tsx

* Update app/views/AttachmentView.tsx

* Update app/views/AttachmentView.tsx

* Update app/containers/message/Image.tsx

* chore: change file name and fix implementation

* chore: remove useless const

* chore: update regex

* chore: update name

* Update app/lib/methods/isImageBase64.ts

* Update app/lib/methods/isImageBase64.ts

* early return

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-10-11 11:23:11 -03:00
Diego Mello 66fce27882
regression: custom icon style not working properly (#5254) 2023-10-04 11:50:58 -03:00
Diego Mello 7d86b0f331
fix: Set size as lineHeight on CustomIcon (#5252) 2023-10-03 17:54:00 -03:00