ci: add eslint, vitest coverage, improved CI and deploy workflows #2

Merged
daniil merged 3 commits from dev into main 2026-03-26 18:35:22 +00:00
Showing only changes of commit bda7265fcb - Show all commits

View File

@@ -37,7 +37,7 @@ export default function FinanceDashboard({ month, year }) {
)
}
if (!summary || (summary.total_income === 0 && summary.total_expense === 0)) {
if (!summary || (summary.total_income === 0 && summary.total_expense === 0 && (summary.carried_over || 0) === 0)) {
return (
<div className="card p-12 text-center">
<span className="text-5xl block mb-4">📊</span>
@@ -64,7 +64,12 @@ export default function FinanceDashboard({ month, year }) {
return (
<div className="space-y-6">
<div className="card p-6 bg-gradient-to-br from-primary-950 to-primary-800 text-white">
<p className="text-sm opacity-70">Баланс за месяц</p>
{summary.carried_over !== 0 && (
<p className="text-xs opacity-60 mb-1">
Остаток с прошлого месяца: <span className={summary.carried_over > 0 ? "text-green-300" : "text-red-300"}>{fmt(summary.carried_over)}</span>
</p>
)}
<p className="text-sm opacity-70">Баланс</p>
<p className="text-3xl font-bold mt-1">{fmt(summary.balance)}</p>
<div className="flex gap-6 mt-4">
<div>