fix: honor selected account in setup status

This commit is contained in:
Tak Hoffman
2026-04-03 11:48:58 -05:00
parent 5edefc4d5b
commit 51f6bc4940
19 changed files with 124 additions and 58 deletions

View File

@@ -90,8 +90,10 @@ export const lineSetupWizard: ChannelSetupWizard = {
configuredScore: 1,
unconfiguredScore: 0,
includeStatusLine: true,
resolveConfigured: ({ cfg }) =>
listLineAccountIds(cfg).some((accountId) => isLineConfigured(cfg, accountId)),
resolveConfigured: ({ cfg, accountId }) =>
accountId
? isLineConfigured(cfg, accountId)
: listLineAccountIds(cfg).some((resolvedAccountId) => isLineConfigured(cfg, resolvedAccountId)),
resolveExtraStatusLines: ({ cfg }) => [`Accounts: ${listLineAccountIds(cfg).length || 0}`],
}),
introNote: {