NYCPlanning / labs-applicantmaps

5 stars 5 forks source link

User should not see the wizard after completing wizard / viewing dashboard. #538

Closed andycochran closed 4 years ago

andycochran commented 5 years ago

Once you complete the wizard and view the dashboard, you should never see the wizard again.

Here are some bugs related to the wizard, redirects, and back/cancel buttons:

allthesignals commented 5 years ago

@andycochran why did you make this a single issue with checkboxes? Next time just open separate issues.

The first checkbox is caused by a missing property in the model, hasCompletedWizard. The following test passes when that data comes back:

    this.server.create('project', {
      projectName: 'test',
      applicantName: 'test',
      zapProjectId: 'test',
      needDevelopmentSite: true,
      needProjectArea: false,
      needRezoning: false,
      hasCompletedWizard: true,
    });

    await visit('/projects/1');

    assert.equal(currentURL(), '/projects/1');
allthesignals commented 5 years ago

The reason the second checkbox happens is that hitting + underlying zoning and transitioning to that route implicitly sets the project to "needUnderlyingZoning". Let's see if we can change that up...

allthesignals commented 5 years ago

These are not bugs so let's work on the definition of that a little bit. None of the behaviors in the checkboxes prevents a user from doing something in the app. This seems more like a luxury enhancement than a bug.

allthesignals commented 5 years ago

A nuance missing from the design spec here is whether or not adding an optional geometric property means implicitly that the user "needs" that? I'm not sure that's the case. "needs"-related state seem important exclusively to the wizard portion of the application.

hannahkates commented 4 years ago

Closing - No longer seems to be an issue.