Skip to content
Extraits de code Groupes Projets
Valider 3865c938 rédigé par Matthieu Aubry's avatar Matthieu Aubry Validation de GitHub
Parcourir les fichiers

Improved the design of Visitor Profile for more clarity (#11218)

* Update main.less

* Update visitor_profile.less

* Update visitorProfile.js

* Update getVisitorProfilePopup.twig

* Update getSingleVisitSummary.twig

* UI tests update tag cloud + new icon

* And one more

* Making Visitor log look better + Fix alignment profile

* More tweaks

* UI tests
parent d942f565
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 65 ajouts et 118 suppressions
...@@ -127,16 +127,6 @@ ...@@ -127,16 +127,6 @@
} }
}); });
// on hover, show export link (chrome won't let me do this via css :( )
$element.on('mouseenter mouseleave', '.visitor-profile-id', function (e) {
var $exportLink = $(this).find('.visitor-profile-export');
if ($exportLink.css('visibility') == 'hidden') {
$exportLink.css('visibility', 'visible');
} else {
$exportLink.css('visibility', 'hidden');
}
});
var tooltipIsOpened = false; var tooltipIsOpened = false;
$('a', $element).on('focus', function () { $('a', $element).on('focus', function () {
...@@ -309,4 +299,4 @@ ...@@ -309,4 +299,4 @@
// add the popup handler that creates a visitor profile // add the popup handler that creates a visitor profile
broadcast.addPopoverHandler('visitorProfile', VisitorProfileControl.showPopover); broadcast.addPopoverHandler('visitorProfile', VisitorProfileControl.showPopover);
})(jQuery, require); })(jQuery, require);
\ No newline at end of file
...@@ -107,7 +107,7 @@ ol.visitorLog { ...@@ -107,7 +107,7 @@ ol.visitorLog {
} }
ol.visitorLog li { ol.visitorLog li {
margin-bottom: 4px; margin-bottom: 7px;
} }
#visitsLive img { #visitsLive img {
...@@ -152,7 +152,7 @@ ol.visitorLog li { ...@@ -152,7 +152,7 @@ ol.visitorLog li {
border-radius: 3px; border-radius: 3px;
padding: 2px; padding: 2px;
display: block; display: block;
margin: 5px; margin: 0px 5px 0px 5px;
float: left; float: left;
} }
...@@ -229,7 +229,8 @@ ol.visitorLog p { ...@@ -229,7 +229,8 @@ ol.visitorLog p {
} }
.visitor-log-page-list { .visitor-log-page-list {
position:relative; position:relative;
margin-top: 7px;
} }
a.visitor-log-visitor-profile-link { a.visitor-log-visitor-profile-link {
......
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
text-align:left; text-align:left;
h1 { h1 {
font-size:18px; font-size:23px;
color:#7e7363;
text-shadow:0 1px 0 rgba(255,255,255,1); text-shadow:0 1px 0 rgba(255,255,255,1);
margin:9px 0 0 0; margin:9px 0 0 0;
padding:0; padding:0;
font-weight: normal;
color: @theme-color-text;
a { a {
font-size:12px; font-size:12px;
...@@ -20,22 +21,38 @@ ...@@ -20,22 +21,38 @@
} }
} }
p {
font-size:14px;
color:#5e5e5c;
line-height:20px;
}
h2 { h2 {
display:inline-block; display:inline-block;
font-size:14px; font-size:23px;
margin:0 0 0 5px; margin:0 0 0 5px;
padding:0; padding:15px 17px 15px 22px;
font-weight:bold;
color:black; color:black;
border: none; border: none;
color: @theme-color-text;
}
p {
margin-left: 0;
margin-right: 0;
.font-default(13px, 18px);
color: @color-silver-l60;
strong {
.font-default(13px, 18px);
color: @theme-color-text;
font-weight: normal !important;
}
span {
.font-default(13px, 18px);
}
} }
p {
font-size:13px;
color:#5e5e5c;
line-height:20px;
}
span.truncated-text-line { span.truncated-text-line {
display:inline-block; display:inline-block;
&.event { &.event {
...@@ -48,7 +65,7 @@ ...@@ -48,7 +65,7 @@
span, strong { span, strong {
display:inline; display:inline;
font-size:14px; font-size:14px;
color:#5e5e5c; color:#413838;
line-height:19px; line-height:19px;
padding-left:4px; padding-left:4px;
} }
...@@ -58,12 +75,8 @@ ...@@ -58,12 +75,8 @@
color:#5e5e5c; color:#5e5e5c;
} }
.visitor-profile-widget-link:hover {
text-decoration:underline;
}
.visitor-profile-export { .visitor-profile-export {
float:right; vertical-align: middle;
margin-top:3px; margin-top:3px;
} }
...@@ -78,7 +91,6 @@ ...@@ -78,7 +91,6 @@
} }
.visitor-profile a { .visitor-profile a {
text-decoration:none;
color:#255792; color:#255792;
} }
...@@ -117,22 +129,18 @@ ...@@ -117,22 +129,18 @@
} }
} }
.visitor-profile-summary,.visitor-profile-important-visits,.visitor-profile-avatar,.visitor-profile-location {
border-bottom:1px solid #d1cec8;
}
.visitor-profile-avatar > div { .visitor-profile-avatar > div {
position:relative; position:relative;
float:left; float:left;
min-height:145px; min-height:145px;
margin:12px 15px 0 0; margin:6px 15px 0 0;
padding-bottom:4px; padding-bottom:4px;
} }
.visitor-profile-avatar > div:first-child { .visitor-profile-avatar > div:first-child {
width:166px; width:166px;
margin-right:0; margin-right:0;
padding-left:16px; padding-left:7px;
> .visitor-profile-image-frame { > .visitor-profile-image-frame {
width:149px; width:149px;
...@@ -226,10 +234,6 @@ ...@@ -226,10 +234,6 @@
border-bottom:none; border-bottom:none;
} }
.visitor-profile-avatar ul li:first-child {
border-bottom:1px solid #d1cec8; // make sure there is a border if only one item is shown in the list
}
.visitor-profile-map { .visitor-profile-map {
padding:0 21px 13px 21px; padding:0 21px 13px 21px;
...@@ -295,7 +299,7 @@ ...@@ -295,7 +299,7 @@
p { p {
margin:13px 0; margin:13px 0;
font-size:14px; font-size:13px;
} }
} }
...@@ -311,7 +315,7 @@ ...@@ -311,7 +315,7 @@
padding: 8px 18px 10px 13px; padding: 8px 18px 10px 13px;
h1 { h1 {
margin-left:6px; margin-left:3px;
} }
} }
...@@ -331,14 +335,15 @@ ...@@ -331,14 +335,15 @@
> li { > li {
display:block; display:block;
font-size:12px; font-size:12px;
font-weight:700; font-weight: normal;
line-height:25px; line-height:10px;
padding:0 0 10px 13px; padding:0 0 10px 13px;
margin-right: 20px;
color: @theme-color-text-lighter;
span { span {
font-size:13px; font-size:13px;
font-weight:700; font-weight:700;
line-height:25px;
padding-left:0; padding-left:0;
} }
} }
...@@ -385,12 +390,12 @@ ...@@ -385,12 +390,12 @@
} }
ol > li ol li span { ol > li ol li span {
padding-left:4px; padding-left:5px;
} }
ol > li ol li { ol > li ol li {
.action-list-url { .action-list-url {
margin-left:4px; margin-left:5px;
line-height:15px; line-height:15px;
font-size:13px; font-size:13px;
} }
...@@ -417,8 +422,7 @@ ...@@ -417,8 +422,7 @@
.visitor-profile-date { .visitor-profile-date {
float:right; float:right;
font-size:13px; margin-top:6px;
line-height:26px;
} }
.visitor-profile-fog { .visitor-profile-fog {
...@@ -456,7 +460,6 @@ span.visitor-profile-goal-name { ...@@ -456,7 +460,6 @@ span.visitor-profile-goal-name {
text-align:center; text-align:center;
> a { > a {
font-size:11px;
display:inline-block; display:inline-block;
color:#5e5e5c; color:#5e5e5c;
} }
...@@ -467,7 +470,7 @@ span.visitor-profile-goal-name { ...@@ -467,7 +470,7 @@ span.visitor-profile-goal-name {
} }
.visitor-profile-visit-title-row:hover { .visitor-profile-visit-title-row:hover {
background-color:#FAFACF; background-color:#bfbfbf;
} }
.visitor-profile-avatar .loadingPiwik { .visitor-profile-avatar .loadingPiwik {
......
...@@ -194,17 +194,18 @@ GPS (lat/long): {{ visitor.getColumn('latitude') }},{{ visitor.getColumn('longit ...@@ -194,17 +194,18 @@ GPS (lat/long): {{ visitor.getColumn('latitude') }},{{ visitor.getColumn('longit
<div class="col s12 m{% if displayVisitorsInOwnColumn %}7{% else %}8{% endif %} column {% if visitor.getColumn('visitConverted') and not isWidget %}highlightField{% endif %}"> <div class="col s12 m{% if displayVisitorsInOwnColumn %}7{% else %}8{% endif %} column {% if visitor.getColumn('visitConverted') and not isWidget %}highlightField{% endif %}">
{{ postEvent('Live.visitorLogViewBeforeActionsInfo', visitor) }} {{ postEvent('Live.visitorLogViewBeforeActionsInfo', visitor) }}
<strong>
{{ visitor.getColumn('actionDetails')|length }}
{% if visitor.getColumn('actionDetails')|length <= 1 %}
{{ 'General_Action'|translate }}
{% else %}
{{ 'General_Actions'|translate }}
{% endif %}
{% if visitor.getColumn('visitDuration') > 0 %}- {{ visitor.getColumn('visitDurationPretty')|raw }}{% endif %}
</strong>
<div class="visitor-log-page-list"> <div class="visitor-log-page-list">
<strong>
{{ visitor.getColumn('actionDetails')|length }}
{% if visitor.getColumn('actionDetails')|length <= 1 %}
{{ 'General_Action'|translate }}
{% else %}
{{ 'General_Actions'|translate }}
{% endif %}
{% if visitor.getColumn('visitDuration') > 0 %}- {{ visitor.getColumn('visitDurationPretty')|raw }}{% endif %}
</strong>
<br/>
<ol class='visitorLog'> <ol class='visitorLog'>
{% include "@Live/_actionsList.twig" with {'actionDetails': visitor.getColumn('actionDetails')} %} {% include "@Live/_actionsList.twig" with {'actionDetails': visitor.getColumn('actionDetails')} %}
</ol> </ol>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{% if widgetizedLink is defined %}<a class="visitor-profile-widget-link" href="{{ widgetizedLink }}" target="_blank" title="{{ 'Widgetize_OpenInNewWindow'|translate }} - {{ 'Live_VisitorProfile'|translate }} {{ 'General_Id'|translate|upper }} {{ visitData.visitorId }}">{% endif %} {% if widgetizedLink is defined %}<a class="visitor-profile-widget-link" href="{{ widgetizedLink }}" target="_blank" title="{{ 'Widgetize_OpenInNewWindow'|translate }} - {{ 'Live_VisitorProfile'|translate }} {{ 'General_Id'|translate|upper }} {{ visitData.visitorId }}">{% endif %}
<strong>{{ visitData.visitorId }}</strong> <strong>{{ visitData.visitorId }}</strong>
{% if widgetizedLink is defined %}</a>{% endif %} {% if widgetizedLink is defined %}</a>{% endif %}
<a class="visitor-profile-export" href="{{ exportLink }}" target="_blank" title="{{ 'General_ExportThisReport'|translate }}" style="visibility:hidden"> <a class="visitor-profile-export" href="{{ exportLink }}" target="_blank" title="{{ 'General_ExportThisReport'|translate }}">
<img src="plugins/Morpheus/images/export.png"/> <img src="plugins/Morpheus/images/export.png"/>
</a> </a>
</li> </li>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{{ 'General_Visit'|translate }} #{{ startCounter }} {{ 'General_Visit'|translate }} #{{ startCounter }}
{% if visitInfo.getColumn('visitDuration') != 0 %} {% if visitInfo.getColumn('visitDuration') != 0 %}
<span>&nbsp;- ({{ visitInfo.getColumn('visitDurationPretty')|raw }})</span> <span>&nbsp; ({{ visitInfo.getColumn('visitDurationPretty')|raw }})</span>
{% endif %} {% endif %}
<span class="visitor-profile-date" title="{{ visitInfo.getColumn('serverDatePrettyFirstAction') }} {{ visitInfo.getColumn('serverTimePrettyFirstAction') }}"> <span class="visitor-profile-date" title="{{ visitInfo.getColumn('serverDatePrettyFirstAction') }} {{ visitInfo.getColumn('serverTimePrettyFirstAction') }}">
{{ visitInfo.getColumn('serverDatePrettyFirstAction') }} {{ visitInfo.getColumn('serverTimePrettyFirstAction') }} {{ visitInfo.getColumn('serverDatePrettyFirstAction') }} {{ visitInfo.getColumn('serverTimePrettyFirstAction') }}
......
...@@ -144,9 +144,6 @@ ...@@ -144,9 +144,6 @@
</div> </div>
</div> </div>
<div class="visitor-profile-visits-info"> <div class="visitor-profile-visits-info">
<div class="visitor-profile-pages-visited">
<h1>{{ 'Live_VisitedPages'|translate }}</h1>
</div>
<div class="visitor-profile-visits-container"> <div class="visitor-profile-visits-container">
<ol class="visitor-profile-visits"> <ol class="visitor-profile-visits">
{% include "@Live/getVisitList.twig" with {'visits': visitorData.lastVisits, 'startCounter': 1} %} {% include "@Live/getVisitList.twig" with {'visits': visitorData.lastVisits, 'startCounter': 1} %}
......
...@@ -214,7 +214,6 @@ p { ...@@ -214,7 +214,6 @@ p {
margin-right: 0; margin-right: 0;
a { a {
font-family: @theme-fontFamily-base; font-family: @theme-fontFamily-base;
font-size: 11px;
line-height: 12px; line-height: 12px;
display: inline-block; display: inline-block;
width: 100%; width: 100%;
...@@ -507,9 +506,6 @@ div.sparkline { ...@@ -507,9 +506,6 @@ div.sparkline {
top: -19px; top: -19px;
} }
.visitor-profile-date {
padding-top: 3px;
}
.visitor-profile-more-info > a { .visitor-profile-more-info > a {
color: @theme-color-link; color: @theme-color-link;
...@@ -526,43 +522,34 @@ div.sparkline { ...@@ -526,43 +522,34 @@ div.sparkline {
li { li {
margin: 0 !important; margin: 0 !important;
background: @color-silver-l95; background: @color-silver-l95;
padding: 5px 10px !important; padding: 7px 10px !important;
border-bottom: 1px solid @color-silver-l80;
> div { > div {
border: 0px !important; border: 0px !important;
margin: 0 !important; margin: 0 !important;
} }
&:first-child {
border-top: 1px solid @color-silver-l80;
}
} }
ol.visitor-profile-visits { ol.visitor-profile-visits {
> li { > li {
padding: 0 0 0 !important; padding: 0 0 0 !important;
span { span {
color: @theme-color-text-lighter;
.font-default(13px, 18px);
font-weight: normal; font-weight: normal;
margin-right: 20px; margin-right: 20px;
} }
h2 {
margin-left: 20px;
margin-bottom: 12px;
}
ol { ol {
background: @theme-color-background-contrast !important; background: @theme-color-background-contrast !important;
border-top: 0 !important; border-top: 0 !important;
li { li {
background: @theme-color-background-contrast !important; background: @theme-color-background-contrast !important;
.font-default(11px, 19px);
font-weight: normal; font-weight: normal;
color: @theme-color-text-lighter; color: @theme-color-text-lighter;
&:last-child { &:last-child {
border-bottom: 0 !important; border-bottom: 0 !important;
padding-bottom: 20px !important;
}
&:first-child {
padding-top: 20px !important;
} }
} }
} }
...@@ -570,14 +557,6 @@ div.sparkline { ...@@ -570,14 +557,6 @@ div.sparkline {
} }
} }
.visitor-profile-visit-title-row {
padding-top:10px;
&:hover {
background-color: @color-silver-l90;
}
}
.widget .visitor-profile .visitor-profile-info > div > div { .widget .visitor-profile .visitor-profile-info > div > div {
min-width: 100% !important; min-width: 100% !important;
} }
...@@ -604,31 +583,7 @@ div.sparkline { ...@@ -604,31 +583,7 @@ div.sparkline {
} }
} }
h1 {
.font-default(15px, 20px);
font-weight: normal;
color: @theme-color-text;
}
h2 {
.font-default(13px, 18px);
color: @theme-color-text;
}
p {
margin-left: 0;
margin-right: 0;
.font-default(13px, 18px);
color: @color-silver-l60;
strong {
.font-default(13px, 18px);
color: @theme-color-text;
font-weight: normal !important;
}
span {
.font-default(13px, 18px);
}
}
.visitor-profile-avatar { .visitor-profile-avatar {
ul { ul {
......
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter