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

UI improvements - Flatter design (less borders etc) #8135

Merged
merged 2 commits into from Jun 19, 2015
Merged

UI improvements - Flatter design (less borders etc) #8135

merged 2 commits into from Jun 19, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jun 18, 2015

  • Data tables
  • Entity tables
  • Visitor log (reusing cards)
  • Visitors in Real Time
  • Forms
  • Privacy Settings
  • Spacing

refs #7090 #4789 fixes #7965

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. c: Design / UI For issues that impact Matomo's user interface or the design overall. labels Jun 18, 2015
@mattab mattab added this to the 2.14.0 milestone Jun 18, 2015
@mattab mattab added the Needs Review PRs that need a code review label Jun 18, 2015
@mnapoli
Copy link
Contributor

mnapoli commented Jun 18, 2015

Screenshots or links would have been useful to review the changes.

Link to diffs of the branch: http://builds-artifacts.piwik.org/ui-tests.7090/ (pick the latest)

I like the change to the tables, removing the alternate colors is a good move. The visitor log is also much better.

Here are a few regressions I have seen:

I haven't reviewed all the screenshots yet.

@mnapoli
Copy link
Contributor

mnapoli commented Jun 18, 2015

Also given so many different things (unrelated) have been changed, it would have been better to open separate pull requests, that would be easier to review.

@@ -392,15 +496,19 @@ table.dataTable {
border-top: 5px solid @theme-color-brand;
}

*/
Copy link
Contributor

Choose a reason for hiding this comment

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

comment code? Better remove it

Copy link
Member Author

Choose a reason for hiding this comment

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

it's there on purpose for now since the arrows look different in phantomjs (and only there) so I'm trying different solutions currently

@mnapoli
Copy link
Contributor

mnapoli commented Jun 18, 2015

Plenty of small changes on the redesigns I've been working the last few weeks :) Would have been better to discuss that when I was working on it, or even afterwards. E.g. there are some things (e.g. width 40% for labels) that were discussed and chosen consciously, that are gone. But whatever let's move on.

I see that you have had to change a lot of border: @color-silver-l80; with border: @color-silver-l90; or new border-top: @color-silver-l90; borders. I've already argued for it but let's use the @theme-color-border to simplify those changes (and have more consistency). And if we need 2 colors of borders, let's have @theme-color-border and @theme-color-border-light (yes it will only cover maybe 90% of the cases, but that's the same for link colors, background colors, text color, etc.). Let's go towards simplicity and consistency rather than manually changing everything everywhere.

@tsteur
Copy link
Member Author

tsteur commented Jun 18, 2015

Also given so many different things (unrelated) have been changed, it would have been better to open separate pull requests, that would be easier to review.

Yes, that would have been better. We initially only planned to change the DataTables but one thing let to another... Next time it's hopefully smaller PR. It was also not really meant to review yet

Plenty of small changes on the redesigns I've been working the last few weeks :) Would have been better to discuss that when I was working on it, or even afterwards. E.g. there are some things (e.g. width 40% for labels) that were discussed and chosen consciously, that are gone. But whatever let's move on.

Might add the 40% for labels back again as we shortened the labels anyway. I don't know any of those discussions and think it's natural that we will change those kinda things all the time. I'm certain over the next few weeks we will see more changes and change things from this PR again.

I see that you have had to change a lot of border: @color-silver-l80; with border: @color-silver-l90; or new border-top: @color-silver-l90; borders.

As mentioned in a previous PR I'm not a fan of this border-theme-color variable. I was thinking about changing that color but wasn't sure where else it'll change etc. We currently have like 6 or 7 different greyish border colors and most of them make sense in different parts of the UI. If I find the time I will try to shrink it down to 3 or 4 different ones but not sure if I have the time.

@tsteur
Copy link
Member Author

tsteur commented Jun 18, 2015

FYI: Many of the screenshot things like "The sorting arrow is floating on the left of the column header, which makes it appear like it's in another column" and "expand icon not aligned" etc only appear in PhantomJS. I tested on a wide variety of browsers so far and looked good apart from IE 8 where the arrow icon is not fully visible.

Plenty of small changes on the redesigns I've been working the last few weeks :) Would have been better to discuss that when I was working on it, or even afterwards.

I think it's also that one always has to see it live in action and use it for a while and not only for an hour or so. It's always hard to discuss things that one has seen only on screenshots or only used for a while.

@tsteur
Copy link
Member Author

tsteur commented Jun 19, 2015

FYI: I had a look at introducing few more theme-color-border variables but it's not that easy to make it actually usable. Eg we'd rather need many pairs of background-color/border-color/font-color. Eg if you use the same border-color with different backgrounds it might be really hard to style it in a way that it looks really good. Eg if you want to use a border-color "light-red" with a red background you don't want to have the light-red border-color also used in several other places. Only where it also has the same red background-color.

That's why we currently have eg

@theme-color-background-base:          #fff;
@theme-color-background-tinyContrast:  #f2f2f2;
@theme-color-background-lowContrast:   @color-silver-l80;
@theme-color-background-contrast:      #5F5A60;
@theme-color-background-highContrast:  #202020;

Where eg base is the background color, lowContrast is used as border color and contrast or highContrast maybe as background color.

Hope you get what I mean. It would be nice to have such a system but lots of work.

tsteur added a commit that referenced this pull request Jun 19, 2015
UI improvements - Flatter design (less borders etc)
@tsteur tsteur merged commit 7ec9886 into master Jun 19, 2015
@tsteur tsteur deleted the 7090 branch June 19, 2015 02:54
@mnapoli
Copy link
Contributor

mnapoli commented Jun 19, 2015

Next time it's hopefully smaller PR. It was also not really meant to review yet

There was at least the "Needs review" label. And why was this merged? I only reviewed less than half of the screenshot and the code changes… And it seems nobody else reviewed it.

@tsteur
Copy link
Member Author

tsteur commented Jun 19, 2015

There was at least the "Needs review" label.

Matt added the label, I didn't know it was added. I asked and purpose was to get quick feedback already.

And why was this merged?

To release a new beta to get feedback from users already re things that are maybe not covered by UI tests or browser compatibility problems and re design in general etc. We can make more changes beginning next week if needed.

@mnapoli
Copy link
Contributor

mnapoli commented Jun 19, 2015

I noted 11 UI regressions in my comment above. All of them were checked, but 5 of them where not fixed. Please verify that they are indeed fixed before checking them, else I review for nothing. I've unchecked them to keep it up to date.

Also now that it's merged on master it would be great to update (and fix) the 200 ui tests: http://builds-artifacts.piwik.org/ui-tests.master/13496.7/ A lot of them are really weird, e.g. http://builds-artifacts.piwik.org/ui-tests.master/13496.7/Installation_db_setup Simply updating the screenshots isn't an option right now.

Edit: some other things broke, e.g. in WhiteLabel: http://builds-artifacts.piwik.org/protected/ui-tests.master.WhiteLabel/239.3/screenshot-diffs/singlediff.html?processed=../processed-ui-screenshots/WhiteLabelSettings_overwritten_page.png&expected=WhiteLabelSettings_overwritten_page.png&github=WhiteLabelSettings_overwritten_page.png

@mnapoli
Copy link
Contributor

mnapoli commented Jun 19, 2015

If this pull request was still WIP then merging it on master is the opposite of what should have been done. If we want to put it on a beta soon, then it's good to communicate so that we can review it in priority.

Doing such extensive changes (in a single pull request btw) and expecting a beta the next day is a problem.

@mattab mattab mentioned this pull request Jun 20, 2015
6 tasks
@mattab
Copy link
Member

mattab commented Jun 20, 2015

the goal was to release these visual changes as early as possible to get feedback (including your feedback here), ie. release early, release often. Some UI regressions are acceptable in beta (eg. installer). Early next week all regressions will be fixed and UI screenshot checked.

A lot of them are really weird

issue to track tweaks to do: #8157

Edit: some other things broke, e.g. in WhiteLabel:

good find! created follow up issue

@mnapoli
Copy link
Contributor

mnapoli commented Jun 21, 2015

Are you really trying to justify that we should merge WIP pull requests, skip (and ignore already done) code review and break master deliberately?

@tsteur
Copy link
Member Author

tsteur commented Jun 21, 2015

Just FYI: The Installation etc is not really broken. I think it only looks like this because of https://github.com/piwik/piwik/pull/8078/files#diff-d578ea669c49adb09b49c4fcf94fc79fR146 . I will have a look how to reset the screen width after that test.

Re your checkboxes:

Form labels have changed

That's on purpose. It was a bit hard to identify the different labels on a page and to "scan" a page. This way it should be a bit easier.

In the visitor log, the flag is floating in the middle in a weird way (not aligned with anything):

We're thinking it's okay. It's not completely not aligned with anything since some icons just cannot be seen as they are hidden or so with white background. It's kinda better than before.

In the visitor log, this text seems "justified" which looks weird. Before the time wasn't showing because it was overflowing (hidden). An alternate idea: show the time on a new line, but don't justify the text (and remove the -)

I saw this only in the segmented visitor log and should be fixed

Cannot reproduce the other 2. Did you test locally or only have a look at screenshot tests?

@mattab
Copy link
Member

mattab commented Jun 22, 2015

@mnapoli installer wasn't broken (we tested installer manually), it was a bug in UI test: https://github.com/piwik/piwik/pull/8164/files

I tried moved your other feedback to #8157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants