Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/mint-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ jobs:
echo "Exchange rates:"
curl -fsS -H "Origin: https://juw12.github.io" "$MINT_API_URL/api/fx" | head -c 300
echo
echo "Live prices:"
curl -sS -H "Origin: https://juw12.github.io" "$MINT_API_URL/api/quote?q=stock:BBCA,stock:AAPL,crypto:BTC,gold:XAU&region=ID" | head -c 900
echo
echo "News (Indonesia):"
curl -sS -H "Origin: https://juw12.github.io" "$MINT_API_URL/api/news?region=ID&lang=id" | head -c 600
echo
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mint-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
run: python apps/mint/desktop/build.py --require-installer
- name: Open the built app and check its window shows this commit's Mint
run: python apps/mint/desktop/smoke_test.py --built --local-site
- name: With no connection, the built app opens the Mint bundled inside it
run: python apps/mint/desktop/smoke_test.py --built --offline
- name: Install with Mint-Windows-Setup.exe, run it, uninstall it
if: runner.os == 'Windows'
shell: pwsh
Expand Down
64 changes: 40 additions & 24 deletions apps/mint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,27 @@ API `https://mint-api.juw12.workers.dev/api/health`
`?demo=1`, `demo.html`, `tests.html` and `get.html` never stop at the question.
- **Shared settings.** Light / Dark / System lives in `mint.theme` and both halves follow it, even
in a tab that is already open. Both halves read the one `mint.lang`; Templates is translated into
Indonesian, so Chinese and Spanish show Templates in English.
Indonesian, Chinese and Spanish too.
- **Two service workers.** `web/budget/sw.js` (scope `budget/`, caches `mint-budget-v…`) and
`web/sw.js` (scope `mint/`, caches `mint-v…`). Each deletes only its own old caches.

## Mint 3.5: live prices, four languages everywhere, offline desktop

- **Live prices.** Invest has a **Refresh prices** button and refreshes by itself (at most every 4 hours) when you
open it. IDX tickers (BBCA, TLKM), US stocks, crypto and gold per gram come from the Worker's `/api/quote`
(Yahoo Finance with CoinGecko for crypto and gold, cached 15 minutes). A price you type yourself stays put until
you press Refresh.
- **Your data stays put.** Budget asks the browser to keep its storage (`navigator.storage.persist`), Settings shows
whether it did and when you last backed up, and a quiet reminder suggests a backup when a big book has none in 30
days (only if you are not signed in to sync).
- **Templates in Chinese and Spanish.** The language button cycles English, Indonesian, 中文 and Español, and every
phrase, rule and category is translated.
- **Privacy and Terms in four languages,** with a switcher; English prevails if they ever differ.
- **Localized spreadsheets.** Downloaded .xlsx files name their tabs, headers and tips in your language, and the
formulas follow the renamed tabs.
- **Desktop works offline from the first launch.** The Windows and macOS apps carry a copy of Mint and open it from
the computer when there is no internet; budgets made offline move into the online app the next time it connects.

## Mint 3.4: one app for budgets, voice, investing and selling

- **Voice everywhere (3.3).** Add transaction and Invest both have a mic. Mint uses Tally's parser
Expand Down Expand Up @@ -160,7 +177,7 @@ API `https://mint-api.juw12.workers.dev/api/health`
| **Warnings** | Alert at a configurable threshold (default 80%), when a limit is over, and when the current pace will overspend before month end. Shown as toasts, in the bell and (optionally) as browser notifications, including for edits made by other people. Quick-add shows "this brings Groceries to 86%" before you save. |
| **Tips** | Persona-aware tips: one per day, sometimes after adding a transaction, and on demand. |
| **Goals** | Savings goals with progress rings and the monthly amount needed to reach the target date. |
| **Invest** | Holdings (units × price), allocation vs. a target (presets or custom), drift and the trades needed to rebalance, and a compound-growth projection with sliders. Prices are entered manually. **Say a trade** (mic or typing) adds or sells a holding: "beli 10 lot BBCA di 9000", "0.5 bitcoin harga 900 juta", "jual 2 lot TLKM"; buys average the cost, Undo is one tap. |
| **Invest** | Holdings (units × price), allocation vs. a target (presets or custom), drift and the trades needed to rebalance, and a compound-growth projection with sliders. Prices refresh from live market data (IDX and US stocks, crypto, gold per gram), or type your own. **Say a trade** (mic or typing) adds or sells a holding: "beli 10 lot BBCA di 9000", "0.5 bitcoin harga 900 juta", "jual 2 lot TLKM"; buys average the cost, Undo is one tap. |
| **Look & feel** | Light, Dark or System theme in one tap from the top bar (the new theme grows out of the button), with live previews in **Settings → Appearance**. Motion is calm: rings, bars and figures animate when a page or month opens, never on every edit, and *reduce motion* turns it off. |
| **Phone layout** | One tidy header row and a tab bar with a big **+** in the middle. **More** holds theme, language, Goals, Invest, You, Share, Settings and Templates. Dialogs open as bottom sheets you can drag down to close; toasts can be swiped away and never cover an open sheet. |
| **Keyboard** | `N` add · `T` theme · `1`–`8` pages · `/` search the sheet · `?` lists every shortcut. |
Expand Down Expand Up @@ -383,25 +400,24 @@ Deploy the API: `cd apps/mint/cloud && npx wrangler deploy` (after `npx wrangler

## Limits

- Budget is not a bank: it never connects to your accounts. Tips and plans are general guidance, not financial
advice; investment prices are manual. Data is only as durable as your browser storage plus whoever you share with,
so use **Settings → Backup** for a JSON export. Budget translations were written with AI assistance and have not
had a native-speaker review.
- Templates speaks English and Indonesian only. Strings missing from its dictionary (and server error messages not
listed there) fall back to English; the legal pages and the downloaded .xlsx / sheet contents stay in English.
- The desktop apps are not code-signed or notarized (SmartScreen / Gatekeeper ask once). They need an internet
connection the first time they open; after that Budget also works offline.
- Automatic payments use each seller's own provider account (no platform money flow, so no
payment licence needed); they were tested against local provider mocks and the real APIs'
key validation, not with a real paid transaction. Mint collecting a fee automatically would
need a marketplace product (Xendit xenPlatform / Midtrans split / Stripe Connect).
- Email needs a Resend API key + verified sender domain; until then notifications are Web Push
+ in-app badges. Push doesn't work inside the Android WebView app (use Chrome / installed PWA).
- iPhone: no App Store build (needs the Apple Developer Program and Xcode); the Add to Home
Screen PWA is the iPhone app. The Android APK is sideloaded, not on Google Play; neither is the
Microsoft Store or Mac App Store.
- Privacy and Terms pages are plain-language summaries, not lawyer-reviewed.
- Everything in Templates lives in one Durable Object. That is fine for thousands of users and
listings, but would need sharding at real scale.
- The .xlsx files are verified with openpyxl plus an independent recalculation, by a
real-browser download, and in desktop Excel (all 14 seed templates, 104/104 values match).
What is left needs an account, a payment or a person rather than code:

- **Not a bank.** Mint never connects to your accounts, and tips and plans are general guidance, not financial
advice. Live prices are delayed market data (Yahoo Finance, CoinGecko); gold uses the world spot price, not a
dealer's buy-back price such as Antam's, so you can still type your own.
- **Translations** in Indonesian, Chinese and Spanish (app, Templates, legal pages, spreadsheets) were written with
AI assistance and still want a native-speaker review.
- **Privacy and Terms** are plain-language summaries, not lawyer-reviewed.
- **Code signing.** The desktop apps are not code-signed or notarized, so SmartScreen and Gatekeeper ask once.
Signing needs a paid certificate and an Apple Developer account.
- **Stores.** There is no App Store, Google Play, Microsoft Store or Mac App Store listing yet (each needs a
developer account). On iPhone, Add to Home Screen installs the PWA; the Android APK is sideloaded.
- **Android push.** The Android app shows alerts inside the app (badge, banner and vibration); system push while it
is closed needs a Firebase Cloud Messaging project. Chrome and the installed PWA get Web Push today.
- **Email** needs a Resend API key and a verified sender domain; until then notifications are Web Push and in-app.
- **Payments.** Automatic payments use each seller's own provider account (no platform money flow, so no payment
licence). They were tested against provider mocks and the real APIs' key validation, not with a real paid
transaction. Mint taking a fee automatically would need a marketplace product (Xendit xenPlatform, Midtrans
split or Stripe Connect).
- **Scale.** Templates keeps everything in one SQLite-backed Durable Object, which is fine for thousands of users
and listings; it would be sharded by user before it got near its limits.
27 changes: 27 additions & 0 deletions apps/mint/budget/i18n/strings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1086,3 +1086,30 @@ Your numbers are unlinked and anything still waiting is deleted. Entries already
WhatsApp disconnected || WhatsApp diputuskan || WhatsApp 已断开 || WhatsApp desconectado
Could not remove it || Tidak bisa menghapusnya || 无法移除 || No se pudo quitar
Remove || Hapus || 移除 || Quitar

# 3.5 live prices
Refresh prices || Perbarui harga || 刷新价格 || Actualizar precios
Updating… || Memperbarui… || 正在更新… || Actualizando…
Price you entered || Harga yang kamu isi || 你填写的价格 || Precio que introdujiste
Live price: {source}, {time} || Harga live: {source}, {time} || 实时价格:{source},{time} || Precio en vivo: {source}, {time}
Fetching live prices… || Mengambil harga live… || 正在获取实时价格… || Obteniendo precios en vivo…
Stocks, ETFs, crypto and gold update from the market automatically; bonds and funds keep the price you enter. || Saham, ETF, kripto, dan emas diperbarui otomatis dari pasar; obligasi dan reksa dana memakai harga yang kamu isi. || 股票、ETF、加密货币和黄金会自动按市场价更新;债券和基金使用你填写的价格。 || Acciones, ETF, cripto y oro se actualizan solos con el mercado; bonos y fondos usan el precio que introduces.
Live prices for stocks, ETFs, crypto and gold — tap Refresh prices. || Harga live untuk saham, ETF, kripto, dan emas — ketuk Perbarui harga. || 股票、ETF、加密货币和黄金支持实时价格——点“刷新价格”。 || Precios en vivo para acciones, ETF, cripto y oro: toca Actualizar precios.
Live prices updated {time} || Harga live diperbarui {time} || 实时价格更新于 {time} || Precios en vivo actualizados {time}
Couldn’t reach live prices ({time}); showing the last ones. || Harga live tidak bisa dihubungi ({time}); menampilkan harga terakhir. || 无法获取实时价格({time});显示上次的价格。 || No se pudo obtener precios en vivo ({time}); se muestran los últimos.
Nothing to price yet || Belum ada yang bisa diberi harga || 暂无可更新价格的资产 || Aún no hay nada que valorar
Live prices cover stocks, ETFs, crypto and gold. Add a holding with its ticker, e.g. BBCA, AAPL or BTC. || Harga live mencakup saham, ETF, kripto, dan emas. Tambahkan aset dengan kodenya, mis. BBCA, AAPL, atau BTC. || 实时价格支持股票、ETF、加密货币和黄金。用代码添加持仓,例如 BBCA、AAPL 或 BTC。 || Los precios en vivo cubren acciones, ETF, cripto y oro. Añade una posición con su símbolo, p. ej. BBCA, AAPL o BTC.
Live prices are unreachable || Harga live tidak bisa dihubungi || 无法获取实时价格 || No se pueden obtener precios en vivo
Check your connection; your prices stay as they are. || Periksa koneksimu; hargamu tetap seperti sebelumnya. || 请检查网络;你的价格保持不变。 || Revisa tu conexión; tus precios se quedan como están.
Updated {n} prices || {n} harga diperbarui || 已更新 {n} 个价格 || {n} precios actualizados
No market price for {names}; keep typing those. || Tidak ada harga pasar untuk {names}; isi sendiri yang itu. || {names} 没有市场价格,请继续手动填写。 || Sin precio de mercado para {names}; sigue escribiéndolos tú.
Values and drift now use today’s prices. || Nilai dan selisih alokasi kini memakai harga hari ini. || 市值和偏离度现已使用今日价格。 || Los valores y la desviación ya usan los precios de hoy.

# 3.5 data safety
This browser keeps Mint’s data even when space runs low. || Browser ini menyimpan data Mint meski ruang penyimpanan menipis. || 即使存储空间不足,此浏览器也会保留 Mint 的数据。 || Este navegador conserva los datos de Mint aunque falte espacio.
This browser may clear site data when space runs low — sync or back up. || Browser ini bisa menghapus data situs saat ruang menipis — aktifkan sinkronisasi atau buat cadangan. || 存储空间不足时,此浏览器可能会清除网站数据——请开启同步或备份。 || Este navegador puede borrar datos del sitio si falta espacio: sincroniza o haz una copia.
Last backup: {date} || Cadangan terakhir: {date} || 上次备份:{date} || Última copia: {date}
No backup yet. || Belum ada cadangan. || 尚未备份。 || Aún no hay copia de seguridad.
Keep your budget safe || Jaga anggaranmu tetap aman || 保护好你的预算 || Mantén tu presupuesto a salvo
{n} transactions live only in this browser. Turn on sync in Settings or save a backup. || {n} transaksi hanya tersimpan di browser ini. Aktifkan sinkronisasi di Pengaturan atau simpan cadangan. || 有 {n} 笔交易只保存在此浏览器中。请在设置中开启同步或保存备份。 || {n} movimientos solo están en este navegador. Activa la sincronización en Ajustes o guarda una copia.
Back up now || Cadangkan sekarang || 立即备份 || Hacer copia ahora
Loading
Loading