-
Notifications
You must be signed in to change notification settings - Fork 220
Conversation
let's try to get @Angelmmiguel to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the general refactoring. I added some comments related to the CSS and the structure of the new components.
Can you attach some screenshots with the result of the changes? It would be nice to have that information associated to the PR.
Also, I saw you changed the warn color from deep-orange
to red
. What's the motivation to change the main palette of the project?
Thanks!
<app-chart-details-info [chart]=chart [currentVersion]=currentVersion></app-chart-details-info> | ||
</aside> | ||
<div class="chart-details__header"> | ||
<div class="chart-details__header__background" [style.background-color]="chartColor"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this concept but we don't control the color of icons. If the "main" color of an icon is to bright or dark, the readability of the content will be affected. Also, if the color is too saturated, the general design will look weird for that page.
&__background { | ||
width: 100%; | ||
height: 200px; | ||
background: md-color($monocular-app-primary); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This color will be overridden by the Icon's color when it's calculated. This will cause a flashing effect in the UI.
} | ||
} | ||
&__content { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This selector is duplicated on this file.
display: flex; | ||
flex-direction: column-reverse; | ||
padding: 0 1em; | ||
padding-bottom: 1em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge this value in the previous CSS property
width: 100%; | ||
margin-top: -80px; | ||
margin-bottom: 40px; | ||
&__background { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For readability of the CSS code, can you add an space before every selector? It's helpful to follow the hierarchy in the files :)
return list; | ||
} | ||
|
||
filterDeployments() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can create a common filter component that generate the select
elements and trigger an event when some of them change.
transition: background 0.2s ease; | ||
padding: 0.3em 0.5em; | ||
svg { | ||
fill: rgba(255, 255, 255, 0.6); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? We can update the SVG file to use the color defined in color
property instead of force the color in the fill property.
|
||
.md-input-wrapper { | ||
margin: .4em 0; | ||
background: rgba(255, 255, 255, 0.125); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather have a base color and change the alpha using SASS methods
src/ui/src/assets/icons/search.svg
Outdated
@@ -0,0 +1,8 @@ | |||
<svg height="32px" version="1.1" viewBox="0 0 32 32" width="32px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use svgo
to reduce the size of the SVG file
src/ui/src/index.html
Outdated
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
(function(i, s, o, g, r, a, m) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you uncompress the Google Analytics method and change the indentation of the script?
Related to my comments about taking the color of the icons, this is the problem I see: Also, what's the motivation to fix the size of the UI to Related to the cards, the icon is very relevant to identify a product. Now, the main element in the card is the color of the icon and they are smaller. Also, sometimes that color doesn't match with the real brand color. About the Home page, the cards have more margin on the right of the page: |
Thank you @Angelmmiguel , this is probably the best review I've ever seen. I definitely moved without being aware of some guidelines you use, I'll fix this first and then I reply to each question. |
Great @kemcake! Btw, the purpose of some requested changes is to be consistent with the rest of the project. If you have any suggestion about how to improve the current approach, please feel free to propose them so we can do a review. Thanks! |
So the remaining questions are:
|
Codecov Report
@@ Coverage Diff @@
## master #308 +/- ##
==========================================
+ Coverage 88.96% 88.99% +0.03%
==========================================
Files 15 15
Lines 616 618 +2
==========================================
+ Hits 548 550 +2
Misses 45 45
Partials 23 23
Continue to review full report at Codecov.
|
personally I am fine with the fixed width. I agree that on big screens it stretches things to a very weird point. For the colors, I don't really care. The main problem is that we do not have logos for all charts. @Angelmmiguel can you do a final review so that we can move forward. This can always be revisited. |
@kemcake great job! Thanks for the improvements and refactoring. About the remaining items:
I'd remove this feature. I prefer to have a controlled UI since the base color of the logos may not fit with the current design. Also, I think it's better to continue with the initial design of the cards. We did a research about the cards and decided to keep logos as the main and more important element.
That's solution works for me! Also, can you increase a bit that fixed width value? I believe that a value between 1150-1250px will work in most use cases. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review my last comments before merge it :)
@kemcake can you fix the conflicts, rebase and then we will merge. |
This worked before but I'm now unable to compile this again:
Really not sure why these errors keep coming up... |
@kemkake I managed to get rid of the error I was getting above by installing the typings (https://www.reddit.com/r/Angular2/comments/59b2mc/import_vs_require_why_one_work_and_the_other/) and changing the
|
If the above works in your environment too, can we update to it and then land? We can revisit these issues when we move start from the new angular project with yarn. |
Cherry-picking all design/ui work