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

Create popup component, show it when profile changes is saved #2944

Merged
merged 26 commits into from
May 20, 2021
Merged

Create popup component, show it when profile changes is saved #2944

merged 26 commits into from
May 20, 2021

Conversation

kakajann
Copy link
Contributor

@kakajann kakajann commented May 14, 2021

Details

Notification pops up when a user make a change in their profile and saves it.

Changes

  • I have created reusable PopUpNotification component. It has 3 types (success, error, warning) and swipe or click to dismiss feature.
  • I added profilePage.popupMessageOnSave to en.js
  • I added an icon to show warnings and error popups /assets/images/exclamation.svg

Fixed Issues

Fixed: #2812

Tests

Tested in all 5 platforms. I will attach videos below.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Web.mov

Mobile Web

web.mobile.mov

Desktop

desktop.mov

iOS

ios.mov

Android

android.mov

@kakajann kakajann requested a review from a team as a code owner May 14, 2021 22:40
@github-actions
Copy link
Contributor

github-actions bot commented May 14, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@MelvinBot MelvinBot requested review from alex-mechler and removed request for a team May 14, 2021 22:40
...styles.p5,
},
bodyText: {
fontSize: variables.fontSizeNormal,
Copy link
Contributor

Choose a reason for hiding this comment

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

Just noticing this now, but I think you also need to pull in the correct fontFamily as well. Should be fontFamily: fontFamily.GTA,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@@ -10,5 +10,6 @@ export default {
green: '#03d47c',
greenHover: '#03c775',
red: '#fc3826',
yellow: '#FED607',
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor comment but can we use all lowercase here for consistency? #fed607

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@shawnborton
Copy link
Contributor

Awesome, thanks for all of the changes. Could we also see the growl notification when there is at least two lines of text?

@kakajann
Copy link
Contributor Author

Awesome, thanks for all of the changes. Could we also see the growl notification when there is at least two lines of text?

With default (19px) line height
Screen Shot 2021-05-15 at 5 15 15 AM

With 24px line heigth
Screen Shot 2021-05-15 at 5 17 53 AM

Which one would you like me to commit?

@shawnborton
Copy link
Contributor

A line height of 20 would be great and matches what we use elsewhere. Thanks!

@roryabraham
Copy link
Contributor

Can we rename PopUpNotification to GrowlNotification?

@kakajann
Copy link
Contributor Author

Can we rename PopUpNotification to GrowlNotification?

Sure

@roryabraham roryabraham self-requested a review May 18, 2021 15:30
@roryabraham
Copy link
Contributor

@kakajann It looks like you've got a merge conflict on this pull request

@roryabraham
Copy link
Contributor

Also, since this is your first time contributing to Expensify.cash (and we're thrilled to have you, by the way 😁), please be sure to read over the Contributor License Agreement and digitally sign it when you get a chance. Thanks!

src/languages/en.js Outdated Show resolved Hide resolved
Co-authored-by: Alexander Mechler <alex@mechler.dev>
@marcaaron
Copy link
Contributor

I don't want to leave a full review here, but noticed we are not capitalizing types for JSDoc @param

Style guide here if anyone needs them


const propTypes = {
children: PropTypes.node.isRequired,
translateY: PropTypes.instanceOf(Animated.Value).isRequired,
Copy link
Contributor

Choose a reason for hiding this comment

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

These also need comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commented


const propTypes = {
children: PropTypes.node.isRequired,
translateY: PropTypes.instanceOf(Animated.Value).isRequired,
Copy link
Contributor

Choose a reason for hiding this comment

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

and these

Copy link
Contributor

Choose a reason for hiding this comment

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

also could probably be generalized since they are the same in both files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, you are right, I just generalized them.

roryabraham
roryabraham previously approved these changes May 19, 2021
alex-mechler
alex-mechler previously approved these changes May 19, 2021
@kakajann kakajann dismissed stale reviews from alex-mechler and roryabraham via 30e57b9 May 19, 2021 22:38
@marcaaron marcaaron changed the title Create popup component, show it when profile changes is saved [HOLD] Create popup component, show it when profile changes is saved May 20, 2021
@marcaaron
Copy link
Contributor

@roryabraham @alex-mechler put a hold on this since @thienlnam brought to my attention that the author has not been hired.

Copy link
Contributor

@thienlnam thienlnam left a comment

Choose a reason for hiding this comment

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

Hey @kakajann,

While this is great work, you're not currently hired for the Upwork job and have skipped a couple of important steps in the process.
Under Propose a solution for the job, a couple of the steps are to

  1. Pause at this step until Expensify provides feedback on your proposal (do not begin coding or creating a pull request yet).
  2. If your solution proposal is accepted, Expensify will hire you on Upwork and assign the GitHub issue to you.

Your solution proposal was not accepted and you have not been hired on upwork. In this case, there aren't any other people working on this issue so we'll let you have this but please follow the steps in the future and reread the contributing guidelines.

Copy link
Contributor

@thienlnam thienlnam left a comment

Choose a reason for hiding this comment

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

I've hired @kakajann in Upwork now so feel free to merge if the PR looks good

@thienlnam thienlnam changed the title [HOLD] Create popup component, show it when profile changes is saved Create popup component, show it when profile changes is saved May 20, 2021
@alex-mechler
Copy link
Contributor

Merging since it looks like Marcs latest comment was resolved and both Rory and I have approved

@alex-mechler alex-mechler merged commit 3628780 into Expensify:main May 20, 2021
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@roryabraham
Copy link
Contributor

@kakajann Congrats on getting your first Expensify.cash pull request merged! Great job 🎉

@kakajann
Copy link
Contributor Author

@kakajann Congrats on getting your first Expensify.cash pull request merged! Great job 🎉

Thank you, it was a great experience for me to work with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an alert growl component and add confirmation growl when saving changes in profile
7 participants