Allinea i numeri della dashboard tra griglia, funnel e liste di attenzione.
Il funnel mostra stage attuale e cumulato, i KPI escludono Da contattare e le liste usano il totale reale invece del tetto a 20. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,22 +8,35 @@
|
||||
<thead>
|
||||
<tr class="text-left text-xs uppercase tracking-wide text-zinc-500">
|
||||
<th class="py-2">Stage</th>
|
||||
<th>Count</th>
|
||||
<th>In questo stage</th>
|
||||
<th>Da qui in poi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-zinc-100 dark:divide-zinc-800">
|
||||
<% @funnel[:stages].each do |s| %>
|
||||
<% @funnel[:funnel].each do |step| %>
|
||||
<tr>
|
||||
<td class="py-2"><%= s[:label] %></td>
|
||||
<td class="font-semibold"><%= s[:count] %></td>
|
||||
<td class="py-2"><%= step[:label] %></td>
|
||||
<td class="font-semibold"><%= step[:current] %></td>
|
||||
<td><%= step[:reached] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% lost = @funnel[:stages].find { |s| s[:stage] == "lost" } %>
|
||||
<% if lost %>
|
||||
<tr>
|
||||
<td class="py-2"><%= lost[:label] %></td>
|
||||
<td class="font-semibold"><%= lost[:count] %></td>
|
||||
<td>—</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="mt-3 text-xs text-zinc-500">In questo stage = foto attuale. Da qui in poi = stage attuale + successivi, esclusi i persi.</p>
|
||||
<div class="mt-4 space-y-1 text-sm text-zinc-600 dark:text-zinc-300">
|
||||
<% @funnel[:funnel].each do |step| %>
|
||||
<div><%= step[:label] %>: <strong class="text-zinc-900 dark:text-zinc-50"><%= step[:count] %></strong><% if step[:rate] %> (<%= step[:rate] %>% dal passo precedente)<% end %></div>
|
||||
<% if step[:conversion_label] %>
|
||||
<div><%= step[:conversion_label] %> <strong class="text-zinc-900 dark:text-zinc-50">(<%= step[:rate] %>%)</strong></div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user