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

[DDW-509] Show success message for saving logs #1228

Merged

Conversation

thedanheller
Copy link
Contributor

@thedanheller thedanheller commented Dec 17, 2018

This PR implements a success message for logs download.

Todo:

  • Loading page
  • Connecting page
  • Support page
  • Update Copy Address notification to add a close button and the correct background
  • Correct copy for the "Logs successfully downloaded" message - @nikolaglumac
  • Japanese translation - @nikolaglumac

Screenshots:

image


Review Checklist:

Basics

  • PR is updated to the most recent version of target branch (and there are no conflicts)
  • PR has good description that summarizes all changes and shows some screenshots or animated GIFs of important UI changes
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub
  • Automated tests: All acceptance tests are passing (yarn run test)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in development build (yarn run dev)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in production build (yarn run package / CI builds)
  • There are no flow errors or warnings (yarn run flow:test)
  • There are no lint errors or warnings (yarn run lint)
  • Text changes are proofread and approved (Jane Wild)
  • There are no missing translations (running yarn run manage:translations produces no changes)
  • UI changes look good in all themes (Alexander Rukin)
  • Storybook works and no stories are broken (yarn run storybook)
  • In case of dependency changes yarn.lock file is updated

Code Quality

  • Important parts of the code are properly documented and commented
  • Code is properly typed with flow
  • React components are split-up enough to avoid unnecessary re-rendering
  • Any code that only works in Electron is neatly separated from components

Testing

  • New feature / change is covered by acceptance tests
  • All existing acceptance tests are still up-to-date
  • New feature / change is covered by Daedalus Testing scenario
  • All existing Daedalus Testing scenarios are still up-to-date

After Review:

  • Merge PR
  • Delete source branch
  • Move ticket to done on the Youtrack board

@thedanheller
Copy link
Contributor Author

@a-rukin what do you think of a different opacity for the close button when hovering the notification area? Here it has .5 and .8 when hovering.

hover

@alexander-rukin
Copy link
Contributor

@daniloprates good idea! like it :)

actions.profile.downloadLogs.trigger({ fileName, destination, fresh: true });
}
const { id, duration } = this.notification;
actions.notifications.open.trigger({ id, duration, });
Copy link
Member

Choose a reason for hiding this comment

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

You forgot to check if the downloaded logs are actually successfully saved before showing the notification!

Copy link
Contributor Author

@thedanheller thedanheller Dec 18, 2018

Choose a reason for hiding this comment

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

You are right! Do you think listening to the action is enough or we should actually check if the file exists? I think listening is enough.

}
const { id, duration } = this.notification;
actions.notifications.open.trigger({ id, duration, });
Copy link
Member

Choose a reason for hiding this comment

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

You forgot to check if the downloaded logs are actually successfully saved before showing the notification!

@thedanheller
Copy link
Contributor Author

Was wondering if a "View in Finder/Open folder" button wouldn't be useful, @a-rukin @nikolaglumac?

@alexander-rukin
Copy link
Contributor

alexander-rukin commented Dec 19, 2018

Was wondering if a "View in Finder/Open folder" button wouldn't be useful?

This may cause more bad than good.
In any case, a user will get access to the logs. Wise users will know the path by themselves and they will know the risks of changing something. Others can hurt themselves and then start complaining even more, so I'd prefer to avoid giving them a loaded gun 😂

@thedanheller
Copy link
Contributor Author

@a-rukin fair enough :)

@nikolaglumac
Copy link
Contributor

@daniloprates do we have translations for this PR?

@darko-mijic
Copy link
Contributor

do we have translations for this PR?
No, I need to sort this out @nikolaglumac

@nikolaglumac
Copy link
Contributor

@daniloprates @darko-mijic I suggest we use the following text for the success message: Logs successfully downloaded. @darko-mijic please confirm this so that I can send it over for translation 🙏

@thedanheller thedanheller removed the WIP label Jan 17, 2019
@nikolaglumac nikolaglumac self-requested a review January 18, 2019 15:11
Copy link
Contributor

@nikolaglumac nikolaglumac left a comment

Choose a reason for hiding this comment

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

Looks and works great @daniloprates 🎉

@nikolaglumac nikolaglumac merged commit 0b2bd35 into develop Jan 18, 2019
@iohk-bors iohk-bors bot deleted the feature/ddw-509-show-success-message-for-saving-logs branch January 18, 2019 15:11
@nikolaglumac nikolaglumac mentioned this pull request Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants