feat(usage): enable sidebar usage summary by default and add dedicated Sources list

Show the sidebar Usage summary by default instead of requiring opt-in in
Appearance settings, while honoring explicit off preferences and continuing
to hide the row when no enabled source has pinned windows.

Let usage sources declare optional provider hints (`providers` on the
registration and `provider` on discovered accounts) so the daemon can mark
reports `defaultEnabled: false` when their hinted providers are neither
enabled nor installed, keeping usage sources decoupled from agent providers
while avoiding clutter from leftover credentials.

Move per-source show/hide controls out of individual card headers into a
dedicated `Sources` submenu inside Usage Settings (with tri-state
`cardVisibility` preferences migrating legacy `cardsOff`) so disabled
sources stay out of the main card list.
This commit is contained in:
Mohamed Boudra
2026-11-22 09:02:07 +01:00
parent ede181d39a
commit 5dbf156b7e
44 changed files with 717 additions and 202 deletions
+6 -1
View File
@@ -73,7 +73,12 @@ export async function discover(
for (const input of candidates) {
const auth = await readAuth(input, lookup);
if (auth)
present.push({ ...accountIdentity(auth, input), harness: harnessLabel(input), input });
present.push({
...accountIdentity(auth, input),
harness: harnessLabel(input),
provider: input.route.store,
input,
});
}
return present;
}