openvibers/openvibe.trade Commits
Sign in with a button on signed-out pages (#172)
Changes
@@@ -108,7 +108,8 @@ function renderPage(o) {navLinks: NAV_LINKS,home: '/',css: asset('css/trade.css'),-- styles: o.styles, // openvibe-shared stylesheet names (the home page's showcase.css)++ // openvibe-shared stylesheet names: showcase.css on every page, since inner pages use its buttons (2026-11-01).++ styles: [...new Set(['showcase.css', ...(o.styles || [])])],release: RELEASE,account,header: `<p class="disclaimer" role="note"><strong>${esc(DISCLAIMER)}</strong> Every number shows when it was observed and where it came from; stale sources are labelled as stale.</p>`,@@@ -428,7 +428,7 @@ ${sourcesTable(sources, { caption: 'Sources and their freshness, computed with tfunction watchlistsPage({ viewer, lists, rules, deliveries, csrf, loginHref, notice: n }) {if (!viewer || viewer.kind !== 'user' || !viewer.subject) {-- return html`<h1>Watchlists</h1><p>Watchlists and alerts are private to your OpenVibe account. <a href="${loginHref}">Sign in</a> to see yours.</p>`;++ return html`<h1>Watchlists</h1><p>Watchlists and alerts are private to your OpenVibe account.</p><p><a class="sc-btn sc-primary" href="${loginHref}">Sign in to see yours</a></p>`;}const listHtml = lists.map((w) => html`<section class="card" aria-label="${w.name}"><h2>${w.name}</h2>
@@ -108,7 +108,8 @@ function renderPage(o) {
@@ -108,7 +108,8 @@ function renderPage(o) {
navLinks: NAV_LINKS,
navLinks: NAV_LINKS,
home: '/',
home: '/',
css: asset('css/trade.css'),
css: asset('css/trade.css'),
- styles: o.styles, // openvibe-shared stylesheet names (the home page's showcase.css)
+ // openvibe-shared stylesheet names: showcase.css on every page, since inner pages use its buttons (2026-11-01).
+ styles: [...new Set(['showcase.css', ...(o.styles || [])])],
release: RELEASE,
release: RELEASE,
account,
account,
header: `<p class="disclaimer" role="note"><strong>${esc(DISCLAIMER)}</strong> Every number shows when it was observed and where it came from; stale sources are labelled as stale.</p>`,
header: `<p class="disclaimer" role="note"><strong>${esc(DISCLAIMER)}</strong> Every number shows when it was observed and where it came from; stale sources are labelled as stale.</p>`,
@@ -428,7 +428,7 @@ ${sourcesTable(sources, { caption: 'Sources and their freshness, computed with t
@@ -428,7 +428,7 @@ ${sourcesTable(sources, { caption: 'Sources and their freshness, computed with t
function watchlistsPage({ viewer, lists, rules, deliveries, csrf, loginHref, notice: n }) {
function watchlistsPage({ viewer, lists, rules, deliveries, csrf, loginHref, notice: n }) {
if (!viewer || viewer.kind !== 'user' || !viewer.subject) {
if (!viewer || viewer.kind !== 'user' || !viewer.subject) {
- return html`<h1>Watchlists</h1><p>Watchlists and alerts are private to your OpenVibe account. <a href="${loginHref}">Sign in</a> to see yours.</p>`;
+ return html`<h1>Watchlists</h1><p>Watchlists and alerts are private to your OpenVibe account.</p><p><a class="sc-btn sc-primary" href="${loginHref}">Sign in to see yours</a></p>`;
}
}
const listHtml = lists.map((w) => html`<section class="card" aria-label="${w.name}">
const listHtml = lists.map((w) => html`<section class="card" aria-label="${w.name}">
<h2>${w.name}</h2>
<h2>${w.name}</h2>