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

Notify app updates #1059

Merged
merged 4 commits into from
Jul 2, 2019
Merged

Notify app updates #1059

merged 4 commits into from
Jul 2, 2019

Conversation

andresmgot
Copy link
Contributor

@andresmgot andresmgot commented Jun 18, 2019

Fixes #1039

Screenshot from 2019-07-01 17-33-18
Screenshot from 2019-07-02 12-10-00
Screenshot from 2019-07-02 12-09-54

  • If there is a new chart version and the app version changes we notify this as a new app version
  • I have removed the tooltip text box of the "Upgrade" button since it was not that helpful and it would be confusing to notify there different types of versions.

<span className="upgrade-text">Upgrade</span>
<ArrowUpCircle color="white" size={25} fill="#82C341" className="notification" />
</button>
<span className="tooltiptext tooltip-top">New version ({updateVersion}) found!</span>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed this tooltip text because that info is already explained in the new info

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me. Do you think the tooltip feature may be used in another place of this app? We may want to keep it for other use cases. However, I see we're using it as an inline CSS style, so we will need to create a component. Definitively, it can be done in a separate task but I wanted to highlight it :)

Copy link
Contributor Author

@andresmgot andresmgot Jul 2, 2019

Choose a reason for hiding this comment

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

right, for the moment nothing would use it so we don't need it but it's true that moving that to a component can be helpful

takes a mental note

@andresmgot andresmgot requested a review from Angelmmiguel July 2, 2019 10:57
Copy link
Contributor

@Angelmmiguel Angelmmiguel left a comment

Choose a reason for hiding this comment

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

LGTM @andresmgot ! I added a few comments but they're not blockers of this PR :)

<span className="upgrade-text">Upgrade</span>
<ArrowUpCircle color="white" size={25} fill="#82C341" className="notification" />
</button>
<span className="tooltiptext tooltip-top">New version ({updateVersion}) found!</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me. Do you think the tooltip feature may be used in another place of this app? We may want to keep it for other use cases. However, I see we're using it as an inline CSS style, so we will need to create a component. Definitively, it can be done in a separate task but I wanted to highlight it :)

text-align: center;
padding: 0.25em 0;
font-size: 14px;
background: #008145;
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't we using HEx library in this project? I don't remember, honest. You can use the color method if it's available.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it seems we are not :)

return (
<div>
updateContent = (
<React.Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! :)

@andresmgot andresmgot merged commit 8df0ec8 into vmware-tanzu:master Jul 2, 2019
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.

display update of chart and update of application
2 participants