Skip to content

Onboarding improvements: The Blank Slate - #6365

Merged
shiftkey merged 61 commits into
masterfrom
blankslate-improvements
Dec 24, 2018
Merged

shiftkey merged 61 commits into
masterfrom
blankslate-improvements

Conversation

@niik

@niik niik commented Dec 7, 2018 •

Copy link
Copy Markdown
Member

Overview

This PR marks the first user-facing changes to the on-boarding project (see #5686) and focuses on the "blank slate", i.e. the view users are presented with when they've completed the welcome wizard (or when they don't have any repositories in the app).

Before

image

After

image

This view builds on the user research and metrics collected via (#5616) which showed us clearly that the most common action users take after completing the welcome wizard is cloning a repository. As such, this flow has been heavily optimized for that flow while getting rid of distractions.

Building on #6278 the repository list starts loading the moment the user signs in through the welcome wizard so for the majority of our users the repository list should be all loaded and ready when they get to the blankslate.

It's technically possible (although inconvenient and tricky) for a user to sign in to both a GitHub.com and a GitHub Enterprise account while in the welcome wizard so the dialog supports that as well, showing a tab bar to switch between the repositories when using two accounts

image

The most likely scenario where you'd end up with that however is if you've been using the app for a bit, signed in to two accounts, and then remove all the repositories from the app.

Testing

Easiest way to test this out is to sign out of all accounts, remove all repositories in the app, and then force the welcome flow by deleting the has-shown-welcome-flow key in localStorage (through dev tools or by running localStorage.removeItem('has-shown-welcome-flow') in the devtools console.

image

Release notes

Improved: A new, streamlined, flow for quickly adding your first repository to the application.

TODO

cc @billygriffin @tierninho

Closes #6474

niik added 30 commits November 2, 2018 10:18
@billygriffin billygriffin modified the milestones: 1.5.1, 1.6.0 Dec 17, 2018
@niik

niik commented Dec 19, 2018

Copy link
Copy Markdown
Member Author

This is ready for review 🙇

@niik niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Dec 19, 2018
@billygriffin
billygriffin requested review from a team December 19, 2018 17:46
@shiftkey shiftkey self-assigned this Dec 19, 2018
@tierninho

tierninho commented Dec 19, 2018 •

Copy link
Copy Markdown
Contributor

Tested again against the latest commits, and LGTM overall.

  • observance which I tribute to the lack of authentication:

When I logout of .com, I am automatically logged out of Enterprise too. Since I copied the user key over from prod to the dev environment, I appear to be logged in but still get warn: [ui] fetchRepositories: Error: Must authenticate to access this API in the logs as expected.

As soon as I logged out, both tabs disappeared. I assume this is correct because of above.
screen shot 2018-12-19 at 10 31 13 am

  • 🎨Single space needed after the first .

screen shot 2018-12-19 at 10 45 47 am

1.5.1-beta6, mac, 1c49d27

@shiftkey

Copy link
Copy Markdown
Member

I was able to trigger some stale state on 1c49d27 by running through these steps (apologies for there being so many steps to trip it):

  • nuke all state, see welcome wizard
  • skip account signin, complete rest of wizard, view blank slate
  • click "Clone a Repository from the Internet"
  • no accounts found, dialog asks you to sign in
  • sign in to account, return to blank slate, loading repositories occurs
  • after loading repositories done, choose a repository, but don't start the clone
  • click "File | Preferences" menu and sign out of account -> blank slate now hides repositories list
  • click "Clone a Repository from the Internet" again
  • no accounts found, dialog asks you to sign in
  • sign in to account, return to blank slate
  • repositories loading starts again but my selection from earlier is there and I can clone it?

Ideally I think the selection should be cleared when the blank slate reverts, but I haven't had a chance to spot where in the code that should occur.

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gonna spend some time testing on it, but the initial code looks good. Some small questions to start things off...

Comment thread app/src/ui/blank-slate/blank-slate.tsx Resolved
Comment thread app/src/ui/blank-slate/blank-slate.tsx Resolved
Comment thread app/styles/ui/_blank-slate.scss Resolved
@niik

niik commented Dec 21, 2018

Copy link
Copy Markdown
Member Author

I was able to trigger some stale state on 1c49d27 by running through these steps (apologies for there being so many steps to trip it):

I think this is a limitation in the FilterList where it doesn't signal that the selection isn't valid. Given that it's not trivial to get into this state I think we should land this PR and open an issue to look at that separately.

@shiftkey

Copy link
Copy Markdown
Member

I'll merge this in to not hold up this PR, but I wanted to point out a couple of dark theme things to follow up:

  1. the icon is hard to contrast against the light blue background of the speech bubble
  2. the text and stars inside this box have similar contrast - can we make the background less transparent?

I'll move it out to an issue afterwards if it's worth tracking

@shiftkey
shiftkey merged commit 249c06d into master Dec 24, 2018
@shiftkey
shiftkey deleted the blankslate-improvements branch December 24, 2018 15:22
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.

5 participants