th-3263eb: th api crm deals + companies (pipeline view + idempotent writes)#148
Open
brentrager wants to merge 1 commit into
Open
th-3263eb: th api crm deals + companies (pipeline view + idempotent writes)#148brentrager wants to merge 1 commit into
brentrager wants to merge 1 commit into
Conversation
…me-resolving writes)
Extends the contacts-only crm module with two resource groups over the
existing user-auth CRM API: th api crm deals {list|show|create|move} and
companies {list|show|upsert}. 'deals list' renders the dashboard pipeline
(Total/Pipeline-value + aligned table, colored stage badges); 'deals show'
resolves linked company + contact names; --json to pipe. Create is
idempotent; --company/--contact accept a name or email (local-match
resolution). Unit tests for money-grouping + uuid detection.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extends the contacts-only `th api crm` module with two new resource groups over the existing user-auth CRM API:
Read UX (mirrors the dashboard pipeline)
Do UX
Tests
Unit tests for comma money-grouping (`5500.0 → 5,500.00`) and uuid-vs-name detection. `cargo clippy -p smooai-smooth-cli --all-targets` clean.
Dogfood
Used live to backfill the RPM Pizza deal into the Smoo AI org CRM: company + 3 contacts + Discovery (closed_won $5,500) + v1 Build deals.
🤖 Generated with Claude Code