mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
## 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) |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| hooks | ||
| lib | ||
| public | ||
| stores | ||
| .env.example | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| globals.css | ||
| instrumentation-client.ts | ||
| middleware.ts | ||
| next.config.ts | ||
| open-next.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
| wrangler.jsonc | ||