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

Implement new release banner - Closes #2144 #2300

Merged
merged 25 commits into from Aug 7, 2019

Conversation

massao
Copy link
Contributor

@massao massao commented Aug 1, 2019

What issue have I solved?

#2144

How have I implemented/fixed it?

  • Refactor flashMessage toolbox component to be more generic;
  • Created base header to render signInHeader or topBar component;
  • Created flashMessageHolder to be easier to render new flash messages;
  • Pass data from the IPC to new release banner;

The release summary is fetched from the release note and consists of the content of the first html tag.

The following items will be done in a followup ticket #2317 .

  • Open modal with IPC data through release banner;
  • Start update through click on dialog;
  • Show toaster that update started;

How has this been tested?

Change version on package.json, build the application an run with electront o see that the banner shows up.

Review checklist

@massao massao self-assigned this Aug 1, 2019
@massao massao added this to Pull Requests in Version 1.20.0 via automation Aug 1, 2019
};

FlashMessage.displayName = 'FlashMessage';
FlashMessage.Text = Text;
FlashMessage.Button = Button;
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome 🏆

@massao massao force-pushed the 2144-implement-new-release-banner branch 3 times, most recently from 11879de to cf5a04e Compare August 2, 2019 13:17
@massao massao force-pushed the 2144-implement-new-release-banner branch from bb1dc8b to b2d717c Compare August 2, 2019 13:53
@massao massao force-pushed the 2144-implement-new-release-banner branch from b2d717c to 981d1ea Compare August 3, 2019 13:47
@massao massao force-pushed the 2144-implement-new-release-banner branch from 981d1ea to 8e29375 Compare August 3, 2019 14:04
@massao massao changed the title Implement new release banner and dialog - Closes #2144 Implement new release banner Aug 5, 2019
@massao massao marked this pull request as ready for review August 5, 2019 07:45
@massao massao requested a review from slaweet August 5, 2019 07:45
Copy link
Contributor

@slaweet slaweet left a comment

Choose a reason for hiding this comment

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

  • 🐛 The release notes from Github can contain HTML that is escaped (see screenshot)
  • 🐛 In the release notes, the first line is the title of the first section (usually "Fixed bugs" or "Implemented enhancements"), It should IMO show the second line. (see "body" in https://api.github.com/repos/LiskHQ/lisk-hub/releases)
  • 🐛 "Read more" seems slightly vertically miss-aligned with the text.
    Screenshot 2019-08-05 at 10 05 56
  • ❓ On the dark splash screen it looks a bit weird, maybe bottom border would help. Please check with design team.
    Screenshot 2019-08-05 at 10 05 23

Otherwise, it works well. I'm still going through the code...

@massao
Copy link
Contributor Author

massao commented Aug 5, 2019

  • 🐛 The release notes from Github can contain HTML that is escaped (see screenshot)

I'm checking into it.

By what I discussed with @reyraa for future releases we are going to have the first line being a heading with the summary. But we can check other alternatives with him, if needed.

  • 🐛 "Read more" seems slightly vertically miss-aligned with the text.
    Screenshot 2019-08-05 at 10 05 56

This seems to be because the button has a font-size: 15px; and the text has font-size: 13px, because it's using display: flex; align-items: center; so it should be ok.

  • ❓ On the dark splash screen it looks a bit weird, maybe bottom border would help. Please check with design team.
    Screenshot 2019-08-05 at 10 05 23

Will check and update this comment with the conclusion.
Design team will update invision with one version of the splashscreen with the banner. https://projects.invisionapp.com/d/main#/console/17570736/377372026/preview

@slaweet
Copy link
Contributor

slaweet commented Aug 5, 2019

  • 🐛 Account initialization is not displayed anymore (I saw it in the HTML, but CSS makes it not visible somehow)

Screenshot 2019-08-05 at 10 56 18

@slaweet
Copy link
Contributor

slaweet commented Aug 5, 2019

By what I discussed with @reyraa for future releases we are going to have the first line being a heading with the summary. But we can check other alternatives with him, if needed.

The first line with summary sounds good. Will there be some formatting, like bold or H1-6 @reyraa ? IMO it makes sense to have the summary somehow highlighted on Github as one of the most important parts. Can we already do it for the latest release?
https://github.com/LiskHQ/lisk-hub/releases/tag/v1.19.1 So that we can test what does it look like now and not after the release.

src/utils/newRelease.js Outdated Show resolved Hide resolved
src/components/newReleaseMessage/newReleaseMessage.js Outdated Show resolved Hide resolved
@massao massao force-pushed the 2144-implement-new-release-banner branch from 980b57e to 818b4de Compare August 5, 2019 12:10
@reyraa
Copy link
Contributor

reyraa commented Aug 5, 2019

@slaweet @massao Yes, let's use a heading for the summary so it's easier read and we can grab the summary easily.

@massao massao requested a review from slaweet August 5, 2019 13:16
@reyraa
Copy link
Contributor

reyraa commented Aug 5, 2019

@massao I jazzed up this release note so you can test easily.
https://github.com/LiskHQ/lisk-hub/releases/tag/v1.19.1
Let me know if it works for you.

@slaweet
Copy link
Contributor

slaweet commented Aug 5, 2019

  • 🐛 Currently, it displays only the "Release goal" text. Do we want to change the code or the release notes format?

Screenshot 2019-08-05 at 15 39 29

@slaweet
Copy link
Contributor

slaweet commented Aug 5, 2019

When I tried to change it to display the actual text, I found out 🐛 it doesn't wrap the text on multiple lines if too long (or small screen)
Screenshot 2019-08-05 at 15 42 45

src/utils/htmlParser.js Outdated Show resolved Hide resolved
@massao
Copy link
Contributor Author

massao commented Aug 5, 2019

🐛 Currently, it displays only the "Release goal" text. Do we want to change the code or the release notes format?

For now I set the releaseSummary as being the first h4 on the release notes.

When I tried to change it to display the actual text, I found out 🐛 it doesn't wrap the text on multiple lines if too long (or small screen)

Fixed the wrapping issue, but had to disable show/hide animations, as it was relying on a specific height.

@massao massao force-pushed the 2144-implement-new-release-banner branch from 8d392a5 to a50256c Compare August 5, 2019 15:25
Copy link
Contributor

@slaweet slaweet left a comment

Choose a reason for hiding this comment

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

Thank you Massao, good job.

@slaweet slaweet requested a review from Efefefef August 5, 2019 16:00
@reyraa reyraa added this to the Sprint 6 milestone Aug 6, 2019
@massao massao changed the title Implement new release banner Implement new release banner - Closes #2144 Aug 6, 2019
Copy link
Contributor

@Efefefef Efefefef left a comment

Choose a reason for hiding this comment

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

Great 👍

@Efefefef Efefefef added the ready label Aug 7, 2019
@massao massao removed the request for review from yasharAyari August 7, 2019 12:05
@massao massao merged commit f82e042 into development Aug 7, 2019
Version 1.20.0 automation moved this from Pull Requests to Merged Pull Requests Aug 7, 2019
@massao massao deleted the 2144-implement-new-release-banner branch August 7, 2019 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Version 1.20.0
  
Merged Pull Requests
Development

Successfully merging this pull request may close these issues.

None yet

4 participants