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

Maarc summit2018 #1309

Merged
merged 31 commits into from Jun 4, 2018
Merged

Maarc summit2018 #1309

merged 31 commits into from Jun 4, 2018

Conversation

jsight
Copy link
Member

@jsight jsight commented May 23, 2018

Rebased to master.

Original PR: #1306

https://issues.jboss.org/browse/WINDUP-2021

@jsight
Copy link
Member Author

jsight commented May 23, 2018

retest

@jsight jsight requested a review from mrizzi May 25, 2018 18:36
@jsight
Copy link
Member Author

jsight commented May 25, 2018

@mrizzi - Perhaps we should go ahead and merge this one?

…ly throw a concurrent modification exception
Copy link
Member

@mrizzi mrizzi left a comment

Choose a reason for hiding this comment

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

There are still some small changes needed to fix the "bubbles" report.
Here the list of the changes in this PR:

  • Reports: tooltips in pages
  • Technologies report: columns rewording and lexicographical ordering
  • Technologies report: added "Database Driver" and changed icons
  • Application List: wider input field in search box
  • Reports: minor UI changes

<#if !isTagUnderTag(boxTag, placeTagsParent) >
<#assign techsOrder = techsOrder + [boxTag] />
<td class="sector sector${sectorTag.title}"><div>${boxTag.title!}</div></td>
</#if>
</#list>
</#list>
<td class="sector sectorStats sizeMB"><div>Size (MB)</div></td>
<td class="sector sectorStats libsCount"><div>Libraries</div></td>
<#-- <td class="sector sectorStats libsCount"><div>Libraries</div></td> -->
Copy link
Member

Choose a reason for hiding this comment

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

This can be uncommented since libraries count has been fixed (WINDUP-1967 - PR-1296) so we can have Libraries column again (ref. this comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops... yes, it should have been.

table.technologiesPunchCard thead tr td:nth-last-child(3) { width: 70px; min-width: 70px; max-width: 70px; }

table.technologiesPunchCard tbody tr td:nth-last-child(2),
table.technologiesPunchCard thead tr td:nth-last-child(2) { width: 57px; min-width: 57px; max-width: 57px; }
Copy link
Member

Choose a reason for hiding this comment

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

I think all these changes should be reverted because having the Libraries column back, makes it appearing not aligned as in the next screenshot.
screenshot from 2018-05-28 17-24-47
I tried to replace it locally on a static report and with the "old" CSS:

table.technologiesPunchCard tbody tr td:nth-last-child(2),
table.technologiesPunchCard tbody tr td:nth-last-child(3),
table.technologiesPunchCard tbody tr td:nth-last-child(4),
table.technologiesPunchCard thead tr td:nth-last-child(2),
table.technologiesPunchCard thead tr td:nth-last-child(3),
table.technologiesPunchCard thead tr td:nth-last-child(4) {
    width: 57px;
    min-width: 57px;
    max-width: 57px;
}

The columns look like:
screenshot from 2018-05-28 17-25-10

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi!

Can you also make sure that ...

table.technologiesPunchCard thead tr td:nth-last-child(3) { width: 70px; min-width: 70px; max-width: 70px; }

... is kept?

Probably you will need to update it to

table.technologiesPunchCard thead tr td:nth-last-child(4) { width: 70px; min-width: 70px; max-width: 70px; }

Copy link
Member

Choose a reason for hiding this comment

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

Ok, so talking in terms of requirements, your request is to have wider columns in Stats section, right? So that numbers have more space to be displayed.
Having only more width for table cell (setting their width to 70px), like in the screenshot above, will cause a misalignment between labels and values just like in the next screenshot.
screenshot from 2018-05-29 12-39-43

We can work on inner <div> to better place the text to obtain something like this:
screenshot from 2018-05-29 12-40-44
where both Size (MB) and Libraries labels are aligned with the data below them.
@jsight i use an in-line style for div width: inherit;transform: rotate(180deg) translateX(30%);

Copy link
Contributor

Choose a reason for hiding this comment

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

The wider column was only for ":nth-last-child(3)" -> the "Size (MB)" column.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, great, thanks @Maarc: only Size (MB) column wider 👍

@@ -41,7 +41,7 @@
public static final String TEMPLATE_REPORT = "/reports/templates/ignored_files.ftl";
public static final String DESCRIPTION = "This report lists the files in the application that have not been processed based on certain rules and the " +
Util.WINDUP_BRAND_NAME_LONG +
" configuration. See the <code>--userIgnorePath</code> option in the <a href=\"https://access.redhat.com/documentation/en-us/red_hat_application_migration_toolkit/\">User Guide</a>.";
" configuration. See the '--userIgnorePath' option in the User Guide (https://access.redhat.com/documentation/en-us/red_hat_application_migration_toolkit).";
Copy link
Member

Choose a reason for hiding this comment

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

TBH, in this case having a tooltip is not so useful for the user since the link is not a link any more and even copy&paste it's really hard (need to use the source of the page)
screenshot from 2018-05-28 17-42-52

Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that too. As the link is probably on the "About" page anyway, what about removing the link?

Copy link
Member

Choose a reason for hiding this comment

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

For me it's fine.
@jeichler are you ok with removing the URL within the brackets from the tooltip?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mrizzi ack, fine with me too.

@@ -89,14 +90,12 @@
<div class="row">
<div class="page-header page-header-no-border">
<h1>
<div class="main">${reportModel.reportName}</div>
<div class="main">${reportModel.reportName}
<i class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement=right title="${reportModel.description}."></i></div>
Copy link
Member

Choose a reason for hiding this comment

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

The dot . after ${reportModel.description} has to be removed


<div class="container-fluid" role="main">
<div class="row">
<div class="page-header page-header-no-border">
<h1>
<div class="main">${reportModel.reportName}</div>
<div class="main">${reportModel.reportName}
<i class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement=right title="${reportModel.description}."></i></div>
Copy link
Member

Choose a reason for hiding this comment

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

The dot . after ${reportModel.description} has to be removed

Copy link
Member

@mrizzi mrizzi left a comment

Choose a reason for hiding this comment

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

Last commit 46ade46 fixed all the previous comments so it seems to me fine to merge now.

@jsight jsight merged commit dfc644f into windup:master Jun 4, 2018
@jsight jsight deleted the Maarc-summit2018 branch June 4, 2018 17:37
@jsight jsight mentioned this pull request Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants