Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Flight Icon Request: loading and run #282

Closed
amyrlam opened this issue Sep 27, 2021 · 6 comments · Fixed by #383
Closed

Flight Icon Request: loading and run #282

amyrlam opened this issue Sep 27, 2021 · 6 comments · Fixed by #383
Assignees
Labels
enhancement New feature or request Icon Request New issue for an icon-related task triage triage issue to determine validity

Comments

@amyrlam
Copy link
Contributor

amyrlam commented Sep 27, 2021

Outline the use case for the new icon.
1:1 replacement for existing structure icons

If there's a similar existing icon, why isn't it a good fit? Please describe.
Flight doesn't have animated icons rn

Describe alternatives you've considered.
N/A

Additional context

@amyrlam amyrlam added enhancement New feature or request triage triage issue to determine validity labels Sep 27, 2021
@meirish
Copy link

meirish commented Sep 27, 2021

I think the run icon is used on TFC run states, or that was the intended target

@jesdavpet
Copy link

jesdavpet commented Dec 6, 2021

Just wanted to +1 @amyrlam on the need for parity by adding an animated loading icon, WRT our discussion on Slack today.

TL;DR

  • lack of a loading icon necessitates mixing both old and new icon libraries in the HCP Portal UI
  • mixing icon libraries results in inconsistent and visually jarring spacing and alignment differences
  • working around this with hacky one-off CSS is not ideal, would prefer to use a single icon library

@amyrlam
Copy link
Contributor Author

amyrlam commented Dec 7, 2021

Context:

Next steps (I think these are the next steps):

  • @cveigt will start working on this issue but a due date is unclear
  • For now it is preferable to use a manual CSS override for Structure loading, in conjunction with Flight icons.

@didoo
Copy link
Contributor

didoo commented Dec 7, 2021

Some things I noticed and I posted in an internal thread, and I am reposting here for context (it is not exhaustive, please take it just as extra info):

in Structure library in Figma seems there are two icons, loading and run

screenshot_489

how the animation for the loading icon is done in Structure:
https://github.com/hashicorp/structure/blob/main/packages/pds-ember/public/structure-icons/loading.css
there are two animations (fancy and simple) controlled via a media-query

this code is duplicated here:
https://github.com/hashicorp/structure-icons/blob/a3d53fbca427c54abcca216974834648ded89a5f/src/loading.css
not sure why

this is how the animation is done for the run icon
https://github.com/hashicorp/structure-icons/blob/a3d53fbca427c54abcca216974834648ded89a5f/src/run.css

/cc @ cveigt for context (see all thread above)

@sabrinako
Copy link

+1 for loading, the Waypoint UI uses this Structure icon. Just wanted to add another data point 🙂

@cveigt
Copy link

cveigt commented Jan 14, 2022

Update: We are bringing both "loading" and "running" icons to the next version of Flight.

Screen Shot 2022-01-14 at 1 16 09 PM

For more context

We (the DS team) talked to some product designers and have taken into consideration a variety of use cases through HCP and TFC, as well as their feedback during the design phase.

They can be found already within Figma in the latest release the team made today.

Screen Shot 2022-01-14 at 1 21 40 PM

We'll be adding some documentation to the website regarding usage soon.

Side notes
@didoo here's the Codepen for reference on the animation.

On Accessibility: On the eng side, we should add a media query to support prefers-reduced-motion, though I'd like @MelSumner to confirm this. Don't think the icons need alternate styling, animation: none would be enough.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Icon Request New issue for an icon-related task triage triage issue to determine validity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants