|
49 | 49 | if (!primary) primary = 'https://agent.stablescouncil.org/api/feedback'; |
50 | 50 | var h = (window.location && window.location.hostname) || ''; |
51 | 51 | var isLocalHost = h === 'localhost' || h === '127.0.0.1' || h === '::1'; |
52 | | - if (isLocalHost && !c.FEEDBACK_SKIP_LOCAL_SUBMIT) { |
| 52 | + // When a Minima node is connected, the POST is sent via MDS.net.POST, which runs ON the |
| 53 | + // node — so a 127.0.0.1 URL would hit the node's own loopback (nothing listening there → |
| 54 | + // "Connection refused: getsockopt"). Only use the local ledger test server for genuine |
| 55 | + // local BROWSER dev with no node session. |
| 56 | + var mdsActive = typeof MDS !== 'undefined' && MDS && MDS.net && |
| 57 | + typeof MDS.mainhost === 'string' && MDS.mainhost.length > 0; |
| 58 | + if (isLocalHost && !c.FEEDBACK_SKIP_LOCAL_SUBMIT && !mdsActive) { |
53 | 59 | return 'http://127.0.0.1:8788/api/feedback'; |
54 | 60 | } |
55 | 61 | return primary; |
|
175 | 181 | '<img src="agent.png" alt="StablesAgent">' + |
176 | 182 | '</button></div>' + |
177 | 183 | '<div class="card app-section-card" style="padding:14px 16px;margin-bottom:14px">' + |
178 | | - '<div style="font-size:12px;font-weight:900;color:var(--c);margin-bottom:8px;text-transform:uppercase;letter-spacing:.06em">Demo v1 of many</div>' + |
179 | | - '<p class="sec-body" style="margin:0 0 12px;line-height:1.55;font-weight:800;color:var(--t)">This build is for coherence review: channel truth, native MINIMA wallet basics, Winiwa / Wables demo flows, merchant-first ramps, Coverage fund copy, links, and feedback routing.</p>' + |
| 184 | + '<div style="font-size:12px;font-weight:900;color:var(--c);margin-bottom:8px;text-transform:uppercase;letter-spacing:.06em">Demo v' + getAppBuild() + '</div>' + |
| 185 | + '<p class="sec-body" style="margin:0 0 12px;line-height:1.55;font-weight:800;color:var(--t)">This build adds a live native MINIMA wallet on a connected node: real send and receive, QR, instant incoming detection, auto-updating transaction history with a refresh control, and address tools (new receive address and "is this address mine"). Review that alongside channel truth, Winiwa / Wables demo flows, merchant-first ramps, Coverage fund copy, links, and feedback routing.</p>' + |
180 | 186 | '<div style="display:grid;gap:8px">' + |
181 | | - '<div class="fbet" style="padding:8px 10px;border-radius:10px"><span class="xs mu"><strong style="color:var(--t)">Now review</strong></span><span style="font-weight:800;color:var(--t)">Wallet, Mint, Coverage fund, On/Off Ramp, Settings</span></div>' + |
| 187 | + '<div class="fbet" style="padding:8px 10px;border-radius:10px"><span class="xs mu"><strong style="color:var(--t)">Now review</strong></span><span style="font-weight:800;color:var(--t)">Live MINIMA wallet, currencies and ranking, Mint, Coverage fund, On/Off Ramp, Settings</span></div>' + |
182 | 188 | '<div class="fbet" style="padding:8px 10px;border-radius:10px"><span class="xs mu"><strong style="color:var(--am)">Coming soon</strong></span><span style="font-weight:800;color:var(--t)">App feedback topic, bug reports, roadmap votes</span></div>' + |
183 | 189 | '<div class="fbet" style="padding:8px 10px;border-radius:10px"><span class="xs mu"><strong style="color:var(--t)">Next modules</strong></span><span style="font-weight:800;color:var(--t)">Personal themes, merchant validation, academy lessons, release notes</span></div>' + |
184 | 190 | '</div>' + |
|
0 commit comments