Skip to content

Add AI Connections CRM, Flow chat, and a UI overhaul - #13

Draft
diego-sandy wants to merge 1 commit into
grinich:mainfrom
diego-sandy:flow-connections-ai-crm
Draft

Add AI Connections CRM, Flow chat, and a UI overhaul#13
diego-sandy wants to merge 1 commit into
grinich:mainfrom
diego-sandy:flow-connections-ai-crm

Conversation

@diego-sandy

Copy link
Copy Markdown

What & why

Turns inflow's Connections into an AI-assisted CRM, adds a dedicated network AI ("Flow"), and gives the app a visual refresh.

Connections + AI

  • Full connection pagination (was capped at 40); re-sync preserves AI fields (mergeConnections).
  • AI categorization — fixed roles + user interest tags, auto/manual mode, ~6-month staleness re-scan, throttle/backoff + circuit breaker, per-row refresh, right-click context menu, colored role/tag badges.
  • Connection detail — AI one-line summary, plus a Conversation card: shows whether you've messaged someone, jumps to the thread, and AI-summarizes the history (markdown, with an "outdated" flag).
  • Insights — animated charts (bar / column / 3D pie) with an icon-only type switcher and click-to-drill-in; reliable Customize (move/hide) replacing the broken drag; AI suggestions as its own card.

Providers

  • Add Anthropic (Claude) as a selectable provider with fast/quality model tiers; Gemini still supported. Configured in Settings → AI (api.anthropic.com host permission added).

Flow (network AI chat)

  • Dedicated Flow nav section: persistent, multi-conversation chat with a history sidebar, grounded in connections + their AI summaries. Answers render as markdown, unencapsulated, copyable.

Messaging

  • Send file/photo attachments (paperclip + photo buttons; drag/paste already worked) with a 20 MB guard; emoji picker.

UI / design

  • Purple theme; translucent glassy primary buttons + message bubbles.
  • Gradient inflow wordmark + ƒ monogram lockup.
  • Nav rail: back/forward section-history arrows, hover section tooltips, edge-handle collapse.
  • Settings modal (replaces the ⌘K-only AI modal); folder-based, migration-aware backup/restore; What's-new modal; 4-part build versioning.

Testing

  • npx vitest run1023 passing
  • npx tsc --noEmit — clean
  • npm run build — OK

Reviewer notes

  • New DB tables/migrations: connections (v13/v14) and insightChats (v15) — additive.
  • Sending attachments hits LinkedIn's media-upload endpoint; the register-response shape is defensive and worth confirming against live traffic.
  • Provider defaults to Gemini for back-compat; switch to Claude in Settings.

🤖 Generated with Claude Code

Turn inflow's Connections into an AI-assisted CRM and add a dedicated
network AI ("Flow"), alongside a broad visual refresh.

Connections + AI
- Full connection pagination (was capped at 40) with re-sync that preserves
  AI fields (mergeConnections).
- AI categorization: fixed roles + user interest tags, auto/manual mode,
  6-month staleness re-scan, throttle/backoff + circuit breaker, per-row
  refresh, right-click context menu, colored role/tag badges.
- Connection detail: AI one-line summary, and a Conversation card that shows
  whether you've messaged someone, jumps to the thread, and AI-summarizes the
  history (markdown, with an "outdated" flag).
- Insights dashboard: animated charts (bar / column / 3D pie) with an
  icon-only type switcher, click-to-drill-in, reliable Customize (move/hide)
  replacing broken drag, and AI suggestions as its own card.

Providers
- Add Anthropic (Claude) as a selectable provider with fast/quality model
  tiers; Gemini still supported. Provider + key + models in Settings.

Flow (network AI chat)
- Dedicated "Flow" nav section: persistent multi-conversation chat with a
  history sidebar, grounded in connections + their AI summaries. Answers
  render as markdown, unencapsulated, copyable.

Messaging
- Send file/photo attachments (paperclip + photo buttons; drag/paste already
  worked) with a 20MB guard; emoji picker.

UI / design
- Purple theme; translucent glassy primary buttons + message bubbles.
- Gradient "inflow" wordmark + ƒ monogram lockup.
- Nav rail: back/forward section history arrows, hover section tooltips,
  edge-handle collapse control.
- Settings modal (replaces the ⌘K-only AI modal); folder-based, migration-
  aware backup/restore; What's-new modal; 4-part build versioning.

All changes covered by tests (1023 passing); tsc clean; production build OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants