Skip to content

Alerts for hardware and other info: overall designΒ #2956

@kaaaaathy

Description

@kaaaaathy

Overview

We need a way to tell Scratchers when their hardware extension device loses connection.
This design is for an alert message which directs users to the device modal.

Current Scope

The alert appears when an extension device loses connection.
Clicking "x" dismisses the alert.
device is disconnected 1

Clicking "reconnect" triggers the device modal. The original alert should disappear.
device is disconnected 2

The alert can also appear in full screen stage mode.
Clicking "reconnect" takes you back to the editor page w/ device modal.
full screen alerts 1

More than one alert can appear at once. Multiple alerts should stack.
multiple alerts 3

Stacking behavior persists in full screen stage.
full screen alerts 2

Although multiple alerts case is probably rare... the stacking solution isn't ideal. We might revisit a solution that doesn't dominate the entire workspace.

Future Considerations

Extensibility

Alerts could also be useful in other use cases:

  • Downloading/uploading confirmations
    This case includes a "progress" alert and a "success" alert.
    download flow 2
    download flow 3

(Success alert should disappear on a timer.)

  • Lost wifi connection
    wifi is disconnected 1

Other Extensions Messaging

There are a couple situations where we should communicate that hardware is not connected, with or without alerts.

  • What happens if a Scratcher loads a project with hardware extensions, without a device already connected?
  • Is this useful for other extension errors, e.g. video sensing?
  • How does this system work with the project page?

Specs

Sizing + Colors
Minimum width is 448px. For the smaller size, min width is 200px.
Ideally, text shouldn't be longer than one line. If it needs to, it can wrap to a 2nd line.
spec

Positioning
Alerts are centered within the code stage.
First alert is 64px from the top of the page.
Multiple alerts have 8px of spacing between them.

multiple alerts 3

When the code stage stage shrinks, the alert is centered within the entire window instead, so that it doesn't lose width.
responsive

R1 Animation: https://codepen.io/kathymakes/pen/BPXxWB
R1 Mockups: https://projects.invisionapp.com/d/main#/projects/prototypes/15193635

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions