Skip to content

in-app release notes - #3601

Merged
outofambit merged 89 commits into
masterfrom
in-app-release-notes
Sep 7, 2018
Merged

outofambit merged 89 commits into
masterfrom
in-app-release-notes

Conversation

@shiftkey

@shiftkey shiftkey commented Dec 13, 2017 •

Copy link
Copy Markdown
Member

Fixes #2774

Data

  • compute and group release notes from API
  • only compute for the latest release, ignore in-between releases
  • tests

Component

  • layout and basic interactions
  • single layout mode when we have simple summary
  • two-section mode when we have complex summary
  • SVG background for header
  • render hyperlinks in each row
  • render mention in each row
  • render pretext (if found)
  • ermagherd all the CSS

Cleanup

  • compute release notes when an update is available
  • flow release notes from update store into component, make component stateless
  • cleanup loading jank - not needed
  • can we extract DialogHeader and reuse that instead of duplicating work here?
  • refresh wording for prompt and dialog buttons
  • open task to add support rendering "Pretext" header display a "pretext" header inside the in-app release notes #5510
  • cleanup mentions of HACK which are purely for testing/iterating on the UI

@shiftkey

Copy link
Copy Markdown
Member Author

@niik do you have the SVG assets for the header from here lying around somewhere?

@shiftkey
shiftkey force-pushed the in-app-release-notes branch from 4923ca2 to 0c56d75 Compare December 14, 2017 00:12
@nerdneha

nerdneha commented Sep 5, 2018

Copy link
Copy Markdown
Contributor

Lastly, if the user is upgrading from an old build (eg. v1.0 to 1.4), should we show all release notes applicable to the upgrade (ie. 1.0, 1.1, 1.2, etc)? The user might be interested in seeing this.

This came up early on in the design process and we settled on showing the version you're upgrading to, rather than producing a potentially overwhelming list of things from all the intermediate updates.

i don't think this has to happen for this feature in 1.4 but is there value in providing a link/button back to the https://desktop.github.com/release-notes/ page in the popup to see past release notes?

@billygriffin

Copy link
Copy Markdown
Contributor

We consider this a "destructive" dialog (because "Install and Restart" will close the app) and so the default behaviour is to just close the dialog.

I think I disagree with this, but I also don't consider hashing it out to resolution a blocker to shipping. The behavior we want to encourage is to upgrade to latest stable, and it's very clear with the verbiage what's going to happen when they click the button. If anything, my suggestion for "Install and Restart" might be a little too strong because people might think "restart" means restart their computer. When I look at the blue close button, that's confusing. "You're telling me about the new updates, but the path you're nudging me toward is to just close?"

@shiftkey

shiftkey commented Sep 5, 2018

Copy link
Copy Markdown
Member Author

@nerdneha please open an issue so we can track it

@billygriffin I call "destructive" loosely because the app won't remember things like what you've selected for committing and commit message details between launches. From the macOS HIG for dialogs:

@billygriffin

Copy link
Copy Markdown
Contributor

@shiftkey I agree with all of that. With this one, I think my expectation is that Return would have no effect as they suggest, but that the blue button is the "Install and Restart" one.

@shiftkey

shiftkey commented Sep 5, 2018

Copy link
Copy Markdown
Member Author

@billygriffin it's easy to switch but I've had to litigate this debate a few times and I'm kind of exhausted by it: #1311 #2988 #2463

@billygriffin

Copy link
Copy Markdown
Contributor

Totally fair @shiftkey, happy to proceed and potentially revisit at a later date.

@shiftkey

shiftkey commented Sep 6, 2018

Copy link
Copy Markdown
Member Author

Just realised that we have another place where we show this "clicking me will complete the update" action:

I like this terminology, despite it being a word longer than what we currently have for this new dialog.

Anyone else object to making these consistent?

@billygriffin

Copy link
Copy Markdown
Contributor

@shiftkey No objection to consistency. I’m not in love with any of the verbiage we’ve discussed (and I don’t have better ideas at the moment), and I also don’t think it’s that harmful in this case if we’re slightly off. Using the terminology we already use sounds good to me.

@shiftkey

shiftkey commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

@desktop/core anything else to add, or are we good to merge?

@outofambit
outofambit merged commit 8605dc5 into master Sep 7, 2018
@outofambit
outofambit deleted the in-app-release-notes branch September 7, 2018 16:34
@shiftkey shiftkey mentioned this pull request Sep 7, 2018
2 tasks done
@shiftkey

shiftkey commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

Excited to see this one out there:

@xt0rted

xt0rted commented Sep 11, 2018

Copy link
Copy Markdown
Contributor

Just saw this for the first time in 1.4.0-beta2 and it's awesome. What's odd is there's a small white box in the bottom right corner of the content area (shows with the light theme too, just much harder to notice).

image

@shiftkey

Copy link
Copy Markdown
Member Author

@xt0rted thanks for the note - I was able to reproduce this on Windows, and after poking around in the CSS for the dialog I found this disappeared when I disabled the overflow: scroll attribute here:

.container {
width: 600px;
max-height: 200px;
display: flex;
flex-direction: row;
padding-left: var(--spacing-triple);
padding-right: var(--spacing-triple);
overflow: scroll;
justify-content: space-around;

I think I've got a fix for it on the way too!

@tierninho

tierninho commented Sep 11, 2018 •

Copy link
Copy Markdown
Contributor

If it matters, here is the white-theme version on a mac. Wasn't sure how to repro at the time.

See the "Enhancements" title:
screen shot 2018-09-05 at 10 23 29 am

@shiftkey

Copy link
Copy Markdown
Member Author

@tierninho I believe that's just a sad artifact of the spacing between list aligning nicely to confuse.

Let's see if @outofambit or @donokuda have some ideas, as I think they were in there recently looking at the spacing.

@outofambit

Copy link
Copy Markdown
Contributor

what version did this screenshot come from @tierninho? that spacing looks like its from before my and @donokuda's last pass

@tierninho

Copy link
Copy Markdown
Contributor

@outofambit not entirely sure, but yes it was an older version. It was the build when there were two scroll bars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.