Skip to content

Commit

Permalink
Merge pull request #2050 from cardstack/CS-7834-add-crm-example-data
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhjtan authored Jan 15, 2025
2 parents 9803b76 + c704488 commit 37e90ed
Show file tree
Hide file tree
Showing 20 changed files with 709 additions and 274 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,39 @@
"type": "card",
"attributes": {
"shippingAddress": {
"addressLine1": null,
"addressLine1": "456 Pine Street",
"addressLine2": null,
"city": null,
"state": null,
"postalCode": null,
"city": "Seattle",
"state": "WA",
"postalCode": "98101",
"country": {
"name": null,
"code": null
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"billingAddress": {
"addressLine1": null,
"addressLine1": "456 Pine Street",
"addressLine2": null,
"city": null,
"state": null,
"postalCode": null,
"city": "Seattle",
"state": "WA",
"postalCode": "98101",
"country": {
"name": null,
"code": null
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"urgencyTag": {
"index": 3,
"label": "Expiring Soon",
"value": "expiring-soon",
"buttonText": "Create Account",
"color": null,
"colorScheme": {
"foregroundColor": "#FBC02D",
"backgroundColor": "#FFF9C4"
}
},
"description": null,
"description": "Current client with website and social media package expiring in 30 days",
"thumbnailURL": null
},
"relationships": {
Expand All @@ -48,7 +46,7 @@
},
"primaryContact": {
"links": {
"self": null
"self": "../Customer/1274acf3-5b66-4373-89a2-fe8106c3d586"
}
},
"contacts": {
Expand All @@ -64,4 +62,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"data": {
"type": "card",
"attributes": {
"shippingAddress": {
"addressLine1": "789 Athletic Avenue",
"addressLine2": "Building B",
"city": "Seattle",
"state": "WA",
"postalCode": "98102",
"country": {
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"billingAddress": {
"addressLine1": "789 Athletic Avenue",
"addressLine2": "Building B",
"city": "Seattle",
"state": "WA",
"postalCode": "98102",
"country": {
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"description": "Multi-location gym chain with comprehensive digital transformation needs",
"thumbnailURL": "https://picsum.photos/id/416/200/300"
},
"relationships": {
"company": {
"links": {
"self": "../Company/9203c173-3420-44b3-863d-90defd7c57c8"
}
},
"primaryContact": {
"links": {
"self": "../Customer/dddaeabf-1e95-480c-b158-0873e31fc66c"
}
},
"contacts": {
"links": {
"self": null
}
}
},
"meta": {
"adoptsFrom": {
"module": "../crm/account",
"name": "Account"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,55 @@
"type": "card",
"attributes": {
"shippingAddress": {
"addressLine1": null,
"addressLine2": null,
"city": null,
"state": null,
"postalCode": null,
"addressLine1": "220 Startup Avenue",
"addressLine2": "WeWork Floor 3",
"city": "Seattle",
"state": "WA",
"postalCode": "98104",
"country": {
"name": null,
"code": null
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"billingAddress": {
"addressLine1": null,
"addressLine2": null,
"city": null,
"state": null,
"postalCode": null,
"addressLine1": "220 Startup Avenue",
"addressLine2": "WeWork Floor 3",
"city": "Seattle",
"state": "WA",
"postalCode": "98104",
"country": {
"name": null,
"code": null
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"urgencyTag": {
"index": 1,
"label": "Renewal Due Soon",
"index": 4,
"label": "Follow-Up Required",
"color": null,
"colorScheme": {
"foregroundColor": "#F57C00",
"backgroundColor": "#FFF3E0"
"foregroundColor": "#1976D2",
"backgroundColor": "#E3F2FD"
}
},
"description": null,
"description": "Potential startup client interested in digital marketing services",
"thumbnailURL": null
},
"relationships": {
"company": {
"links": {
"self": "../Company/9203c173-3420-44b3-863d-90defd7c57c8"
"self": "../Company/eb6a7c2d-6c94-4e42-aa01-c5823fb5af9a"
}
},
"primaryContact": {
"links": {
"self": "../Contact/a01fc5c9-d70d-4b9c-aae4-384cf2b79b25"
"self": "../Customer/dddaeabf-1e95-480c-b158-0873e31fc66c"
}
},
"contacts.0": {
"contacts": {
"links": {
"self": "../Customer/0e5aec99-798b-4417-9426-a338432e0ee5"
}
},
"contacts.1": {
"links": {
"self": "../Lead/9d7b2f20-c7da-4ddc-8e77-b75d88c97b48"
"self": null
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"data": {
"type": "card",
"attributes": {
"shippingAddress": {
"addressLine1": "234 Veterinary Lane",
"addressLine2": null,
"city": "Seattle",
"state": "WA",
"postalCode": "98103",
"country": {
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"billingAddress": {
"addressLine1": "234 Veterinary Lane",
"addressLine2": null,
"city": "Seattle",
"state": "WA",
"postalCode": "98103",
"country": {
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"urgencyTag": {
"index": 5,
"label": "Pending Contract",
"color": null,
"colorScheme": {
"foregroundColor": "#512DA8",
"backgroundColor": "#EDE7F6"
}
},
"description": "Proposal sent for website redesign and booking system integration",
"thumbnailURL": null
},
"relationships": {
"company": {
"links": {
"self": "../Company/e1856419-27b0-4ce3-98fe-759d21c7144f"
}
},
"primaryContact": {
"links": {
"self": "../Customer/0c71bda7-f4d8-451a-97cb-567a8fa31763"
}
},
"contacts": {
"links": {
"self": null
}
}
},
"meta": {
"adoptsFrom": {
"module": "../crm/account",
"name": "Account"
}
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
"data": {
"type": "card",
"attributes": {
"name": "Cardstack Studio Malaysia",
"industry": "Computer Programming",
"name": "Sweet Tooth Bakery",
"industry": "Food & Beverage",
"headquartersAddress": {
"addressLine1": "Lot 3A-01A, Level 3A",
"addressLine2": " Glo Damansara Shopping Mall",
"city": "Kuala Lumpur",
"state": null,
"postalCode": "60000",
"addressLine1": "456 Pine Street",
"addressLine2": null,
"city": "Seattle",
"state": "WA",
"postalCode": "98101",
"country": {
"name": "Malaysia",
"code": "MY"
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"phone": 60102345234,
"website": "https://cardstack.com/",
"phone": 12065551234,
"website": "https://sweettoothseattle.com",
"stockSymbol": null,
"description": null,
"thumbnailURL": null
"description": "Family-owned bakery specializing in custom cakes and artisanal pastries. Looking to expand online ordering and social media presence.",
"thumbnailURL": "https://example.com/sweet-tooth-logo.png"
},
"meta": {
"adoptsFrom": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
"data": {
"type": "card",
"attributes": {
"name": "Innovative Tech Solutions",
"industry": "Technology",
"name": "Fitness First Gym",
"industry": "Health & Fitness",
"headquartersAddress": {
"addressLine1": "123 Innovation Drive",
"addressLine2": "Suite 400",
"city": "San Francisco",
"state": "California",
"postalCode": "94105",
"addressLine1": "789 Athletic Avenue",
"addressLine2": "Building B",
"city": "Seattle",
"state": "WA",
"postalCode": "98102",
"country": {
"name": "United States",
"code": "US"
},
"poBoxNumber": null
},
"phone": 14155552671,
"website": "https://innovativetechsolutions.com/",
"stockSymbol": "ITS",
"description": "A leading provider of cutting-edge AI and cloud solutions for enterprises worldwide.",
"thumbnailURL": "https://picsum.photos/id/500/200/300"
"phone": 12065555678,
"website": "https://fitnessfirstgym.com",
"stockSymbol": null,
"description": "Modern fitness center with 3 locations. Needs help with membership campaigns and class scheduling system.",
"thumbnailURL": "https://example.com/fitness-first-logo.png"
},
"meta": {
"adoptsFrom": {
Expand Down
Loading

0 comments on commit 37e90ed

Please sign in to comment.