Skip to content

Commit 0aa175e

Browse files
committed
Release 1.12.0: read-only attachments, smart accounts, reactive budget text
1 parent 13acbb5 commit 0aa175e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Chat attachments are read-only by default, expense adding requires "lisää kulu" or "add expense"
44
* Smart account detection from receipts via AI matching to exact YNAB account names
55
* Fix chat loading indicator stuck forever when returning to chat
6+
* Hero note reacts to remaining budget: different message when nearly used up vs plenty left
7+
* Use past tense "oli" for today's budget when spending has occurred
68

79
### 1.11.2: 2026-03-28
810

src/components/dashboard/daily-allowance.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,14 @@ export function DailyAllowance({
109109
<span className="daily-allowance-hero-unit">{todaySpentAll > 0 ? "" : t.dashboard.perDay}</span>
110110
</div>
111111
<p className="daily-allowance-hero-note">
112-
{locale === "fi" ? "Tämän päivän kokonaisbudjetti on " : "Today's total budget is "}
112+
{locale === "fi" ? (todaySpentAll > 0 ? "Tämän päivän kokonaisbudjetti oli " : "Tämän päivän kokonaisbudjetti on ") : (todaySpentAll > 0 ? "Today's total budget was " : "Today's total budget is ")}
113113
<span className={dailyBudget > thresholds.good ? "text-positive" : dailyBudget > thresholds.tight ? "text-chart-3" : "text-negative"}><F v={dailyBudget} s={` ${currency}`} /></span>
114-
{dailyBudget > thresholds.good
114+
{effectiveBudget > thresholds.good
115115
? (locale === "fi" ? ". Rahaa on, mutta älä tuhlaa, säästä. " : ". You have money, but save, don't splurge. ")
116+
: effectiveBudget > thresholds.tight
117+
? (locale === "fi" ? ". Vähän liikkumavaraa jäljellä. " : ". Some room left. ")
118+
: effectiveBudget > 0 && todaySpentAll > 0
119+
? (locale === "fi" ? ". Budjetti on lähes käytetty. " : ". Budget is nearly used up. ")
116120
: ". "}
117121
{billsDelayNeeded ? (
118122
<>

0 commit comments

Comments
 (0)