Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Wrap authorized clients in fading scroll area (#3085)

Julius Marminge31e68229d656
diff --git a/apps/web/src/components/settings/ConnectionsSettings.tsx b/apps/web/src/components/settings/ConnectionsSettings.tsx
index c85a0b687..0e54ceedb 100644
--- a/apps/web/src/components/settings/ConnectionsSettings.tsx
+++ b/apps/web/src/components/settings/ConnectionsSettings.tsx
@@ -3007,7 +3007,13 @@ export function ConnectionsSettings() {
/>
}
>
- {renderAuthorizedClients("current")}
+ <ScrollArea
+ scrollFade
+ className="max-h-[22.5rem]"
+ data-testid="authorized-clients-scroll-area"
+ >
+ {renderAuthorizedClients("current")}
+ </ScrollArea>
</SettingsSection>
) : null}
<AlertDialog
diff --git a/apps/web/src/components/settings/SettingsPanels.browser.tsx b/apps/web/src/components/settings/SettingsPanels.browser.tsx
index 992df6858..339c817bd 100644
--- a/apps/web/src/components/settings/SettingsPanels.browser.tsx
+++ b/apps/web/src/components/settings/SettingsPanels.browser.tsx
@@ -917,6 +917,59 @@ describe("GeneralSettingsPanel observability", () => {
await expect.element(page.getByText("Revoke others")).toBeInTheDocument();
});
+ it("keeps authorized clients within a five-row fading scroll area", async () => {
+ window.desktopBridge = createDesktopBridgeStub({
+ serverExposureState: {
+ mode: "network-accessible",
+ endpointUrl: "http://192.168.1.44:3773",
+ advertisedHost: "192.168.1.44",
+ tailscaleServeEnabled: false,
+ tailscaleServePort: 443,
+ },
+ });
+ authAccessHarness.setSnapshot({
+ pairingLinks: [],
+ clientSessions: Array.from({ length: 7 }, (_, index) =>
+ makeClientSession({
+ sessionId: `session-client-${index}`,
+ subject: `client-${index}`,
+ scopes: ["orchestration:read"],
+ method: "browser-session-cookie",
+ client: {
+ label: `Client ${index + 1}`,
+ deviceType: "desktop",
+ os: "macOS",
+ browser: "Electron",
+ ipAddress: `192.168.1.${index + 10}`,
+ },
+ issuedAt: "2036-04-07T00:00:00.000Z",
+ expiresAt: "2036-05-07T00:00:00.000Z",
+ connected: index === 0,
+ current: index === 0,
+ }),
+ ),
+ });
+ setServerConfigSnapshot(createBaseServerConfig());
+
+ mounted = await render(
+ <AppAtomRegistryProvider>
+ <ConnectionsSettings />
+ </AppAtomRegistryProvider>,
+ );
+
+ await expect.element(page.getByText("Client 7")).toBeInTheDocument();
+ const scrollArea = document.querySelector<HTMLElement>(
+ '[data-testid="authorized-clients-scroll-area"]',
+ );
+ const viewport = scrollArea?.querySelector<HTMLElement>('[data-slot="scroll-area-viewport"]');
+
+ expect(scrollArea).not.toBeNull();
+ expect(viewport).not.toBeNull();
+ expect(scrollArea?.clientHeight).toBe(360);
+ expect(viewport?.scrollHeight).toBeGreaterThan(viewport?.clientHeight ?? 0);
+ expect(viewport?.className).toContain("mask-b-from");
+ });
+
it("revokes all other paired clients from settings", async () => {
window.desktopBridge = createDesktopBridgeStub({
serverExposureState: {