diff --git a/packages/webui/src/public/bus.js b/packages/webui/src/public/bus.js index 9187bd7bd..380eab04d 100644 --- a/packages/webui/src/public/bus.js +++ b/packages/webui/src/public/bus.js @@ -1718,7 +1718,9 @@ const refusal = err => err.status === 403 || ['not-configured', 'no-bus-host', 'queue-refused'].includes(err.code); // After a refusal nothing read before is shown anywhere: not in a view, the palette or the Inbox count. function forget() { window.MosaicChat?.forget(); last.clear(); inboxCount = null; messageCount = null; } - const failedView = (err, path) => `${head(path === '/queue' ? 'Queue' : failTitle(err))}
${empty('Nothing to show.', refusal(err) ? 'The view stays empty until the problem above is fixed.' : err.module ? 'Read again.' : 'Read again, or come back when the bus answers.')}`; + // One shipped copy of the line every failed read ends with (failedView and settingsFailed). + const NO_GUESS = 'Console shows nothing rather than a guess. Nothing was written.'; + const failedView = (err, path) => `${head(path === '/queue' ? 'Queue' : failTitle(err))}${empty('Nothing to show.', refusal(err) ? 'The view stays empty until the problem above is fixed.' : err.module ? 'Read again.' : 'Read again, or come back when the bus answers.')}`; // #1873 settings slice 1 (D7): an organization page under Settings that cannot be read keeps the // Settings nav, so the instance pages (Appearance, Model setup, Triage, Console) stay one link // away. When the organization's bus is down the page says so in plain words and offers Restart, @@ -1735,7 +1737,7 @@ const why = window.MosaicConsole?.orgDownReason?.(id, label, v => { const p = document.querySelector(`[data-org-down="${CSS.escape(id)}"] [data-org-down-why]`); if (p) { p.innerHTML = whyText(v); p.hidden = !p.innerHTML; } }) ?? null; return settingsShell(page, `This instance's own pages still work: Appearance, Model setup${triageOwner ? ', Triage' : ''} and Console.