openvibers/openvibe.finance Commits

Ask an Expert on the home page (v0.9) (#9)

OP OpenVibers committed 13 days ago · b81979bb19 · 6 files, +32 −4

The home page (with an account) lists OpenVibe's money Experts on Actor (Actor #623): Budget coach, Can I
afford it?, Debt planner, Subscription auditor, each a card to its page, and says plainly that they read
here as you once you allow Actor in OpenVibe Finance on your Apps page, only to read; nothing moves money.

Changes

ddiff --git a/README.md b/README.md
iindex 9fb82de..becdbef 100644
---- a/README.md
++++ b/README.md
@@@ -10,7 +10,7 @@ to connect.
- **No money moves.** It reads and plans; it never pays, transfers or cancels anything.
- **Yours to take.** Download everything as one JSON file, or delete everything, at `/data`.
--## What it does today (v0.8)
++## What it does today (v0.9)
- Accounts (checking, savings, credit card, cash, loan, investments) with an opening balance and a running balance.
- Transactions typed in, or imported from a bank's download:
@@@ -41,6 +41,9 @@ for local-only import, and Finance Experts (Budget Coach, Subscription Auditor)
## For agents: /mcp
++OpenVibe's money Experts on Actor (Budget coach, Can I afford it?, Debt planner, Subscription auditor) use it once the
++person allows Actor in OpenVibe Finance on their Apps page; the home page links them.
++
`POST https://openvibe.finance/mcp` is an MCP server (both eras: the 2026-07-28 stateless protocol and the handshake
one) with seven tools, every one read only: `accounts`, `month`, `transactions`, `recurring`, `goals`, `net_worth`,
`what_if`. Amounts are integer cents; months are `YYYY-MM`.
ddiff --git a/package-lock.json b/package-lock.json
iindex 52da5db..02f0d86 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -1,12 +1,12 @@
{
"name": "openvibe-finance",
-- "version": "0.8.0",
++ "version": "0.9.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "openvibe-finance",
-- "version": "0.8.0",
++ "version": "0.9.0",
"license": "AGPL-3.0-only",
"dependencies": {
"@electric-sql/pglite": "^0.5.8",
ddiff --git a/package.json b/package.json
iindex 6c6bfd1..c7efff0 100644
---- a/package.json
++++ b/package.json
@@@ -1,6 +1,6 @@
{
"name": "openvibe-finance",
-- "version": "0.8.0",
++ "version": "0.9.0",
"private": true,
"description": "Your money, your rules, your data: accounts, CSV imports and a monthly picture, private to you",
"main": "server/index.js",
ddiff --git a/public/finance.css b/public/finance.css
iindex 1915f28..800be20 100644
---- a/public/finance.css
++++ b/public/finance.css
@@@ -169,3 +169,10 @@ html[data-ov-motion="off"] .fin-result { animation: none; }
.fin-when-label { font-weight: 600; }
.fin-chips--scroll .fin-chip { flex: 0 0 auto; }
.fin-chips--scroll .fin-chip span { padding: 0 14px; white-space: nowrap; }
++/* Ask an Expert (v0.9): Actor's money Experts, which read here as the person once allowed. */
++.fin-expert-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
++.fin-expert { display: grid; gap: 2px; align-content: center; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border, #1f2937); color: inherit; text-decoration: none; transition: border-color .12s ease, transform .12s ease; }
++.fin-expert span { color: var(--text-secondary, #9aa4b2); font-size: 14px; line-height: 1.4; }
++.fin-expert:hover { border-color: var(--accent, #5b8cff); }
++.fin-expert:active { transform: scale(.98); }
++html[data-ov-motion="off"] .fin-expert { transition: none; }
ddiff --git a/server/views.js b/server/views.js
iindex 883dae1..702d257 100644
---- a/server/views.js
++++ b/server/views.js
@@@ -46,6 +46,18 @@ function welcome() {
</ul>` });
}
++// OpenVibe's money Experts on Actor (Actor #623): they read your numbers here through /mcp, as you, once you allow
++// Actor in OpenVibe Finance on your Apps page; none moves money.
++const EXPERTS = [
++ { id: 'bp_budget_coach', name: 'Budget coach', what: 'A budget you can live with, from your real month.' },
++ { id: 'bp_can_i_afford_it', name: 'Can I afford it?', what: 'Yes, not yet or no, for a purchase or a new monthly cost.' },
++ { id: 'bp_debt_planner', name: 'Debt planner', what: 'The fastest and the cheapest way out of your loans and cards.' },
++ { id: 'bp_subscription_auditor', name: 'Subscription auditor', what: 'Every recurring charge, and what dropping each saves.' },
++];
++const expertsSection = () => `<section class="fin-sec fin-experts" aria-labelledby="fin-experts-h"><h2 id="fin-experts-h">Ask an Expert</h2>
++<ul class="fin-expert-list">${EXPERTS.map((e) => `<li><a class="fin-expert" href="https://openvibe.actor/experts/${e.id}"><b>${esc(e.name)}</b><span>${esc(e.what)}</span></a></li>`).join('')}</ul>
++<p class="fin-note">They read your numbers here as you once you allow Actor in OpenVibe Finance on your <a href="https://openvibe.network/apps">Apps page</a>, and only to read: nothing here moves money.</p></section>`;
++
function home({ accounts, month, o = {} }) {
const total = {};
for (const a of accounts) total[a.currency] = (total[a.currency] || 0) + a.balance_cents;
@@@ -70,6 +82,7 @@ ${accounts.length ? `<section class="fin-month-card" aria-label="${esc(monthName
<label class="fin-field"><span>Balance before the first transaction</span><input name="opening" inputmode="decimal" placeholder="0.00" autocomplete="off"></label></div>
<p><button class="fin-btn fin-btn--primary" type="submit">Add the account</button></p>
</form></details>
++${accounts.length ? expertsSection() : ''}
<p class="fin-foot"><a href="/ahead">Net worth and what if</a> · <a href="/goals">Goals and debt</a> · <a href="/bills">Recurring bills</a> · <a href="/rules">Your category rules</a> · <a href="/data">Your data: download or delete everything</a></p>` });
}
ddiff --git a/test/app.test.js b/test/app.test.js
iindex b50d73b..133467c 100644
---- a/test/app.test.js
++++ b/test/app.test.js
@@@ -61,6 +61,11 @@ const SAME = { 'sec-fetch-site': 'same-origin' };
assert.strictEqual(page.status, 200);
assert.match(page.text, /Everyday checking/);
assert.match(page.text, /\$1,000\.00/);
++ // With an account, the home page offers the money Experts (Actor #623), which read here only once allowed.
++ const home = await go('/', { as: ADA });
++ assert.match(home.text, /Ask an Expert/);
++ assert.match(home.text, /href="https:\/\/openvibe\.actor\/experts\/bp_can_i_afford_it"/);
++ assert.match(home.text, /allow Actor in OpenVibe Finance on your <a href="https:\/\/openvibe\.network\/apps">Apps page<\/a>/);
});
await check('a typed transaction: money out by default, its payee sealed in the database', async () => {