Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MM-34586 Custom status feature #5220

Merged
merged 94 commits into from Jun 4, 2021

Conversation

chetanyakan
Copy link

@chetanyakan chetanyakan commented Mar 12, 2021

Summary

  • Mobile Custom User Statuses

Ticket Link

Checklist

  • Added or updated unit tests (required for all new features)
  • Has UI changes
  • Includes text changes and localization file updates

Device Information

This PR was tested on:

  • iPhone 11 Pro Simulator - iOS 14.4
  • Android Emulator - Pixel_3a_API_30_x86 - Android 10

Screenshots

image
image
image
image
image

Release Note

Added the custom status feature support for the RN mobile apps. Mattermost server v5.36+ is required to access custom statuses on mobile.

manojmalik20 and others added 27 commits March 4, 2021 15:23
Added custom status actions and API integration
Added custom status selectors and types
Added custom status emoji component
Added EnableCustomStatuses flag in config
Added Set a status option in the settings sidebar
Fixed the default emoji in the set a status in the settings sidebar
Made a custom status label component to match the styling of rest of the drawer items
Fixed the bug in the selectors
Added localization id in en.json
Fixed the custom status label issue
Added styling and icon for the clear button
Fixed order of the localization ids
Fixed the long custom status overflowing in the sidebar with ellipses
Added the functionality to open custom status modal from sidebar
Made the constants for custom status
Made the custom status suggestion functional component
Made the custom status modal functional component
Made the selector for the recent custom statuses
Added some localization ids
Added recent custom statuses in the modal
Fixed the styling of titles
Fixed lint errors except one
Refactored the code of the custom status label to a different file and used it everywhere
Made a separate component for clear button and added it in recents and sidebar
Fixed the styling of the custom status text according to the new figma designs
Fixed the Done button in custom status modal
Added the functionality to clear status from inside the modal
Added custom status in user profile page
Added custom status emoji in post header
Added functionality to preventDoubleTap everywhere
Added localization ids
Review fixes
Increased touch area of clear button everywhere
Fixed the event propagation issue in clearing suggestions
Fixed the center alignment issue of title in custom status modal
Added clear button in user profile page
Review fixes
…ile into MI-1190

* 'MI-1190' of github.com:brightscout-alpha/mattermost-mobile:
  Fixed types and separated functions for Recent and suggestions in custom status modal
Started with the custom status feature
Fixed clear button border radius issue in ios
Changed the method to post in removeRecentCustomStatus API call
Made the custom status modal input single line and fixed the height
Changed the height of iconContainer in custom status suggestion
…st-mobile into custom-status

* 'custom-status' of github.com:brightscout-alpha/mattermost-mobile:
  Added emojipicker in custom status modal Fixed the Done button in custom status modal Added the functionality to clear status from inside the modal
  Refactored some code and made clear button component Refactored the code of the custom status label to a different file and used it everywhere Made a separate component for clear button and added it in recents and sidebar Fixed the styling of the custom status text according to the new figma designs
  Update types
  Fix types and use i18n translations
  Changed the custom status modal to class component Added recent custom statuses in the modal Fixed the styling of titles Fixed lint errors except one
  Made custom status modal with suggestions Fixed the long custom status overflowing in the sidebar with ellipses Added the functionality to open custom status modal from sidebar Made the constants for custom status Made the custom status suggestion functional component Made the custom status modal functional component Made the selector for the recent custom statuses Added some localization ids
  Added icon for clear button Fixed the custom status label issue Added styling and icon for the clear button Fixed order of the localization ids
  Fixed emoji and added clear button Fixed the default emoji in the set a status in the settings sidebar Made a custom status label component to match the styling of rest of the drawer items Fixed the bug in the selectors Added localization id in en.json
  Started with the custom status feature Added custom status actions and API integration Added custom status selectors and types Added custom status emoji component Added EnableCustomStatuses flag in config Added Set a status option in the settings sidebar
- Added custom status in user profile page
- Added custom status emoji in post header
- Added functionality to preventDoubleTap everywhere
- Added localization ids
@mattermod
Copy link
Contributor

Hello @chetanyakan,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@matthewbirtch
Copy link
Contributor

@matthewbirtch Is the sizing in the channel header ok or should the emoji be slightly smaller?

Wow, good eye @ogi-m. It does appear to be very slightly larger than what is in the design. The design had the font-size set to 18, but it looks like it might be 20 here.

@manojmalik20
Copy link

@ogi-m @matthewbirtch Changed the emoji size in the channel title. Good for re-review.

@enahum
Copy link
Contributor

enahum commented Jun 3, 2021

The PR won't be merge without the server check.. I rather be on the safe side.

@manojmalik20
Copy link

@enahum I'll add the server check as soon as @ogi-m is finished with reviewing.

@enahum enahum added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Jun 3, 2021
@ogi-m ogi-m added the Build Apps for PR Build the mobile app for iOS and Android to test label Jun 3, 2021
@mattermod
Copy link
Contributor

Building app in separate branch.

@mattermod mattermod removed the Build Apps for PR Build the mobile app for iOS and Android to test label Jun 3, 2021
@mattermod
Copy link
Contributor

Copy link

@ogi-m ogi-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @manojmalik20 please add the server version check back and we can merge.

@ogi-m ogi-m added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Jun 3, 2021
@manojmalik20
Copy link

I've resolved all the conflicts. @matthewbirtch and @ogi-m Do you want to review again or should I add the server version check?

Fixed the prop type isMilitaryTime for user_profile screen
@ogi-m
Copy link

ogi-m commented Jun 4, 2021

@manojmalik20 I think we're good, please add the server version check 👍🏻

@enahum enahum merged commit e442275 into mattermost:master Jun 4, 2021
@mattermod
Copy link
Contributor

Cherry pick is scheduled.

mattermost-build pushed a commit to mattermost-build/mattermost-mobile that referenced this pull request Jun 4, 2021
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Jun 4, 2021
enahum pushed a commit that referenced this pull request Jun 4, 2021
(cherry picked from commit e442275)

Co-authored-by: Chetanya Kandhari <chetanya.kandhari@brightscout.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet