Ghost/ghost/admin/app/components/dashboard/charts/attribution.hbs
Rishabh Garg b1b3c72642
Added sorting for attribution data on dashboard (#15474)
refs https://github.com/TryGhost/Team/issues/1941

- sorts attribution table and chart on signups or paid conversions
2022-09-26 23:29:30 +05:30

31 lines
1.4 KiB
Handlebars

<section class="gh-dashboard-section gh-dashboard-attribution">
<article class="gh-dashboard-box" {{did-insert this.loadData}}>
<div style="display: grid;grid-template-columns: 2fr 1fr;grid-gap: 24px; position: relative;">
<div>
<h3 class="gh-dashboard-metric-label">Top sources</h3>
<MemberAttribution::SourceAttributionTable
@sources={{this.sources}}
@sortColumn={{this.sortColumn}}
@setSortColumn={{this.setSortColumn}}
class="gh-dashboard-attribution-list gh-dashboard-list" style="justify-content:flex-start;"
/>
</div>
<div style="display:flex;justify-content:center;align-items: center;height:100%;position: relative;">
<div style="max-width: 200px; position: relative;">
<MemberAttribution::SourceAttributionChart
@sources={{this.chartSources}}
@sortColumn={{this.sortColumn}}
@setSortColumn={{this.setSortColumn}}
/>
</div>
<div id="gh-dashboard-attribution-tooltip" class="gh-dashboard-tooltip">
<div class="gh-dashboard-tooltip-value">
-
</div>
</div>
</div>
</div>
</article>
</section>