supermemory/apps/web/components
sreedharsreeram d4a3a57a42 fix(web): remove duplicate "Connected" text on connector cards (#1131)
## Problem
On the integrations page → **Knowledge bases** section, a connected connector card (e.g. Google Drive) rendered the green **"Connected"** pill **twice** — once on the bottom-left, and again on the bottom-right next to the `+` button.

## Cause
The `ConnectionsCountPill` was rendered in two slots of the card:
- `renderStatus()` → left `statusSlot`
- `renderRight()` → right `actionSlot` (alongside the `+` add-source button)

The `renderStatus` connector case was added recently (#1065) and duplicated the pill that `renderRight` already shows.

## Fix
Removed the `connector` case from `renderStatus()` so the pill renders **only on the right**, in place of the Connect button. The logic is keyed on `kind === "connector"`, so this fixes every Knowledge-bases card uniformly — **Google Drive, Notion, OneDrive, Granola**.

- Non-connected cards still show the **Connect** button (unchanged).
- The info modal is unaffected — it renders `infoActionSlot ?? actionSlot` and never `statusSlot`.

```diff
-			case "connector": {
-				const count = connectionsByProvider[item.provider].length
-				if (count <= 0) return null
-				return <ConnectionsCountPill count={count} />
-			}
 			default:
 				return null
```

## Testing
Minimal, self-contained deletion (no new code, no unused symbols). Local `tsc` not run in this worktree because `node_modules` isn't installed here; the change leaves valid syntax and `ConnectionsCountPill`/`connectionsByProvider` remain used by `renderRight`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-06-17 18:07:25 +00:00
..
add-document Move Granola connector to Pro plan (#1132) 2026-06-17 17:48:04 +00:00
brain-home feat(web): make brain onboarding the default flow (#1067) 2026-06-09 17:13:32 +00:00
chat expand chat file drop zone (#1085) 2026-06-10 18:55:57 +00:00
document-cards Support HTML file uploads in Nova (#1076) 2026-06-10 06:09:20 +00:00
document-modal implement Nova chat attachments on the web side (#1004) 2026-06-08 06:18:28 +00:00
integrations feat(shortcuts): merge use-case modal with shortcut actions (#1091) 2026-06-11 00:33:21 +00:00
mcp-modal Add Antigravity MCP setup (#1119) 2026-06-16 12:10:36 +05:30
memory-graph memory graph loader (#1072) 2026-06-09 17:39:35 +00:00
nova fix(web): org plan badges via org-summaries and refresh Nova chat empty state (#968) 2026-05-18 23:44:09 +00:00
onboarding add responsivness in share graph, bookmark section, navigation controls (#940) 2026-05-15 08:37:01 -07:00
onboarding-brain Fix onboarding source integrations and connector gating (#1105) 2026-06-12 18:05:48 +00:00
settings Move Granola connector to Pro plan (#1132) 2026-06-17 17:48:04 +00:00
text-editor Improve quick note editor interactions & fix filter chips responsiveness (#989) 2026-05-23 11:54:17 -07:00
add-space-modal.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
animated-gradient-background.tsx feat: major iteration on the app (#896) 2026-05-02 23:58:58 +00:00
bottom-nav.tsx feat(settings): settings modal overhaul (#1069) 2026-06-09 12:07:47 +05:30
connect-ai-modal.tsx Add Antigravity MCP setup (#1119) 2026-06-16 12:10:36 +05:30
dashboard-view.tsx Fix plugin logos and recent rows for saved OpenClaw/Hermes memories (#1054) 2026-06-06 00:17:57 -07:00
document-icon.tsx Support HTML file uploads in Nova (#1076) 2026-06-10 06:09:20 +00:00
documents-command-palette.tsx feat(settings): settings modal overhaul (#1069) 2026-06-09 12:07:47 +05:30
edit-space-modal.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
ensure-workspace.tsx Make integrations page public for guests (#1073) 2026-06-09 17:32:00 +00:00
error-boundary.tsx error boundaries 2026-02-12 16:41:12 -08:00
feedback-modal.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
fullscreen-note-modal.tsx Revert "Improve quick note editor interactions & fix filter chips responsiveness" (#987) 2026-05-21 22:42:01 +05:30
granola-connect-modal.tsx feat/granola connector (#1007) 2026-06-03 15:19:49 +00:00
graph-layout-view.tsx Improve memory graph (#973) 2026-06-05 15:48:41 -07:00
header.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
highlights-card.tsx fix: add show more/less toggle for truncated highlights in Nova (#1029) 2026-05-31 19:10:43 -07:00
initial-header.tsx fix(web): restore Nova onboarding analytics events (#1023) 2026-05-29 19:54:13 +00:00
integration-icons.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
integrations-view.tsx fix(web): remove duplicate "Connected" text on connector cards (#1131) 2026-06-17 18:07:25 +00:00
login-tools-panel.tsx feat(web): redesign login with split layout and context network panel (#1010) 2026-05-27 00:59:32 +00:00
memories-grid.tsx add org level context and space level profile (#1002) 2026-05-26 10:17:56 -07:00
next-app-research-cta.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
org-plan-badge.tsx feat(billing): add Max plan to nova with cancel/resume flow (#1024) 2026-05-31 19:10:17 +00:00
pwa-install-prompt.tsx feat(web): pwa prompt 'Add to Home Screen' opens share menu (#963) 2026-05-18 05:32:04 +00:00
query-client.tsx chore: remove the new folder and fix imports (#740) 2026-02-16 14:30:29 -07:00
quick-note-card.tsx Improve quick note editor interactions & fix filter chips responsiveness (#989) 2026-05-23 11:54:17 -07:00
remove-connection-dialog.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
select-spaces-modal.tsx Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
share-modal.tsx add responsivness in share graph, bookmark section, navigation controls (#940) 2026-05-15 08:37:01 -07:00
space-folder-icon.tsx feat(web): mobile UX for dashboard, nav, and spaces (#1000) 2026-05-25 16:09:34 +05:30
space-glyph.tsx feat(web): mobile UX for dashboard, nav, and spaces (#1000) 2026-05-25 16:09:34 +05:30
space-profile-modal.tsx add org level context and space level profile (#1002) 2026-05-26 10:17:56 -07:00
space-profile-panel.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
space-selector.tsx feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
spinner.tsx feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
superloader.tsx Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
timeline-view.tsx fix timeline responsiveness (#997) 2026-05-24 14:20:27 +05:30
user-profile-menu.tsx feat(settings): settings modal overhaul (#1069) 2026-06-09 12:07:47 +05:30
utils.ts chore: remove the new folder and fix imports (#740) 2026-02-16 14:30:29 -07:00