Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Standardize look of widgets in various screen sizes

Open hmpf opened this issue 4 years ago • 16 comments

As we add support for smaller screens, we have ended up with several ways of doing the same thing:

  • Whether to have always have a button to create something, or only on small screens
  • Where the create button is located
  • What the create button looks like
  • no doubt etc. etc.

This should be standardized.

  • [x] Document what varieties we have, old frontend
  • [x] Document what varieties we have, new frontend
  • [x] Choose what to standardize on, see #1519
  • [ ] Document in a styleguide: Finish #1519
  • [ ] Implement

Varieties should be documented here so we can pick and choose, ditto mocks if we choose something not already implemented. Once we know what to do we can have one or more issues for tracking implementations.

hmpf avatar Aug 16 '21 07:08 hmpf

Create-/Add buttons

  • "Create New Timeslot" Screenshot 2021-08-23 at 12 00 51
    • Displays an otherwise-hidden form
    • Visible on xs and sm screens
    • Is replaced with "Collapse" after click
    • Contains MUI Create icon
    • Alignment: center
  • "Create New Profile" Screenshot 2021-08-23 at 12 01 20
    • Displays an otherwise-hidden form
    • Visible on all screen sizes
    • Is removed after click (re-appears on page-refresh only)
    • Contains MUI Add icon and button name
    • Alignment: right
  • "Add Phone Number" Screenshot 2021-08-23 at 12 20 13
    • Opens a dialog
    • Visible on all screen sizes
    • Contains MUI Add icon
    • Background: primary color
  • "Create Filter" Screenshot 2021-08-23 at 11 59 21
    • Opens a dialog
    • Visible on all screen sizes
    • Contains MUI Add icon (font-size: small)
    • Background: transparent

podliashanyk avatar Aug 23 '21 10:08 podliashanyk

Selectors with chips

  • Incident Filter selectors Screenshot 2021-08-23 at 12 46 09

    • Normal label text
    • Outlined input field
    • No end adornment
    • Contains helper text
  • Notification Profile selectors Screenshot 2021-08-23 at 12 48 00

    • Bold label text
    • Standard input field
    • End adornment contains a dropdown icon, and a MUI Clear icon (if input contains chips and field is focused)
    • No helper text

podliashanyk avatar Aug 23 '21 10:08 podliashanyk

Button Groups in Forms

  • Create/Update Timeslot Form Screenshot 2021-08-23 at 13 06 14 Screenshot 2021-08-23 at 13 06 22

    • Position: top right corner
    • No space between buttons
  • Create/Update Notification Profile Form Screenshot 2021-08-23 at 13 05 42 Screenshot 2021-08-23 at 13 05 57

    • Position: bottom right corner
    • Space between buttons

podliashanyk avatar Aug 23 '21 11:08 podliashanyk

Buttons

  • Padding, font style, font size, height varies from page to page

podliashanyk avatar Aug 23 '21 11:08 podliashanyk

Important for #1519

podliashanyk avatar Aug 13 '25 11:08 podliashanyk

NEW FRONTEND BELOW!

hmpf avatar Aug 13 '25 11:08 hmpf

Login-page, argus-theme: Image

After filling in the fields (censored):

Image

Button: on hover, gets darker. on click: shrinks as long as the mouse button is held

hmpf avatar Aug 13 '25 11:08 hmpf

New destination box

With nothing filled in:

Image

With something filled in:

Note double border on field with input.

Image

hmpf avatar Aug 13 '25 11:08 hmpf

Existing destination box:

Image

hmpf avatar Aug 13 '25 11:08 hmpf

Destination-page: All buttons get darker when hovered over, clicked button becomes smaller when clicked, pops back to normal after click.

hmpf avatar Aug 13 '25 11:08 hmpf

Preferences-page, "update interval" has hover:

Image

"Update interval" is active:

Image

"30s" has hover:

Image

"30s" has both hover an active, there's a shrinking animation:

Image

hmpf avatar Aug 13 '25 11:08 hmpf

User menu dropdown: Nothing selected. Image

Hover, top level:

Image

Hover, sublevel:

Image

ACtive (on click), sublevel, color is the same for top level:

Image

When selecting from drop down acts like preferences, except it has the grey background in the overview screenshot instead of white.

hmpf avatar Aug 13 '25 11:08 hmpf

Incidents page, argus theme

  • Stats widget
Image
  • Stats widget showing open drop"up"

Image

  • Table pagination

    Image

    with hover over button

    Image
  • Table:

    Image

    with table row hovered over:

    Image
  • Checkbox:

    Image

    checked:

    Image
  • Multiple select:

    Image

    with options selected:

    Image
  • Free solo input field:

    Image

    with input field being active:

    Image

    with input provided: Image

  • Range slider:

    Image

    on hover:

    Image
  • Select:

    Image Image
  • Button:

    Image

    on hover:

    Image
  • Small button:

    Image

    on hover:

    Image
  • Modal:

    Image
  • Text input field:

    Image

    with input provided:

    Image
  • Error alert:

    Image

    with hover over close button:

    Image
  • Success alert:

    Image

podliashanyk avatar Aug 13 '25 11:08 podliashanyk

Incidents-page: All clicked buttons become smaller when clicked, pop back to normal after click.

podliashanyk avatar Aug 13 '25 11:08 podliashanyk

Profiles page: looks almost like destinations...

Note no yellow buttons, the shadow is different. The box looks like it is hovering instead of being cut out.

Image

On click only the "Name" and "Timeslot" input fields get the double border.

When filled in, "Active" is white on black:

Image

hmpf avatar Aug 13 '25 11:08 hmpf

Timeslots page, argus theme

  • New timeslot box:

    Image

    It has shadow, same as on the profiles page

  • Existing timeslot:

    Image

    It has shadow, same as on the profiles page

  • Text input field:

    Image

    when in focus:

    Image

    with input provided:

    Image
  • Delete checkbox and day checkboxes have different border width:

    Image Image
  • All inputs have double border when active

  • No yellow buttons

  • Border around the "Unsaved" recurrence has unique color:

    Image

podliashanyk avatar Aug 13 '25 12:08 podliashanyk