Skip to content

Add CRM tags, deal size, filtering, pagination and side inspectors - #26

Merged
imshashank merged 11 commits into
mainfrom
codex/record-usability
Oct 6, 2026
Merged

imshashank merged 11 commits into
mainfrom
codex/record-usability

Conversation

@imshashank

@imshashank imshashank commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Large CRM lists currently render every record and person/company clicks replace the list with a full page. Add bounded browsing with side inspectors, custom tags and currency-aware deal size so teams can filter and work through large account sets without repeatedly navigating back.

  • Persist metadata on people, companies, product relationships and opportunities with version checks, tenant/product authorization, archive guards and change events shared by HTTP and MCP.
  • Add tag, owner, qualification, status and deal-size filters where applicable, 25/50/100 row pagination across records, outreach, sequences, materials, archived lists and related detail lists. Keep board totals across all matching records.
  • Make complete person/company rows open the inspector, retain full-record links and keyboard navigation, and collapse imported JSON below readable notes.
  • Keep the current list when archiving from an inspector, reset pages when URL filters change, and retain the version an editor opened with so live refreshes cannot overwrite concurrent edits.
  • Add one generated metadata migration after the structured-context and organization-invitations migrations. Preserve both features and exclude rich relationship notes from compact list queries.

The browser still loads a compact authorized workspace index and pages it locally. The shared list_records operation pages authorized SQL queries directly. No existing deal amounts are inferred, no production migrations are applied, and outreach sending behavior stays the same.

Validation: all 62 test files pass locally, with 620 passing tests and two existing skips. Complete local verification and GitHub CI pass on the final head, including typecheck, lint, production build and the 10-page production smoke test. Dependency audit, license checks and generated-migration consistency pass. Regression coverage includes migration upgrades, persistence, permission isolation, stale-version rejection after live refresh, currency ranges, compact editing, inspector navigation and archiving, URL filter resets, bounded rendering, safe material responses and SQL paging over 10,000 contacts. Browser verification confirms the list remains visible beside the inspector.

Review: inspected the application and migration diff for authorization, optimistic versioning, currency precision, page resets, aggregate totals, keyboard navigation and inspector state. Identified issues were fixed with regression coverage. See docs/record-browsing.md for field inheritance and pagination behavior.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the free tier because every seat on this organization's plan is already assigned. Waiting won't change this — ask an organization admin to free a seat, or add seats in Billing, then retry.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Free
  • Run ID: 80cf1b54-0798-4f4e-a71c-3dfe6f5606b5
📥 Commits

Reviewing files that changed from the base of the PR and between 1cfb2d0 and 67efec1.

📒 Files selected for processing (46)
  • docs/record-browsing.md
  • drizzle/0016_clumsy_talon.sql
  • drizzle/meta/0016_snapshot.json
  • drizzle/meta/_journal.json
  • packages/core/client-state.ts
  • packages/core/crm.ts
  • packages/core/record-list.ts
  • packages/core/record-metadata.ts
  • packages/core/record-tags.ts
  • packages/database/schema.ts
  • packages/i18n/translations/en.json
  • packages/operations/catalog.ts
  • src/app/(crm)/layout.tsx
  • src/app/globals.css
  • src/components/crm/crm-context.tsx
  • src/components/crm/use-archive.ts
  • src/components/crm/use-live-snapshot.ts
  • src/components/materials.tsx
  • src/components/outreach/pipeline-board.tsx
  • src/components/outreach/touch-lists.tsx
  • src/components/record-details.tsx
  • src/components/records/archived-list.tsx
  • src/components/records/company-record.tsx
  • src/components/records/list-browser.tsx
  • src/components/records/metadata-section.tsx
  • src/components/records/peek-keys.ts
  • src/components/records/peek-panel.tsx
  • src/components/records/person-panels.tsx
  • src/components/records/person-record.tsx
  • src/components/records/record-dialog-host.tsx
  • src/components/records/record-dialog.tsx
  • src/components/records/record-dialogs.tsx
  • src/components/records/record-text.tsx
  • src/components/views/actions-view.tsx
  • src/components/views/companies-view.tsx
  • src/components/views/meetings-view.tsx
  • src/components/views/opportunities-view.tsx
  • src/components/views/outreach-view.tsx
  • src/components/views/people-view.tsx
  • src/components/views/sequences-view.tsx
  • tests/app-navigation.test.tsx
  • tests/outreach-ui.test.tsx
  • tests/record-editing.test.tsx
  • tests/record-usability-ui.test.tsx
  • tests/record-usability.test.ts
  • tests/support/crm-harness.tsx

@imshashank doesn’t have a CodeRabbit review seat.

  • Request a review seat for @imshashank

Open in CodeRabbit

Summarized by CodeRabbit Free

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@imshashank
imshashank marked this pull request as ready for review October 6, 2026 08:02
@imshashank
imshashank merged commit 9ecaebe into main Oct 6, 2026
2 checks passed
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.

1 participant