mattermost-mobile/app/utils
Avinash Lingaloo dff4f91441
MM-40364 [Gekidou] - Image Picker for Edit Profile (#5901)
* feature edit profile screen

* minor refactoring

* Apply suggestions from code review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* ts fixes

* revert floatingTextInput label

This reverts commit a778e1f76191aea7c1a18d60a23ffbd6d3dec0eb.

* code clean up

* Apply suggestions from code review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* code fix

* code fix

* Adding preventDoubleTap

* rename id to fieldKey

* Update edit_profile.tsx

* wip

* navigating through fields; partly done

* navigating through fields - partly done

* navigating through fields; partly done

* completed field navigation

* added theme into dependency array

* code clean up

* revert conditions for disabling fields

* Added colorFilters prop to Loading component

* Completed loading feature on Edit Profile screen

* code clean up

* Add profile_error

* renamed valid_mime_types to  valid_image_mime_types

* added props isDisabled to email field

* refactored next field logic

* fix

* fix

* code clean up

* code clean up

* Updated ESLINT hook rules to warning instead of disabled

* code fix

* code fix

* new line within your_profile component

* added memo for Field component

* added canSave to dependency array

* update loading component - color filter

* Update app/screens/edit_profile/edit_profile.tsx

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* dependency fix

* fix to fetch my latest status

* fix to remove unnecessary user id for local action updateLocalUser

* prevents bouncing for iOS

* code revert

* Adding  textInputStyle and animatedTextStyle to FloatingTextInput component

* correction after dev session

* adding changes as per new ux

* Update edit_profile.tsx

* corrections after ux review

* ux review

* ux review

* code clean up

* Adding userProfileFields into useMemo

* Add enableSaveButton to dependency of submitUser

* Added react-native-image-picker

* fix picker util

* Added action for setDefaultProfileImage

* account outline on remove picture

* Update edit_profile.tsx

* fix image picker

* style fix

* fix image picker

* removed unused types

* mmjstool issue with integrity checksum

* perform camera permission check for Android

* fix to pull latest status

* updated ChangeProfilePicture to EditProfilePciture

* removed integrity key for mmjstool in package-lock.json

* corrections from pr review

* bumping react-native-image-picker to v4.7.1

* pod install

* update to hooks dependency

* fix profile picture component

* added event emitter from edit_profile_picture

* made hitslop a constant

* code clean up

* uploadProfilePicture as a remote action

* else if profileImage removed

* removed check on isBot

* update renderProfilePicture dependencies

* extractFileInfo with try catch

* updated snappoints

* Revert "updated snappoints"

This reverts commit 6d16d480a168755fc80e5bc80569ad3ba561f73b.

* profile picture size

* refactored renderProfilePicture into its own component

* change to if else

* platform select for hasPermissions

* unneeded comment removed

* else if on prefix in edit profile picture

* track has update user info now

* moved image_picker under edit_screen and increased actionSheets item height

* added preventDoubleTap for imagePicker

* multiple uploads

* switch the conditions

* added alert box as requested by Marina

* Revert "added alert box as requested by Marina"

This reverts commit 20735c17a87b40995e05eb4318c138c1adcc6c8c.

* Apply suggestions from code review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* removed userInfos constant

* added useMemo for certain components on profile_picture

* converting account-outline into a constant

* added panelItem component

* adding return instead of making the function return

* eslint fix

* update i18n  desc

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* hasPictureUrl transferred to file utils

* removing excess mediaType prop

* add USER_PROFILE_PICTURE_SIZE into constant/profile

* relocate hasPictureUrl method

* relocate hasPictureUrl
* rename ImagePicker to ProfileImagePicker

* removing isDestructive property from panelTypes.

* update sectionLimit for attachFileFromPhotoGallery

* Change animation for showModalOverCurrentContext to a quick alpha on iOS

* re-create PickerUtil if intl changes

* Combine styles in edit_profile_picture component

* Split profile image component into smaller components

* useCallback for showFileAttachmentOptions

* split comment into multiple lines

* edit_profile group refs

* remove unnecessary casting

* add new line to file.d.ts

* remove extra space for utils/index.d.ts

* allowMultiSelection for attachFilesFromFiles, default is false

* Split edit profile screen into smaller components

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-01-28 16:06:50 +04:00
..
channel [Gekidou] Login entry point (#5568) 2021-07-26 12:03:43 +04:00
document [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
draft Add import order lint rules (#5672) 2021-09-13 10:18:03 +02:00
emoji [Gekidou] post list (#5893) 2022-01-17 07:06:26 -03:00
file MM-40364 [Gekidou] - Image Picker for Edit Profile (#5901) 2022-01-28 16:06:50 +04:00
gallery [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
general MM-36721 - [GEKIDOU] Porting Markdown components (#5586) 2021-08-02 20:30:17 +04:00
images [Gekidou] Avoid technical debt (#5795) 2021-10-28 10:15:17 -03:00
markdown Corrects SemiBold to Semibold (#5903) 2022-01-20 09:28:08 -03:00
notification [Gekidou] push notifications (#5779) 2021-10-27 17:53:11 -03:00
post [Gekidou] Handle post related websocket events (#5851) 2022-01-24 12:43:21 +01:00
post_list [Gekidou]: MM-39757 - Recent mentions (#5823) 2021-12-16 12:26:43 +02:00
role [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
supported_server [Gekidou] Avoid technical debt (#5795) 2021-10-28 10:15:17 -03:00
tap MM-36721 - [GEKIDOU] Porting Markdown components (#5586) 2021-08-02 20:30:17 +04:00
theme [Gekidou] post list (#5893) 2022-01-17 07:06:26 -03:00
url Add import order lint rules (#5672) 2021-09-13 10:18:03 +02:00
user [Gekidou] Manage user websocket events (#5862) 2022-01-24 12:12:06 +01:00
apps.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
buttonStyles.ts [Gekidou] MM-39736 Login Flow (#5799) 2021-11-18 22:07:41 +01:00
client_error.ts Draft - Add Server Screen Gekidou Updates (#5663) 2021-10-29 19:14:55 -03:00
error_handling.ts Update v2 dependencies (#5312) 2021-04-14 10:55:29 -04:00
font_family.ts fixed OpenSans, added Metropolis fonts & modified post text styles (#5728) 2021-10-07 17:20:39 -03:00
helpers.ts [Gekidou]: MM-39757 - Recent mentions (#5823) 2021-12-16 12:26:43 +02:00
key_mirror.ts MM-35115 [Gekidou] Login flow - Email and Password (#5402) 2021-06-18 00:57:40 -04:00
mattermost_managed.ts Entry point when upgrading from v1 (#5707) 2021-10-01 09:56:28 +04:00
message_attachment_colors.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
mix.ts MM-30482 [Gekidou] Data Operator (#5346) 2021-04-22 19:16:00 +04:00
opengraph.js [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
opengraph.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
security.ts Integrate react-native-network-client (#5499) 2021-07-06 11:16:35 -04:00
sentry.ts Add import order lint rules (#5672) 2021-09-13 10:18:03 +02:00
typography.ts Draft - Add Server Screen Gekidou Updates (#5663) 2021-10-29 19:14:55 -03:00