hackforla / tdm-calculator

DTLA Hack for LA is partnering with Los Angeles Department of Transportation (LADOT) to develop a Traffic Demand Management (TDM) calculator tool. This tool will help planners at LADOT and real estate developers to meet the Los Angeles’s Mobility Plan goals by 2035.
https://tdm.ladot.lacity.org
GNU General Public License v2.0
48 stars 32 forks source link

Design: Create a mockup for a warning modal when resetting project fields #1900

Open NilakshiS opened 1 week ago

NilakshiS commented 1 week ago

Overview

A warning modal or message should appear when a user selects the reset project button to ensure a project is not accidentally lost. Create a mockup for the warning modal.

Action Items

Resources/Instructions

Warning modal from create projects page for reference ![Image](https://github.com/user-attachments/assets/8c70f6e3-33c8-472c-a48c-7e835396620d)
thetanmancan commented 3 days ago

@NilakshiS

Progress: I did some brief research looking at how modals are done in other applications, especially Google ones. I also made some different designs based on three of the modals we had in the style guide.

Blockers: I have some questions.

First, which modal from the style guide I should be using to base this modal off of? There are three that seem logical.

Three potential modal templates ![Important Info Box](https://github.com/user-attachments/assets/8b0f85d4-7a1f-4349-b280-76fa3d1847e8) ![Important Info Box 2](https://github.com/user-attachments/assets/85500afc-b1bf-4ce9-b3b2-d076266403c0) ![Warning Box](https://github.com/user-attachments/assets/b2e818de-7524-4030-863e-e9f8b1babf1b)

So I based three possible designs on them.

Three potential modal templates ![Image](https://github.com/user-attachments/assets/89e7dc63-46a4-4f22-aa2f-d6ae4ac9e39c) ![Image](https://github.com/user-attachments/assets/ecec12c8-795c-4518-9069-6227f24ce368) ![Image](https://github.com/user-attachments/assets/e0a01763-8358-4ec5-9120-21756ed9e217)

Please let me know if there is a protocol for deciding which design we should be using over others.

Second, where should the question marks be used? Some of the examples in the style guide show a question mark being used in the title, i.e. "Leave page and delete any unsaved data?", and some don't, i.e. "Delete FAQ". I'm not sure which style we're going with. The one thing that does seem consistent is that if a question mark is used in the title, it is not used in the subtitle, and vice-versa.

Third, can you give me some feedback for what to use for the subtitle? The three variations I have are:

  1. This will delete all data from the current project.
  2. All data will be deleted from this project.
  3. Delete all data from this project?

Fourth, is it alright to use the term "delete"? It seems like we're using the term "reset," but from the user's perspective, isn't all their data being deleted? The word "reset" usually implies that something is being set back to its original state, but that implies that the thing itself is being maintained, and in the case of using the "Reset Project" function, I don't think anything from the project that they're "resetting" is actually being retained. For example, if I reset my phone back to factory settings, the data is removed, but the phone is still there. In the case of a TDM project, if we reset the project, the project no longer exists. Therefore, isn't the word "reset" misleading? Wouldn't "delete" or another word like it be more representative of the actual functionality?

Availability: I should have fifteen hours available to work on TDM in the coming week. Any work on this particular issue is dependent on receiving feedback for it.

ETA: Once feedback has been received, any more changes on this issue shouldn't take more than an hour.

thetanmancan commented 19 hours ago

@NilakshiS, based on tonight's discussion with the team, I'm advocating for the following design:

My ideal design ![Image](https://github.com/user-attachments/assets/c519ebac-2f79-4216-b04b-cf6cfbceac93)

Here's the reasoning:

Image

Let me know if you have any questions or want me to make any more changes.