mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Generic LLMs improvements (#605)
* Generic LLMs improvements 1. app/models/provider/openai/auto_categorizer.rb:535-540 - If description is blank, now falls back to merchant name 2. app/models/provider/openai/auto_merchant_detector.rb:492-498 - Now includes merchant first, then description (joined with " - ") * FIX linter
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
|
||||
<%# Pending indicator %>
|
||||
<% if transaction.pending? %>
|
||||
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-secondary text-secondary" title="<%= t('transactions.transaction.pending_tooltip') %>">
|
||||
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-secondary text-secondary" title="<%= t("transactions.transaction.pending_tooltip") %>">
|
||||
<%= icon "clock", size: "sm", color: "current" %>
|
||||
<%= t("transactions.transaction.pending") %>
|
||||
</span>
|
||||
@@ -89,12 +89,12 @@
|
||||
<%# Potential duplicate indicator - different styling for low vs medium confidence %>
|
||||
<% if transaction.has_potential_duplicate? %>
|
||||
<% if transaction.low_confidence_duplicate? %>
|
||||
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-secondary bg-surface-inset text-secondary" title="<%= t('transactions.transaction.review_recommended_tooltip') %>">
|
||||
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-secondary bg-surface-inset text-secondary" title="<%= t("transactions.transaction.review_recommended_tooltip") %>">
|
||||
<%= icon "help-circle", size: "sm", color: "current" %>
|
||||
<%= t("transactions.transaction.review_recommended") %>
|
||||
</span>
|
||||
<% else %>
|
||||
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-warning bg-warning/10 text-warning" title="<%= t('transactions.transaction.potential_duplicate_tooltip') %>">
|
||||
<span class="inline-flex items-center gap-1 text-xs font-medium rounded-full px-1.5 py-0.5 border border-warning bg-warning/10 text-warning" title="<%= t("transactions.transaction.potential_duplicate_tooltip") %>">
|
||||
<%= icon "alert-triangle", size: "sm", color: "current" %>
|
||||
<%= t("transactions.transaction.possible_duplicate") %>
|
||||
</span>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<p class="text-sm font-medium text-primary"><%= potential_match.name %></p>
|
||||
<p class="text-xs text-secondary"><%= potential_match.date.strftime("%b %d, %Y") %> • <%= potential_match.account.name %></p>
|
||||
</div>
|
||||
<p class="text-sm font-medium <%= potential_match.amount.negative? ? 'text-green-600' : 'text-primary' %>">
|
||||
<p class="text-sm font-medium <%= potential_match.amount.negative? ? "text-green-600" : "text-primary" %>">
|
||||
<%= format_money(-potential_match.amount_money) %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user