Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SVG logo spinner #387

Merged
merged 5 commits into from
Jun 3, 2021
Merged

Add SVG logo spinner #387

merged 5 commits into from
Jun 3, 2021

Conversation

kgcreative
Copy link
Member

@kgcreative kgcreative commented May 27, 2021

Signed-off-by: kgcreative kvngar@amazon.com

Description

Add SVG logo spinner, remove horizontal loader.

Before

spinner_before

After

spinner_after

Update primary dashboards card to use primary brand color.

Before

Screen Shot 2021-05-28 at 3 49 43 PM

After

Screen Shot 2021-05-28 at 3 14 13 PM

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

Signed-off-by: kgcreative <kvngar@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 6f5a26f

@kgcreative kgcreative mentioned this pull request May 27, 2021
5 tasks
… landing page

Signed-off-by: kgcreative <kvngar@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 0c29305

@tmarkley
Copy link
Contributor

Hey Kevin, did you run tests as described in the README?

Signed-off-by: kgcreative <kvngar@amazon.com>
@kgcreative
Copy link
Member Author

kgcreative commented May 28, 2021

Hey Kevin, did you run tests as described in the README?

All tests pass. Updated two snapshots.

Screen Shot 2021-05-28 at 2 22 27 PM

Screen Shot 2021-05-28 at 2 15 14 PM

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 927568d

@tmarkley
Copy link
Contributor

Great! Can you also add some screenshots just for reference?

@kgcreative
Copy link
Member Author

Great! Can you also add some screenshots just for reference?

Done and done! updated original PR with before/after screenshots.

mihirsoni
mihirsoni previously approved these changes May 30, 2021
Copy link
Contributor

@mihirsoni mihirsoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !! Thanks for making changes Kevin.

@kavilla
Copy link
Member

kavilla commented May 30, 2021

@kgcreative looks great! Thanks!

Ran the functional tests and they all pass just so you know!

For the card do we think we can update it to look better in dark mode or did we just want to leave it since it already was hard to read in the previous view, it looks like this:

Screen Shot 2021-05-30 at 2 09 50 AM

Previous had the same dark text but maybe a little bit easier to read since a vibrant green color against with black text (but still looked compared to white text).

In terms on the actual SVG, do you know if we have a polyfill for animateTransform somewhere hidden? Our is there specific documentation that calls out what browsers are supported for OpenSearch Dashboards? I'm not able to find it, as far as I am aware the source of the fork fully supported IE11 from a forum in 2018. But looking at the MDN web docs it looks like it isn't supported in IE11 [link to doc]

Pretty weird but I pulled this down and ran the unit tests (even with the snapshot) and the unit tests keep failing with a date mismatch. So I ran on them on a pipeline and they passed, then I ran the main repo's main branch multiple times but that passes for me. It just keeps failing on the unit tests when I try your branch locally, even if I clear my node modules, which is weird. Could someone else give this a run as well locally? If another person's unit tests pass then I'm okay with merging.

Thanks!

@kavilla kavilla self-requested a review May 30, 2021 09:40
Copy link
Member

@kavilla kavilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though I left a comment if I want to mark this review with "With Comments" github requires me to enter a comment with the popup while responding to the review 😤.

@kgcreative
Copy link
Member Author

Thanks @kavilla - Re: Browser support, as of 7.9, kibana (and EUI) no longer supports IE11. See this matrix: https://www.elastic.co/support/matrix#matrix_browsers - With that in mind, do we need to revisit or create a browser support list for OpenSearch Dshboards 1.0?

Re: Dark mode, let me dig into the CSS a bit and see what I can do - perhaps that might need to be a follow-up issue.

How did you trigger dark mode? Switch via the OS? (I just want to make sure I can reproduce and test visually locally)

@kgcreative
Copy link
Member Author

(even with the snapshot) and the unit tests keep failing with a date mismatch.

The weird thing is the date mismatch was happening on a component I didn't even touch. I'm wondering if something else is going on with that

@kavilla
Copy link
Member

kavilla commented May 30, 2021

With that in mind, do we need to revisit or create a browser support list for OpenSearch Dshboards 1.0?

Thanks! Yeah I think its worth it I think. Created an issue in the docs repo: opensearch-project/documentation-website#38

How did you trigger dark mode? Switch via the OS? (I just want to make sure I can reproduce and test visually locally)

Just go to Stack Management --> Advanced Settings --> Search for Dark Mode

The weird thing is the date mismatch was happening on a component I didn't even touch. I'm wondering if something else is going on with that

Might be local setup thing. If someone else pulls this down and it passes with your commit then I'm fine with just merging and looking deeper post merge.

@tmarkley
Copy link
Contributor

tmarkley commented Jun 2, 2021

I pulled this PR down, ran yarn osd clean and yarn osd bootstrap, and then ran unit tests. Those two snapshot tests also failed for me due to a date mismatch.

@kavilla
Copy link
Member

kavilla commented Jun 2, 2021

I pulled this PR down, ran yarn osd clean and yarn osd bootstrap, and then ran unit tests. Those two snapshot tests also failed for me due to a date mismatch.

@kgcreative since this is the case, did we want to revert the updating snapshot commit. Also curious how your local setup.

@kgcreative
Copy link
Member Author

I pulled this PR down, ran yarn osd clean and yarn osd bootstrap, and then ran unit tests. Those two snapshot tests also failed for me due to a date mismatch.

@kgcreative since this is the case, did we want to revert the updating snapshot commit. Also curious how your local setup.

Yeah, i can revert the snapshot update commit and see if that helps. For my local setup, I followed the developer guide verbatim. Is there anything I can provide you that might help troubleshoot if it's a local build issue?

This reverts commit 927568d.

Signed-off-by: kgcreative <kvngar@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 74ae8fa

@kgcreative
Copy link
Member Author

@kavilla - After reverting the snapshot update, i'm getting a date mismatch on my jest test suite (There seems to be a 1 day date mismatch on two VegaVisualization snapshot tests, and I'm seeing the following message along with it: ● VegaVisualizations › VegaVisualization - basics › should show vegalite graph and update on resize (may fail in dev env) - With that in mind, i'm tempted to leave that one alone on my end.

Screen Shot 2021-06-02 at 3 05 05 PM

…ontrast

Signed-off-by: kgcreative <kvngar@amazon.com>
@kgcreative
Copy link
Member Author

@kavilla - I updated the CSS color reference in the card to use the primary color token so the Dark Mode contrast is a bit better:

Screen Shot 2021-06-02 at 4 34 19 PM

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 1497154

@kavilla
Copy link
Member

kavilla commented Jun 3, 2021

@kavilla - After reverting the snapshot update, i'm getting a date mismatch on my jest test suite (There seems to be a 1 day date mismatch on two VegaVisualization snapshot tests, and I'm seeing the following message along with it: ● VegaVisualizations › VegaVisualization - basics › should show vegalite graph and update on resize (may fail in dev env) - With that in mind, i'm tempted to leave that one alone on my end.

Yeah I pull everything down so I can run it to verify, and we can potentially create an issue to figure out if we can recreate on other machines.

@kavilla
Copy link
Member

kavilla commented Jun 3, 2021

@kavilla - I updated the CSS color reference in the card to use the primary color token so the Dark Mode contrast is a bit better:

Looks really good thank you so much!

Copy link
Member

@kavilla kavilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linter, unit tests, integ test, and functional tests all good. looks really slick too! thank you

@boktorbb boktorbb self-requested a review June 3, 2021 20:06
@kavilla kavilla merged commit f36a50c into opensearch-project:main Jun 3, 2021
kavilla pushed a commit that referenced this pull request Jun 4, 2021
* Add SVG logo spinner, remove horizontal loader
* Change color on Primary "OpenSearch Dashboards" card in the main home landing page
* replace hardcoded CSS value with  token so dark mode card has enough contrast

Signed-off-by: kgcreative <kvngar@amazon.com>
kavilla pushed a commit that referenced this pull request Jun 4, 2021
* Add SVG logo spinner, remove horizontal loader
* Change color on Primary "OpenSearch Dashboards" card in the main home landing page
* replace hardcoded CSS value with  token so dark mode card has enough contrast

Signed-off-by: kgcreative <kvngar@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants