lib/karafka/web/ui/pro/views/consumers/consumer/_partition.erb in karafka-web-0.6.3 vs lib/karafka/web/ui/pro/views/consumers/consumer/_partition.erb in karafka-web-0.7.0
- old
+ new
@@ -1,32 +1,41 @@
-<tr>
+<tr class="align-middle <%= lso_risk_state_bg(partition) %>">
<td>
<%= topic.name %>
</td>
<td>
<%= partition.id %>
</td>
<td>
- <%== offset_with_label partition.lag_stored.to_i %>
+ <%== lag_with_label partition.lag_stored %>
</td>
<td>
<span class="badge <%= lag_trend_bg(partition.lag_stored_d) %>">
<%= partition.lag_stored_d %>
</span>
</td>
<td>
- <%== offset_with_label partition.committed_offset.to_i %>
+ <% if partition.stored_offset.negative? %>
+ <%== offset_with_label topic.name, partition.id, partition.committed_offset - 1 %>
+ <% else %>
+ <%== offset_with_label topic.name, partition.id, partition.committed_offset %>
+ <% end %>
</td>
<td>
- <%== offset_with_label partition.stored_offset.to_i %>
+ <%== offset_with_label topic.name, partition.id, partition.stored_offset %>
</td>
<td>
<span class="badge <%= kafka_state_bg(partition.fetch_state) %> mt-1 mb-1">
<%= partition.fetch_state %>
</span>
</td>
<td>
<span class="badge <%= kafka_state_bg(partition.poll_state) %> mt-1 mb-1">
<%= partition.poll_state %>
+ </span>
+ </td>
+ <td>
+ <span class="badge bg-success <%= lso_risk_state_bg(partition) %> bg-opacity-100">
+ <%= partition.lso_risk_state %>
</span>
</td>
</tr>