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
49 stars 33 forks source link

Design: Create mockups for editing tooltips #1903

Open NilakshiS opened 1 month ago

NilakshiS commented 1 month ago

Overview

Admin users need the ability to edit the tooltip text in the calculator pages (1-4). So that they can update the information related to Strategies and Input fields that define a project (e.g., APN number).

Details

All the users on website have the ability to view tooltips on fields:

The "i" icon shows a Tooltip exists on a field ![image](https://github.com/user-attachments/assets/97f38a0c-66d0-40c7-b92e-8b111cdcf5ca)
Clicking on the icon opens the Tooltip with related information ![image](https://github.com/user-attachments/assets/7910b088-315b-4a0e-b9d5-3f7731e6d79e)

However Admin users need ability to modify the tooltips. We need to create mockups for the different actions admin user can take on tooltips:

Suggested design ideas for the new actions:

Action Items

Resources/Instructions

namigoeku commented 4 weeks ago

Questions for team:

  1. What will be editable in the tooltip edit modal?

    • Text, Hyperlink

    • Was told by Nilakshi that the edit will be a HTML textbox. Will design accordingly.

    • Since a tooltip can be created, can it also be deleted?

  2. What is the maximum text length?

    • Maximum text should be as short as possible, with external link to guide user to more information.
  3. Secondary issue 1: Tooltip and modal behavior: In-line with text, when should function as an overlay

  4. Secondary issue 2: Tooltip vs. Popover verbiage should be distinct

    • A tooltip is used to give the user hints or help them to complete an action. They are also non-interactive.
    • A popover is used to give the user more detail about how to complete an action and can include links, is clickable, can support larger text area.
    • Created issue #1916 so we can differentiate a tooltip from a popover in the design system.
namigoeku commented 2 weeks ago

I took the suggestions and made a mockup flow with as few steps as possible.

Blockers:

Plus icon indicates a tooltip may be added. #1903 - 1

An edit modal opens, with note that indicates the textbox is HTML only. #1903 - 3

Once the user closes the modal, they have a preview of the tooltip. To edit, they click the edit button on the bottom righthand corner. #1903 - 4

The edit modal appears and behaves similarly to the first modal. #1903 - 5

Clicking outside the modal will prompt a warning modal indicating the user will lose their changes. #1903 - 6

ExperimentsInHonesty commented 2 weeks ago

Small change required, it will use the same editing functionality as the FAQ. It will not require HTMLS

namigoeku commented 1 week ago

@ExperimentsInHonesty Hi Bonnie, would you suggest I make the edit modal look similar to the edit FAQ page portion?

jmeasow commented 1 week ago

Bonnie said it should be exactly like the editing of the FAQs because it is using the same library.