Commit Graph

76 Commits

Author SHA1 Message Date
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
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 9473bf4024 Minor tweaks 2021-09-17 15:55:06 -04:00
Gerzon Z ecee12c9d0 Migrate to TypeScript, update interfaces and some changes to container components 2021-09-17 15:15:26 -04:00
Gerzon Z f4c86eca29 Merge develop into branch 2021-09-14 15:30:03 -04:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Gerzon Z 91dedfb620 Convert SearchHeader to reusable component and minor tweaks to DiscussionMessagesView 2021-09-08 19:56:35 -04:00
Gerzon Z 2b1f78f3ec Fix search 2021-09-03 11:11:57 -04:00
Gerzon Z fc59b7426c Remove old changes from ThreadMessagesView 2021-07-21 17:22:03 -04:00
Gerzon Z 659f2c8646 Add Discussions to ThreadMessagesView 2021-07-19 11:33:09 -04:00
Diego Mello d04d0f27b6
[NEW] Basic support to Teams (#3016)
* Database migration

* RoomItem icon

* Team icons

* Teams group

* Small tweak on RoomTypeIcon

* RoomView Header

* Add team's channels to RoomView header

* Starting TeamChannelsView

* Icon size

* o data found

* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView

* Use teams.ListRooms endpoint, render rooms list, remove unused functions

* Show team main on TeamChannelsView

* Disable swipe

* Pagination working

* Fix blinking no data found

* Search working

* Refactor to use BackgroundContainer while loading

* Go to room

* Cleanup

* Go to actions

* Events

* Lint

* Add debounce to go room

* Fix for tablet

* i18n

* Small fix

* Minor refactor

* Use local data when it exists

* Show last message

* Force teams migration

* Add stories to BackgroundContainer

* Remove unused component

* Move RoomViewHeader into containers folder

* Refactoring

* Testing RoomHeader

* i18n

* Fix server endpoint version

* Fix events

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2021-04-07 15:31:25 -03:00
Gung Wah 98890df773
[CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-02-26 13:25:51 -03:00
Gung Wah 3a950547f3
[CHORE] Remove InteractionManager blocks (#2906)
* [FIX] Remove InteractionManager blocks

* Minor fix

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-02-23 15:36:20 -03:00
Gerzon Z 4c148bde3b
[CHORE] BackdropOpacity based on themes (#2863)
* Added backdropOpacity based on theme

* Updated ActionSheet, ReactionsModal, ReactionPicker and Sidebar

* Updated MultiSelect

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-02-19 15:05:47 -03:00
Djorkaeff Alexandre 4d13689503
[IMPROVEMENT] Threads layout tweaks (#2686)
* improvement: Thread Details

* fix: re-render Thread Messages Item

* fix: update snapshots

* improve: thread details component

* fix: cast replies length

* improvement: format date of threads

* improvement: thread details styles

* fix: wrap text

* tests: update snapshot

* improvement: use same date format for all dates

* Icon size 24

* Remove date

* Remove prop drill

* Badge position

* Badge container tweak

* Fix inline style

* Move ThreadDetails to containers

* Update stories

* Fix lint

* Remove wrong prop

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-01-14 14:06:19 -03:00
Diego Mello 6a026235ba
[IMPROVEMENT] Match background and text mention colors (#2723) 2020-12-17 14:39:45 -03:00