supermemory/apps/web
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
..
app fix(web): strengthen URL validation and redirect handling in OG scraper (#1059) 2026-06-17 20:28:24 +05:30
components fix(web): remove duplicate "Connected" text on connector cards (#1131) 2026-06-17 18:07:25 +00:00
hooks Add bulk multi-URL paste to create separate memories (#1109) 2026-06-15 11:37:09 +05:30
lib feat(web): MCP OAuth consent page (#1118) 2026-06-16 17:33:09 +00:00
public Add Antigravity MCP setup (#1119) 2026-06-16 12:10:36 +05:30
stores fix: multi-select propagation bug and redesign selection toolbar (#901) 2026-05-05 22:35:35 +00:00
.env.example feat: deep-research on user profile and tiptap integration (#672) 2026-01-15 21:53:53 +00:00
.gitignore sentry sourcemaps 2025-08-23 09:55:40 -07:00
biome.json feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
components.json New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
globals.css Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
instrumentation-client.ts feat: warning when model is unavailable in the region (#814) 2026-03-28 05:52:41 +00:00
middleware.ts Make integrations page public for guests (#1073) 2026-06-09 17:32:00 +00:00
next.config.ts Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
open-next.config.ts feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
package.json feat(web): make brain onboarding the default flow (#1067) 2026-06-09 17:13:32 +00:00
postcss.config.mjs feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
README.md New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
tsconfig.json fix 2026-02-09 22:07:09 -08:00
wrangler.jsonc feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00

supermemory Consumer