Adds subheader describing icons on the reports screen

This commit is contained in:
mateuswetah 2021-05-18 17:08:52 -03:00
parent f754f53e5c
commit d5e7a103ec
14 changed files with 302 additions and 13 deletions

View File

@ -19,7 +19,7 @@ if [ $current_OS == "Darwin" ]; then
find ./package.json -type f \( -name "package.json" -or -name "package-lock.json" \) -exec md5 {} \; | sort -k 2 | md5 > last-package-build.md5
else
find src *.js -type f \( -name "*.js" -or -name "*.vue" -or -name "webpack.common.js" -or -name "webpack.dev.js" -or -name "webpack.prod.js" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-js-build.md5
find ./src/views/admin/scss/ ./src/views/gutenberg-blocks ./src/views/gutenberg-blocks/tainacan-collections/collections-list ./src/views/gutenberg-blocks/tainacan-facets/facets-list ./src/views/gutenberg-blocks/tainacan-items/dynamic-items-list ./src/views/gutenberg-blocks/tainacan-items/items-list ./src/views/gutenberg-blocks/tainacan-terms/terms-list -type f \( -name "*.scss" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-sass-build.md5
find ./src/views/admin/scss/ ./src/views/roles/ ./src/views/media-component/ ./src/views/reports/ ./src/views/gutenberg-blocks ./src/views/gutenberg-blocks/tainacan-collections/collections-list ./src/views/gutenberg-blocks/tainacan-facets/facets-list ./src/views/gutenberg-blocks/tainacan-items/dynamic-items-list ./src/views/gutenberg-blocks/tainacan-items/items-list ./src/views/gutenberg-blocks/tainacan-terms/terms-list -type f \( -name "*.scss" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-sass-build.md5
find ./composer.json -type f \( -name "composer.json" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-composer-build.md5
find ./package.json -type f \( -name "package.json" -or -name "package-lock.json" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-package-build.md5
fi

View File

@ -12,7 +12,6 @@ sass -E 'UTF-8' --cache-location .tmp/sass-cache-1 src/views/admin/scss/tainacan
sass -E 'UTF-8' --cache-location .tmp/sass-cache-2 src/views/roles/tainacan-roles.scss:src/assets/css/tainacan-roles.css
sass -E 'UTF-8' --cache-location .tmp/sass-cache-3 src/views/reports/tainacan-reports.scss:src/assets/css/tainacan-reports.css
sass -E 'UTF-8' --cache-location .tmp/sass-cache-4 src/views/media-component/media-component.scss:src/assets/css/media-component.css

6
package-lock.json generated
View File

@ -1666,9 +1666,9 @@
}
},
"apexcharts": {
"version": "3.26.1",
"resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.26.1.tgz",
"integrity": "sha512-Z/pfGTsL4YUm1tHd6a0d0G2hX4XUmhEI0b/5BxVK69dEB/XXvVMX9hKCkcIx+kPyVqVFCuo91ZjCdqjMcmSVBA==",
"version": "3.26.3",
"resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.26.3.tgz",
"integrity": "sha512-zbP7RBBV2CGffoVMIuTCUG64YbEUzV8IIT7iNVLMtY/OAVXTjPksDxSqKIniTvgJoscKe6sx4P56qDpBSU19VA==",
"requires": {
"svg.draggable.js": "^2.2.2",
"svg.easing.js": "^2.0.0",

View File

@ -8,7 +8,7 @@
"build-prod": "cross-env NODE_ENV=production webpack --config webpack.prod.js --display-error-details --progress --hide-modules"
},
"dependencies": {
"apexcharts": "^3.26.1",
"apexcharts": "^3.26.3",
"countup.js": "^2.0.7",
"axios": "^0.21.1",
"blurhash": "^1.1.3",

View File

@ -727,7 +727,8 @@ a.pswp__share--download:hover {
z-index: 99;
background: var(--tainacan-media-background, #ffffff);
border-radius: 3px;
word-wrap: break-word; }
word-wrap: break-word;
padding: 1rem 2rem; }
.tainacan-media-component__swiper-main .swiper-slide-content audio {
background: black;
min-height: 38px;

File diff suppressed because one or more lines are too long

View File

@ -9,12 +9,44 @@
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 24px 36px 0px; }
margin: 10px 24px 10px 0px; }
#tainacan-reports-app .tainacan-reports-header .wp-heading-inline {
margin: 0rem; }
#tainacan-reports-app .tainacan-reports-header select {
margin-right: auto;
margin-left: 6px; }
#tainacan-reports-app .tainacan-reports-subheader {
display: flex;
align-items: center;
margin: 6px 0px 36px 0px;
color: var(--tainacan-block-gray4, #555758); }
#tainacan-reports-app .tainacan-reports-subheader .tainacan-reports-subheader-box:not(:first-child) {
padding-left: 14px;
border-left: 1px solid var(--tainacan-block-gray3, #cbcbcb); }
#tainacan-reports-app .tainacan-reports-subheader .tainacan-reports-subheader-box__title {
font-weight: bold;
margin-left: 2px; }
#tainacan-reports-app .tainacan-reports-subheader .tainacan-reports-subheader-box__content {
display: flex;
align-items: center;
margin: 0px 14px 0px 0px;
flex-wrap: wrap; }
#tainacan-reports-app .tainacan-reports-subheader .tainacan-reports-subheader-box__content.tainacan-reports-subheader-box__content--two-columns li {
flex-basis: calc(50% - 8px); }
#tainacan-reports-app .tainacan-reports-subheader .tainacan-reports-subheader-box__content.tainacan-reports-subheader-box__content--three-columns li {
flex-basis: calc(33.3333% - 8px); }
#tainacan-reports-app .tainacan-reports-subheader .tainacan-reports-subheader-box__content li {
display: flex;
align-items: center;
margin: 0px 8px 0px 0px;
flex-basis: 100%; }
#tainacan-reports-app .tainacan-reports-subheader .icon svg {
fill: var(--tainacan-block-gray4, #555758);
margin-left: -0.5rem;
cursor: default; }
#tainacan-reports-app .tainacan-reports-subheader .apexcharts-pan-icon svg {
fill: transparent;
stroke: var(--tainacan-block-gray4, #555758); }
#tainacan-reports-app .columns {
max-width: 100%;
align-items: flex-start;

View File

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": "AAAA,qBAAsB;EAClB,OAAO,EAAE,iBAAiB;EAC1B,MAAM,EAAE,CAAC;EAGT,4CAAuB;IACnB,OAAO,EAAE,GAAG;EAGhB,6BAAQ;IACJ,MAAM,EAAE,OAAO;EAGnB,8CAAyB;IACrB,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,aAAa;IAC9B,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,kBAAkB;IAE1B,iEAAmB;MACf,MAAM,EAAE,IAAI;IAGhB,qDAAO;MACH,YAAY,EAAE,IAAI;MAClB,WAAW,EAAE,GA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EAAE,IAAI;MACX,OAAO,EAAE,iBAAiB;IAG9B,gHAAgE;MAC5D,OAAO,EAAE,iBAAiB;IAE9B,6EAA+B;MAC3B,KAAK,EAAE,IAAI;MACX,OAAO,EAAE,QAAQ;MACjB,OAAO,EAAE,IAAI;MACb,eAAe,EAAE,MAAM;MACvB,WAAW,EAAE,UAAU;MACvB,cAAc,EAAE,MAAM;MAEtB,+EAAE;QACE,aAAa,EAAE,GAAG;QAClB,SAAS,EAAE,OAAO",
"sources": ["../../views/reports/tainacan-reports.scss"],
"names": [],
"file": "tainacan-reports.css"

View File

@ -23,7 +23,7 @@
<li
v-for="(statusOption, index) of $statusHelper.getStatuses()"
:key="index"
v-if="(statusOption.slug != 'private' || (statusOption.slug == 'private' && $userCaps.hasCapability('tnc_rep_read_private_collections')) && totalByStatus[statusOption.slug])">
v-if="(statusOption.slug != 'draft' || entityType != 'collections') && (statusOption.slug != 'private' || (statusOption.slug == 'private' && $userCaps.hasCapability('tnc_rep_read_private_collections')) && totalByStatus[statusOption.slug])">
<span class="value">
<i-count-up
:delay="750"

View File

@ -0,0 +1,201 @@
<template>
<div class="tainacan-reports-subheader">
<div class="tainacan-reports-subheader-box">
<div class="tainacan-reports-subheader-box__title">
{{ $i18n.get('label_status') }}
</div>
<ul class="tainacan-reports-subheader-box__content tainacan-reports-subheader-box__content--two-columns">
<li
v-for="(statusOption, index) of $statusHelper.getStatuses()"
:key="index">
<span
v-if="$statusHelper.hasIcon(statusOption.slug)"
class="icon has-text-gray">
<i
class="tainacan-icon tainacan-icon-1-125em"
:class="$statusHelper.getIcon(statusOption.slug)"
/>
</span>
<span>
{{ statusOption.name }}
</span>
</li>
</ul>
</div>
<div class="tainacan-reports-subheader-box">
<div class="tainacan-reports-subheader-box__title">
{{ $i18n.get('label_visibility') }}
</div>
<ul class="tainacan-reports-subheader-box__content">
<li>
<span class="icon">
<i class="tainacan-icon tainacan-icon-public"/>
</span>
<span>
{{ $i18n.get('publish_visibility') }}
</span>
</li>
<li>
<span class="icon">
<i class="tainacan-icon tainacan-icon-private"/>
</span>
<span>
{{ $i18n.get('private_visibility') }}
</span>
</li>
</ul>
</div>
<div class="tainacan-reports-subheader-box">
<div class="tainacan-reports-subheader-box__title">
{{ $i18n.get('label_chart_controls') }}
</div>
<ul class="tainacan-reports-subheader-box__content tainacan-reports-subheader-box__content--three-columns">
<li>
<span class="icon">
<div
class="apexcharts-zoomin-icon"
:title="$i18n.get('label_increase_zoom')">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24">
<path
d="M0 0h24v24H0z"
fill="none"/>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" />
</svg>
</div>
</span>
<span>
{{ $i18n.get('label_increase_zoom') }}
</span>
</li>
<li>
<span class="icon">
<div
class="apexcharts-zoomout-icon"
:title="$i18n.get('label_decrease_zoom')">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24">
<path
d="M0 0h24v24H0z"
fill="none" />
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" />
</svg>
</div>
</span>
<span>
{{ $i18n.get('label_decrease_zoom') }}
</span>
</li>
<li>
<span class="icon">
<div
class="apexcharts-zoom-icon"
:title="$i18n.get('label_zoom_by_selection')">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
viewBox="0 0 24 24"
width="24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
<path
d="M0 0h24v24H0V0z"
fill="none" />
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z" />
</svg>
</div>
</span>
<span>
{{ $i18n.get('label_zoom_by_selection') }}
</span>
</li>
<li>
<span class="icon">
<div
class="apexcharts-pan-icon"
:title="$i18n.get('label_zoom_by_selection')">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
viewBox="0 0 24 24"
width="24">
<defs>
<path
d="M0 0h24v24H0z"
id="a" />
</defs>
<clipPath id="b">
<use
overflow="visible"
xlink:href="#a" />
</clipPath>
<path
clip-path="url(#b)"
d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z" />
</svg>
</div>
</span>
<span>
{{ $i18n.get('label_pan_selection') }}
</span>
</li>
<li>
<span class="icon">
<div
class="apexcharts-reset-icon"
:title="$i18n.get('label_reset_zoom')">
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
<path
d="M0 0h24v24H0z"
fill="none" />
</svg>
</div>
</span>
<span>
{{ $i18n.get('label_reset_zoom') }}
</span>
</li>
<li>
<span class="icon">
<div
class="apexcharts-menu-icon"
:title="$i18n.get('label_chart_export_options')">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24">
<path
fill="none"
d="M0 0h24v24H0V0z" />
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
</svg>
</div>
</span>
<span>
{{ $i18n.get('label_chart_export_options') }}
</span>
</li>
</ul>
</div>
</div>
</template>
<script>
export default {
}
</script>

View File

@ -15,6 +15,7 @@ import {
Vue.config.devtools = process && process.env && process.env.NODE_ENV === 'development';
import ReportsPage from '../reports.vue';
import TainacanReportsSubheader from '../components/tainacan-reports-subheader.vue';
import NumberBlock from '../components/number-block.vue';
import ItemsPerTermBlock from '../components/items-per-term-block.vue';
import ItemsPerTermCollectionBlock from '../components/items-per-term-collection-block.vue';
@ -72,6 +73,7 @@ Vue.use(VTooltip);
Vue.use(Snackbar);
Vue.use(Modal);
Vue.component('tainacan-reports-subheader', TainacanReportsSubheader);
Vue.component('number-block', NumberBlock);
Vue.component('items-per-term-block', ItemsPerTermBlock);
Vue.component('items-per-term-collection-block', ItemsPerTermCollectionBlock);

View File

@ -24,6 +24,7 @@
{{ $i18n.get('label_manage_collection') }}
</a>
</div>
<tainacan-reports-subheader />
<div class="columns is-multiline">
<div
:class="{ 'is-three-fifths-desktop': !isRepositoryLevel }"

View File

@ -15,7 +15,7 @@
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px 24px 36px 0px;
margin: 10px 24px 10px 0px;
.wp-heading-inline {
margin: 0rem;
@ -26,6 +26,52 @@
margin-left: 6px;
}
}
.tainacan-reports-subheader {
display: flex;
align-items: center;
margin: 6px 0px 36px 0px;
color: var(--tainacan-block-gray4, #555758);
.tainacan-reports-subheader-box:not(:first-child) {
padding-left: 14px;
border-left: 1px solid var(--tainacan-block-gray3, #cbcbcb);
}
.tainacan-reports-subheader-box__title {
font-weight: bold;
margin-left: 2px;
}
.tainacan-reports-subheader-box__content {
display: flex;
align-items: center;
margin: 0px 14px 0px 0px;
flex-wrap: wrap;
&.tainacan-reports-subheader-box__content--two-columns li {
flex-basis: calc(50% - 8px);
}
&.tainacan-reports-subheader-box__content--three-columns li {
flex-basis: calc(33.3333% - 8px);
}
}
.tainacan-reports-subheader-box__content li {
display: flex;
align-items: center;
margin: 0px 8px 0px 0px;
flex-basis: 100%;
}
.icon svg {
fill: var(--tainacan-block-gray4, #555758);
margin-left: -0.5rem;
cursor: default;
}
.apexcharts-pan-icon svg {
fill: transparent;
stroke: var(--tainacan-block-gray4, #555758);
}
}
.columns {
max-width: 100%;

View File

@ -580,6 +580,13 @@ return apply_filters( 'tainacan-admin-i18n', [
'label_increase' => __( 'Increase', 'tainacan'),
'label_set_all_create_metadada' => __( 'Set every metadata to be created', 'tainacan'),
'label_manage_collection' => __( 'Manage collection', 'tainacan'),
'label_chart_controls' => __( 'Chart controls', 'tainacan'),
'label_increase_zoom' => __( 'Increase zoom', 'tainacan'),
'label_decrease_zoom' => __( 'Decrease zoom', 'tainacan'),
'label_zoom_by_selection' => __( 'Zoom by selection', 'tainacan'),
'label_pan_selection' => __( 'Pan selection', 'tainacan'),
'label_reset_zoom' => __( 'Reset zoom', 'tainacan'),
'label_chart_export_options' => __( 'Chart export options', 'tainacan'),
// Instructions. More complex sentences to guide user and placeholders
'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ),