Commit Graph

91 Commits

Author SHA1 Message Date
Diego Mello 529891fcc0
regression: Rollback to React Native 0.69.8 (#5162) 2023-08-18 14:48:33 -03:00
Diego Mello 0079229a34
chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
Gleidson Daniel Silva 19360e6ee5
Revert "fix: scroll the pages New Message, Search for Rooms, Messages and Threads (#4952)" (#5038)
* Revert "fix: scroll the pages New Message, Search for Rooms, Messages and Threads (#4952)"

This reverts commit cf14ebea78.

* bump version to 4.37.1
2023-04-18 09:46:53 -03:00
Reinaldo Neto cf14ebea78
fix: scroll the pages New Message, Search for Rooms, Messages and Threads (#4952)
* [FIX] Scroll the pages Directory, New Message, Search for Rooms, Messages and Threads

* flex for the flatlist

* minor tweak at roomslistview and remove the keyboard from directoryview

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-04-10 16:41:49 -03:00
Reinaldo Neto cbd9b27cf7
[FIX] Cannot read property 'fetch' of undefined on ThreadMessagesView (#4557)
* [FIX] Cannot read property 'fetch' of undefined on ThreadMessagesView

* added e2e test

* change from _raw to _id

* test thread messages view with a thread created
2022-12-02 14:06:14 -03:00
Diego Mello 988c6931ec
Chore: Bump patches (#4679) 2022-11-16 10:26:37 -03:00
Diego Mello e723990e82
Chore: Update Storybook libs to v6 (#4439) 2022-08-19 16:53:40 -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
Alex Junior 1027b6c9e6
[IMPROVE] Use UI Elements from react-navigation (#4314)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-07-06 10:23:02 -03:00
Alex Junior 4b25fde8f6
Chore: Upgrade react-native-vector-icons from 8.1.0 to 9.1.0 (#4175)
* chore: upgrade `react-native-vector-icons` from 8.1.0 to 9.1.0

* all this storyshot added this `selectable: false`

* reversing file committed by mistake

* reverting the `cocoapods` version to the develop version.

* updating some snaps after merge with develop

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-06-27 15:15:15 -03:00
Reinaldo Neto 28ee43f817
[FIX] Avatar pixel size (#4285)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-21 16:23:55 -03:00
Danish Ahmed Mirza 5899b1f789
[NEW] Go to RoomView if the mentioned #channel is already joined (#4204)
* [NEW] Go to RoomView if the mentioned #channel is already joined

* Update stories and fix lint errors

* Use getSubscriptionByRoomId

* Fix channel name issue

* Use goRoom

* add jest-expo to jest preset

* update snapshot

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-10 17:33:48 -03:00
Alex Junior 614d9afe65
Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
Alex Junior 6220375f7b
Chore: upgrade react navigation to 6.0.10 version (#4120) 2022-06-01 16:46:37 -03:00
Alex Junior abbb97cd84
Chore: Evaluate ThreadMessagesView - TypeScript (#4084) 2022-05-06 23:34:58 -03:00
Alex Junior d99b31849a
Chore: Evaluate Icon - Typescript (#3982)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-02 16:21:15 -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
Gerzon Z b9651493d2
Chore: update `theme` type (#4025)
* chore: update `theme` type

* update: components

* update: storyshots

* add: `theme` type to `DirectoryItem`

* chore: update theme type on `message/index.tsx`

* update: `RoomTypeIcon`'s useTheme
2022-04-12 12:27:05 -04:00
Reinaldo Neto ec952b058a
Chore: Upgrade @types/react-native to 0.64.2 (#4026)
* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* fix accessibility within bordelessbutton
2022-04-08 11:27:10 -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
Gerzon Z 1c70ffc614
Chore: Evaluate `Avatar` - TypeScript (#3929)
* update: `Avatar` component

remove: non-null assertion from ThreadMessagesView Item

* remove: `this.mounted` from `Avatar` component

update: navParam on MessageAvatar component
2022-03-29 12:23:45 -04:00
Alex Junior e00580d84e
Chore: Clean ThreadDetails - TypeScript (#3924) 2022-03-22 11:16:41 -03:00
Gerzon Z 38b2b08278
Chore: Evaluate ActivityIndicator - TypeScript (#3914)
* update: `BackgroundContainer` and `ActivityIndicator`

* update: return type for `RCActivityIndicator`

* update: return type for `BackgroundContainer`
2022-03-17 22:37:10 -04:00
Alex Junior 11a809a065
Chore: Migrate REST API - getThreadsList to Typescript (#3895)
* chore: add rest api return

* chore: removing sort param
2022-03-16 23:24:22 -03:00
Reinaldo Neto b06be5a2ac
Chore: Migrate methods/loadSurroundingMessages to Typescript (#3733)
* Chore: Migrate methods/loadSurroundingMessages to Typescript

* tweaks

* tweak

* tweak

* tweaks to make ts happy

* instead as IMessage is optional u

* enum to MessageTypeLoad

* minor tweaks
2022-03-03 17:25:03 -03:00
Diego Mello 6b3730ce43
Chore: Migrate RoomView to Typescript (#3754) 2022-03-02 11:18:01 -03:00
Gleidson Daniel Silva 4172d563b7
Chore: Server API types POC - loadMessagesForRoom (#3765)
* create interface and implements base types

* fix some types

* Update app/lib/methods/updateMessages.ts

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

* fix date type

* apply types changes

* fix type

* fix date value

* fix types

* typescript things...

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-25 18:32:03 -03:00
Reinaldo Neto 5ac4700d51
Chore: Migrate Markdown to Typescript (#3558)
* Chore: Migrate Markdown to TS

* Chore: Migrate Markdown to TS

* minor tweak

* added preview where markdown was preview and fixed params within markdown

* removed ts-ignore

* fix lint

* removed numbersofline={0} and default value to numberOfLines=1

* change how to import markdown preview and remove numberOfLines

* using useTheme inside markdownPreview and remove theme from components

* minor tweak on interfaces

* isNewMarkdown return as boolean

* minor tweaks

* minor tweaks

* removed unused component

* fixed markdown stories

* updated snapshot because removed numberOfLines={0} from message/content

* create IEmoji.ts in definitions and refactor all places where getCustomEmoji was called

* onLinkPress typed

* todo: refactor navtoroominfo

* formatText.test.ts

* markdown stories to typescript too

* minor tweak

* IMessage definition

* refactor: update new types and interfaces for use ISubscription

* refactor: update threadItem for use new MarkdownPreview

* refactor: rollback wrong file commited

* formatHyperlink

* fix lint

* updated item story shot

* refactor and refactor some types

* Remove non-null assertion

* Minor change on useRealName

* tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-17 12:27:01 -03:00
Diego Mello 1ffa592201
Chore: dehydrate small server requests away from rocketchat.js (#3740) 2022-02-15 15:50:55 -03:00
Diego Mello 88d33b42c2
[FIX] Remove deprecated database methods and other database operations (#3686)
* Fix PK error on subscriptions/room

* Instead of checking for pending update, wrap the call on a try catch and return null in case of error

* Generate delete operations before create/update to prevent errors

* Apply same logic on encryption

* Fix database operations on getRoles

* Fix a few database issues found on Bugsnag on ThreadMessagesView

* Run prettier :(
2022-02-10 17:16:10 -03:00
Reinaldo Neto b95cad71eb
Chore: Remove Non-null assertion operator in ThreadMessagesView (#3632)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-04 17:47:05 -03:00
Gerzon Z 9caff40a2e Merge branch 'develop' into new.add-discusions-roomactionsview 2022-02-01 09:49:39 -04:00
Reinaldo Neto f88bdfb97c
Chore: Migrate Database to Typescript (#3580)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-01 10:39:09 -03:00
Gerzon Z 89613bb85b Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-31 17:32:49 -04:00
Gleidson Daniel Silva 2f7ff43ea0
[FIX] StoryShots not working for async rendered components (#3677) 2022-01-31 18:15:44 -03:00
Gerzon Z 5d84468561 Minor tweaks 2022-01-24 15:12:09 -04:00
Gerzon Z 0a6e5d3fb0 Move onDiscussionpress logic on message, update SearchHeader and DiscussionDetails component, add useLayoutEffect at DiscussionsView 2022-01-24 11:51:31 -04:00
Diego Mello 6be5b7ed95
Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-20 10:06:40 -03:00
Reinaldo Neto e91bb90543
[FIX] Threads' pagination not working (#3631) 2022-01-19 17:54:12 -03:00
Gerzon Z 79eeb5524d Remove unused import 2022-01-17 16:33:48 -04:00
Gerzon Z 6c9a3f977e Minor tweaks 2022-01-17 16:15:58 -04:00
Gerzon Z 680476a9a7 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 16:02:53 -04:00
Gerzon Z 89ae4304c4 add storybooks, update snapshots and DiscussionsView 2022-01-17 15:55:33 -04:00
Gerzon Z 2946c4724e
[FIX] TypeScript's errors raised by HOCs (#3535)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-01-17 13:10:39 -03:00
Gerzon Z e010d804d5 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 10:12:19 -04:00
Diego Mello dbf4a847f0
[FIX] Lint not ignoring Markdown props (#3600) 2022-01-12 11:35:35 -03:00
Reinaldo Neto cd9ce58660
Chore: Migrate ThreadMessagesView to Typescript (#3538)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2022-01-12 10:53:06 -03:00
Gerzon Z 1d40c3ba7e Update snapshots 2021-10-06 11:16:29 -04:00
Gerzon Z a226cad57c Undo changes, add timeFormat prop 2021-10-05 12:00:00 -04:00