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

added sass lint to Canvas #43410

Merged
merged 4 commits into from
Aug 16, 2019
Merged

Conversation

andreadelrio
Copy link
Contributor

Summary

Add sass lint to the Canvas directory

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

@andreadelrio andreadelrio requested a review from a team as a code owner August 15, 2019 21:04
Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Some small comments. Just checked the code and didn't do a browser pass. Maybe @ryankeairns can help there. He's likely the most familiar with canvas.

.autocompleteItems, .autocompleteReference {
.autocompleteItems,
.autocompleteReference {
@include euiScrollBar;
height: 258px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Did it not yell about the pixel value here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, it's not giving any errors for px values. Maybe it needs to be configured or something?

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought for sure I set this up. I guess not. We don't have it on in EUI either. Something we can look into in a later PR.

https://github.com/sasstools/sass-lint/blob/master/docs/rules/variable-for-property.md

box-shadow: 0 2px 2px -1px rgba(153, 153, 153, 0.3), 0 1px 5px -2px rgba(153, 153, 153, 0.3);
background-color: $euiColorEmptyShade;
border: 1px solid $euiColorDarkShade;
box-shadow: 0 2px 2px -1px transparentize($euiColorMediumShade, .7), 0 1px 5px -2px transparentize($euiColorMediumShade, .7);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not 100% sure what this is used for, but a reminder we have a bunch of shadow mixins. They may or may not be a good sub.

https://github.com/elastic/eui/blob/master/src/global_styling/mixins/_shadow.scss

.canvasLayout {
background: #000; // This hex is OK, we always want it black
background: #000; // sass-lint:disable-line no-color-literals
Copy link
Contributor

Choose a reason for hiding this comment

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

$euiColorInk will give you this. It's always black.

@@ -6,6 +6,7 @@ files:
- 'src/legacy/ui/public/vislib/**/*.s+(a|c)ss'
- 'x-pack/legacy/plugins/rollup/**/*.s+(a|c)ss'
- 'x-pack/legacy/plugins/security/**/*.s+(a|c)ss'
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss'
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@snide
Copy link
Contributor

snide commented Aug 15, 2019

Also @andreadelrio. I notice a bunch of binary files changed? Any idea what that's about?

@andreadelrio
Copy link
Contributor Author

Also @andreadelrio. I notice a bunch of binary files changed? Any idea what that's about?

Hm no, no idea. I only touched scss files.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

This is looking much cleaner, thanks for tidying up!

Just a few comments below, hopefully they are all quick fixes. You'll also need to remove those 3 binary zip files from this change. Let me know if you need help with that. Thanks!

@ryankeairns ryankeairns self-requested a review August 16, 2019 18:01
Copy link
Contributor

@ryankeairns ryankeairns 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 addressing all the feedback.

@andreadelrio andreadelrio added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Aug 16, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@andreadelrio andreadelrio added v7.4.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Aug 16, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

LGTM. Don't forget to backport once you merge.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@andreadelrio andreadelrio merged commit dbab52a into elastic:master Aug 16, 2019
andreadelrio added a commit to andreadelrio/kibana that referenced this pull request Aug 16, 2019
andreadelrio added a commit that referenced this pull request Aug 16, 2019
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 19, 2019
…_update_json_spec

* 'master' of github.com:elastic/kibana: (35 commits)
  fix: 🐛 pass whole action context to isCompatible() method (elastic#43457)
  Deleted old kbn-top-nav directive (elastic#43168)
  [ML] Fixing cloning of single metric distinct count job (elastic#43435)
  Update @elastic/charts version 8.1.6 > 9.1.1 (elastic#43516)
  [Inspector Views] [Request View] - Migrate inspector_views to new platform (elastic#43191)
  [ML] Adding loading indicators to all wizard charts (elastic#43382)
  disable flaky test (elastic#43492)
  feature(code/frontend): cancel file blob and directory commits request if outdated (elastic#43348)
  fix(code/frontend): button group url should have previous query string (elastic#43428)
  [SIEM] Fixes index substring incorrectly matching configured indices and failing to install ML job (elastic#43409)
  [SIEM] Adds performance enhancements such by removing wasted renderers and adding incremental DOM rendering (elastic#43157)
  disable flaky test (elastic#37859)
  Added sass lint to Canvas (elastic#43410)
  [Maps] add indicator when layer is filtered by search bar (elastic#43283)
  Properly validate current user password during password change. (elastic#43447)
  Spaces - allow for hex color codes that include uppercase characters (elastic#43470)
  [Reporting] Add a bit more logging and a few more logging level promotions (elastic#43415)
  Partially convert index pattern server to typescript (elastic#43291)
  [Infra UI] Use sum for aggregating AWS metrics. (elastic#43293)
  [SIEM] Format bytes columns in timeline (elastic#43147)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EUI release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants