From 8f62f445179759e8eade092ef2482bbcd94accdb Mon Sep 17 00:00:00 2001 From: Salastil Date: Tue, 20 Oct 2026 23:52:43 -0400 Subject: [PATCH] Discord: the Connect anyway button; nobilis pointer Co-Authored-By: Claude Sonnet 5.5 --- nobilis | 2 +- src/renderer/src/app.css | 5 +++++ src/renderer/src/components/AccountsPanel.tsx | 16 +++++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/nobilis b/nobilis index 8a7d733..58bf5ac 160000 --- a/nobilis +++ b/nobilis @@ -1 +1 @@ -Subproject commit 8a7d73346e777c65a000858a775e1100445be79e +Subproject commit 58bf5ac83a6db6f5b72e5c91aa7fd3a0c2e77aa2 diff --git a/src/renderer/src/app.css b/src/renderer/src/app.css index 05665ff..9f67d4a 100644 --- a/src/renderer/src/app.css +++ b/src/renderer/src/app.css @@ -6264,6 +6264,11 @@ video.lightbox-media { overflow: hidden; white-space: normal; } +/* A held login is explained in full: the time it will connect is at the end. */ +.account-detail.held { + -webkit-line-clamp: unset; + display: block; +} /* --- presence on avatars ---------------------------------------------- */ diff --git a/src/renderer/src/components/AccountsPanel.tsx b/src/renderer/src/components/AccountsPanel.tsx index bd94922..07dba83 100644 --- a/src/renderer/src/components/AccountsPanel.tsx +++ b/src/renderer/src/components/AccountsPanel.tsx @@ -332,6 +332,7 @@ function AccountRow({ account }: { account: Account }): JSX.Element { // What the daemon last said about why. Only meaningful while something is // wrong, which is exactly when the state line alone explains nothing. const detail = useConnectionDetail(account.id) + const held = account.service === 'discord' && !!detail?.startsWith('Holding the Discord connection') const call = (method: string, params: Record): void => { void window.moho @@ -353,7 +354,20 @@ function AccountRow({ account }: { account: Account }): JSX.Element {
{serviceLabel(account.service)} ยท {account.state}
- {detail &&
{detail}
} + {detail &&
{detail}
} + {/* Held for having logged in too often (see nobilis's identify_budget): said in full, with the way past it. */} + {held && ( +
+ +
+ )}