feat: refine account management and targeted editing
Add local provider icons, larger compact account rows, the requested column order, and full username display while keeping secrets masked. Replace provider-wide editing with a row-specific editor that preserves sibling accounts, exact limits, live usage counters, and status metadata. Add targeted credential validation, release notices, and regression coverage.
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
isAccountRowSelectionKey,
|
||||
matchesAccountModeFilter,
|
||||
pruneAccountRowSelection,
|
||||
resolveAccountUsername,
|
||||
resolveVisibleAccountKind
|
||||
} from "../src/renderer/account-ui";
|
||||
|
||||
@@ -89,3 +90,11 @@ describe("account selection", () => {
|
||||
expect(isAccountRowSelectionKey(" ", false)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("account usernames", () => {
|
||||
it("shows the full stored login and prefers a checked provider email", () => {
|
||||
expect(resolveAccountUsername("member@example.com", undefined)).toBe("member@example.com");
|
||||
expect(resolveAccountUsername("stored@example.com", "verified@example.com")).toBe("verified@example.com");
|
||||
expect(resolveAccountUsername("", undefined)).toBe("—");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user