Lanjut ke konten
Samkarsa Logbook

v1.0.0-030 — Perbaikan Runtime TypeError month_inflow pada VibesChat

Perbaikan bug crash runtime TypeError: Cannot read properties of undefined (reading 'month_inflow') pada halaman VibesChat AI Assistant.

1mnt baca

  • Memperbarui komponen VibesChat.tsx.
  • Menghapus seluruh pembacaan langsung properti yang belum aman (widgets.top_selling.slice(0, 3), widgets.top_selling.length, widgets.forecast_depletion.items, widgets.macro_news.map).
  • Membuat variabel safe getters tingkat teratas (topSelling, forecastDepletion, forecastItems, macroNews, monthInflow, monthOutflow, currentBalance) dengan fallback array/objek kosong.
  • Mencegah error runtime TypeError: Cannot read properties of undefined (reading 'slice') dan month_inflow saat membuka menu Bisnis Insight ➔ AI Assistant / VibesChat.

  • Membuat migrasi Alembic sajen/migrations/versions/e8492040fbc9_add_all_enum_values_to_transactiontype.py untuk mengupdate tipe ENUM transactiontype di PostgreSQL database (CAPITAL_WITHDRAWAL, CAPITAL_RECLASSIFICATION, CUSTOMER_DEPOSIT, CUSTOMER_WITHDRAWAL, PURCHASE_RETURN, SALES_RETURN).
  • Menjalankan penyemaian data python -m app.seed_psak_complete pada database VPS server untuk memasukkan aturan jurnal ke tabel journal_mappings & journal_mapping_lines.
  • Menjamin usulan entri jurnal (Debet 2-1206 / Kredit 1-1101) untuk kalimat Smart Note penarikan tabungan pelanggan 100% dibaca secara dinamis dari database tanpa hardcode.

  • Typecheck (tsc -b): Clean (0 error).
  • Vite Production Build (vite build): Clean (0 error).