Skip to content

Conversation

@MaxBittker
Copy link
Contributor

@MaxBittker MaxBittker commented Aug 9, 2017

This PR replaces project creation with a new react view that captures platform intent and re-uses components from the onboarding view. it also removes the old django view and moves the tests to jest and acceptance

https://media.giphy.com/media/xUPJUs84cSrQC2USVW/giphy.gif

@ghost
Copy link

ghost commented Aug 9, 2017

1 Warning
⚠️ You should update CHANGES due to the size of this PR

Generated by 🚫 danger

@MaxBittker MaxBittker force-pushed the new-project-flow branch 3 times, most recently from 8dfacfb to 6d17794 Compare August 14, 2017 23:52
@MaxBittker MaxBittker changed the title New project flow [WIP] New project flow Aug 16, 2017
@MaxBittker MaxBittker changed the title New project flow update new project flow to use fancy onboarding components Aug 16, 2017
@MaxBittker MaxBittker requested a review from denamwangi August 16, 2017 21:59
@MaxBittker MaxBittker force-pushed the new-project-flow branch 3 times, most recently from 7cb0966 to f504e4d Compare August 18, 2017 21:34
@MaxBittker MaxBittker changed the title update new project flow to use fancy onboarding components update project creation Aug 18, 2017
@MaxBittker MaxBittker force-pushed the new-project-flow branch 2 times, most recently from 53e2288 to 57eddd0 Compare August 22, 2017 17:27
@MaxBittker
Copy link
Contributor Author

interested on UX + look+feel feedback as well!

@kjlundsgaard
Copy link

This looks good! A couple things I noticed:

  1. If you select a platform and go to the issue stream and then click installation instructions it takes you back to the platform picker where you need to resubmit the platform you're using.
  2. During the configure your application section, you don't have access to the "star this project" or "project settings" buttons.

I guess its possible that 1 is desired behavior because maybe people will want to configure their project for another platform and 2 is desired because we don't want to distract people from the configuration process with other options. Not sure how likely people are to go through the flow and go back to configuration.

Overall it looks much better than the django view, though - I like it.

@MaxBittker
Copy link
Contributor Author

MaxBittker commented Aug 23, 2017

I'm curious if it's safe to remove the old django view the way I did or if there's some complication i'm missing

@billyvg
Copy link
Member

billyvg commented Aug 24, 2017

Looks great!

Some small/random thoughts:

  • (not a big deal here but this is the browser's autofill input, padding on input would make this look better)
    image
  • What are the frameworks sorted by on the Popular tab? It seems like language name, framework name? Would it be better to do a sort by popularity?
    • It might be weird only having Popular not sorted alphabetically - maybe have autofocus on the search input?
  • This is because I'm a superuser I'm assuming, but you can create a project on a team you are not a member of, and in the Stream view, the ProjectSelector component does not have a project selected. This might be ok if it only applies to superusers.
    • If not then we should fix the Team dropdown, or style/sort so that it favors teams you are a member of.
  • "Continue" button doesn't really give you an idea of what's going to happen, vs something like "Create Project".
    • I've noticed this on the old django view, and it's worse there (and worse in local dev env because of added latency), but you can mash the submit button and create multiple projects
  • Love the framework icon in Project name input!

@denamwangi
Copy link

This is such a big improvement Max. Most things have been noted but i'd say two small things that might be nice would be to widen the team picker dropdown to accommodate longer names since we have the space available.
screen shot 2017-08-24 at 5 20 15 pm

I don't know how tricky it would be to take out but it would be nice to take the project picker dropdown out of this flow when creating a new project.
screen shot 2017-08-24 at 5 22 30 pm

@MaxBittker
Copy link
Contributor Author

i'lll widen it! katie also mentioned some header stuff but i want to leave that off for a next pass along with some of billy's comments

Copy link
Member

Choose a reason for hiding this comment

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

Let's use the OrganizationState mixin here

Copy link
Member

Choose a reason for hiding this comment

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

Doesn't react-router provide this as a prop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

if you grep for this.props.location it seems to be used more than this.context.location

Copy link
Member

Choose a reason for hiding this comment

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

is this necessary?

Copy link
Member

Choose a reason for hiding this comment

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

no change needed here, but thoughts on adding eslint rule for preferring shorthand?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

initial impression is no but I could be convinced otherwise

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 I've given people this feedback repeatedly, if we can automate it, let's.

Copy link
Member

Choose a reason for hiding this comment

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

can we move this into render and is cloneElement needed here?

Copy link
Member

Choose a reason for hiding this comment

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

: is still inside of t()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you must have been eating your fish eyes

Copy link
Member

Choose a reason for hiding this comment

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

nit: I think it's a bit cleaner if we just invoke the method here (and more consistent w/ codebase)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:( this is cheekier. but you're right.

Copy link
Member

Choose a reason for hiding this comment

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

OrganizationState

@MaxBittker MaxBittker force-pushed the new-project-flow branch 3 times, most recently from 2333efa to 6050f19 Compare August 28, 2017 21:31
},

contextTypes: {
organization: SentryTypes.Organization,
Copy link
Member

Choose a reason for hiding this comment

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


const newProject = React.createClass({
contextTypes: {
organization: SentryTypes.Organization
Copy link
Member

Choose a reason for hiding this comment

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

OrganizationState mixin

@billyvg billyvg self-requested a review August 28, 2017 23:56
@MaxBittker MaxBittker merged commit d95c3eb into master Aug 29, 2017
@mattrobenolt mattrobenolt deleted the new-project-flow branch August 31, 2017 19:22
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants