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

249 prepopulate installer information when creating a project #260

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

lindsayJohnstonPnnl
Copy link
Collaborator

@lindsayJohnstonPnnl lindsayJohnstonPnnl commented Jan 8, 2025

NEW UI CREATED:

When user clicks New Project:

  1. They will see the New Project form and it will pre-populate the Installer Information with the data from the last project they edited or created
    image

  2. There will be a drop down menu where they can choose from a list of previously entered installer information, they can also clear the Installer Fields from this drop down
    image

  3. If there is no previously-created project, the drop down does not show up and the Installer Fields do not pre-populate

  4. If the user is editing a project instead of creating a new one, the drop down does not show up and ALL the fields populate with that project's data from the database

  5. I also noticed this bug where the user could submit an invalid form:

Screen.Recording.2025-01-08.at.4.41.21.PM.mov
  • I fixed this bug in my branch, but I didn't spend a ton of time making it ideal. Perhaps we could revisit this UX?

SUGGESTIONS FOR NEXT STEPS:

  1. When the user chooses to edit an existing project, they see the same "New Project" form. This was existing behavior that I did not change, but it might be good to change that heading to "Editing Project" or something similar.

image

  1. Because there are quite a few differences between how the "new project" and "edit project" forms work, there is a lot of conditional logic switching things on and off. I might suggest creating an entirely different route (maybe /app/{id-number}/edit) and a separate EditProject component for editing an existing project. I think that this would make the code easier to read and work on in the future.

  2. Some other things I noticed in the UI:

*Would be nice to have a "Home" button (could even hyperlink the "Quality Install Tool" header so that it directs to the root route.

  • This is nitpicky, but the Quality Install Tool Heading is not centered here:

image

*Would be nice to have a "Back" button at the top of the New Project or Edit Project form. I found myself clicking the back button on the browser from this page and it doesn't work as I expected. Maybe we should change that too? I think it might be coming from the way we are navigating here with replace:true:

image

Screen.Recording.2025-01-08.at.4.33.38.PM.mov

*Could clean up the display of addresses when it's not fully filled out (note the comma after City Name):

image

…lating. There is a bug in editing a project.
@lindsayJohnstonPnnl lindsayJohnstonPnnl linked an issue Jan 8, 2025 that may be closed by this pull request
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.

Prepopulate Installer Information When Creating a Project
1 participant