openvibers/openvibe.finance Commits

Ask an Expert says which model reads the numbers (#14)

OP OpenVibers committed 13 days ago · b1abb0f9f1 · 2 files, +2 −1

An Expert answers through the model the person chose in Actor, and that model reads the numbers the Expert
fetched. The home page now says so, and that the permission can be taken back on the Apps page. Pinning such
runs to first-party models (plan F.7) waits for an open model that runs tools (AD.23): today private mode
has no agent for most tasks.

Changes

ddiff --git a/server/views.js b/server/views.js
iindex 52250b4..3e84288 100644
---- a/server/views.js
++++ b/server/views.js
@@@ -72,7 +72,7 @@ const EXPERTS = [
];
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>`;
++<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. To answer, the model you chose in Actor reads the numbers the Expert fetched; take back the permission there at any time.</p></section>`;
function home({ accounts, month, o = {} }) {
const total = {};
ddiff --git a/test/app.test.js b/test/app.test.js
iindex 18b5c2c..edccdca 100644
---- a/test/app.test.js
++++ b/test/app.test.js
@@@ -67,6 +67,7 @@ const SAME = { 'sec-fetch-site': 'same-origin' };
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>/);
++ assert.match(home.text, /the model you chose in Actor reads the numbers the Expert fetched/, 'said plainly which model reads them');
});
await check('a typed transaction: money out by default, its payee sealed in the database', async () => {