@schandlergarcia/sf-web-components 2.3.17 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/CLAUDE.md +12 -13
- package/README.md +0 -15
- package/dist/styles/global.css +44 -57
- package/package.json +1 -2
- package/scripts/apply-brand.mjs +47 -30
- package/scripts/postinstall.mjs +1 -11
- package/src/styles/global.css +44 -57
- package/brands/engine/PARTNER_HUB_PRD.md +0 -584
- package/brands/engine/agentApiConfig.ts +0 -36
- package/brands/engine/app/api/graphql-operations-types.ts +0 -11260
- package/brands/engine/app/api/graphqlClient.ts +0 -25
- package/brands/engine/app/api/partnerQueries.ts +0 -212
- package/brands/engine/app/appLayout.tsx +0 -5
- package/brands/engine/app/components/AgentPanel.tsx +0 -541
- package/brands/engine/app/components/AgentforceConversationClient.tsx +0 -201
- package/brands/engine/app/components/Data360Widget.tsx +0 -301
- package/brands/engine/app/components/__inherit_AgentforceConversationClient.tsx +0 -3
- package/brands/engine/app/components/alerts/status-alert.tsx +0 -49
- package/brands/engine/app/components/layouts/card-layout.tsx +0 -29
- package/brands/engine/app/components/workspace/CommandCenter.tsx +0 -16
- package/brands/engine/app/config/agentApi.ts +0 -36
- package/brands/engine/app/data/partner-hub-sample-data.js +0 -297
- package/brands/engine/app/features/object-search/__examples__/api/accountSearchService.ts +0 -46
- package/brands/engine/app/features/object-search/__examples__/api/query/distinctAccountIndustries.graphql +0 -19
- package/brands/engine/app/features/object-search/__examples__/api/query/distinctAccountTypes.graphql +0 -19
- package/brands/engine/app/features/object-search/__examples__/api/query/getAccountDetail.graphql +0 -121
- package/brands/engine/app/features/object-search/__examples__/api/query/searchAccounts.graphql +0 -51
- package/brands/engine/app/features/object-search/__examples__/pages/AccountObjectDetailPage.tsx +0 -357
- package/brands/engine/app/features/object-search/__examples__/pages/AccountSearch.tsx +0 -312
- package/brands/engine/app/features/object-search/__examples__/pages/Home.tsx +0 -34
- package/brands/engine/app/features/object-search/api/objectSearchService.ts +0 -84
- package/brands/engine/app/features/object-search/components/ActiveFilters.tsx +0 -89
- package/brands/engine/app/features/object-search/components/FilterContext.tsx +0 -83
- package/brands/engine/app/features/object-search/components/ObjectBreadcrumb.tsx +0 -66
- package/brands/engine/app/features/object-search/components/PaginationControls.tsx +0 -109
- package/brands/engine/app/features/object-search/components/SearchBar.tsx +0 -41
- package/brands/engine/app/features/object-search/components/SortControl.tsx +0 -143
- package/brands/engine/app/features/object-search/components/filters/BooleanFilter.tsx +0 -78
- package/brands/engine/app/features/object-search/components/filters/DateFilter.tsx +0 -128
- package/brands/engine/app/features/object-search/components/filters/DateRangeFilter.tsx +0 -70
- package/brands/engine/app/features/object-search/components/filters/FilterFieldWrapper.tsx +0 -33
- package/brands/engine/app/features/object-search/components/filters/MultiSelectFilter.tsx +0 -97
- package/brands/engine/app/features/object-search/components/filters/NumericRangeFilter.tsx +0 -163
- package/brands/engine/app/features/object-search/components/filters/SearchFilter.tsx +0 -50
- package/brands/engine/app/features/object-search/components/filters/SelectFilter.tsx +0 -97
- package/brands/engine/app/features/object-search/components/filters/TextFilter.tsx +0 -91
- package/brands/engine/app/features/object-search/hooks/useAsyncData.ts +0 -54
- package/brands/engine/app/features/object-search/hooks/useCachedAsyncData.ts +0 -184
- package/brands/engine/app/features/object-search/hooks/useDebouncedCallback.ts +0 -34
- package/brands/engine/app/features/object-search/hooks/useObjectSearchParams.ts +0 -252
- package/brands/engine/app/features/object-search/utils/debounce.ts +0 -25
- package/brands/engine/app/features/object-search/utils/fieldUtils.ts +0 -29
- package/brands/engine/app/features/object-search/utils/filterUtils.ts +0 -404
- package/brands/engine/app/features/object-search/utils/sortUtils.ts +0 -38
- package/brands/engine/app/hooks/useEngineLiveData.ts +0 -49
- package/brands/engine/app/hooks/useEvaAgent.ts +0 -288
- package/brands/engine/app/hooks/usePartnerDashboardData.ts +0 -141
- package/brands/engine/app/navigationMenu.tsx +0 -80
- package/brands/engine/app/pages/AccountObjectDetailPage.tsx +0 -361
- package/brands/engine/app/pages/AccountSearch.tsx +0 -305
- package/brands/engine/app/pages/BlankDashboard.tsx +0 -15
- package/brands/engine/app/pages/DataTest.tsx +0 -78
- package/brands/engine/app/pages/Home.tsx +0 -5
- package/brands/engine/app/pages/NotFound.tsx +0 -19
- package/brands/engine/app/pages/PartnerHubDashboard.tsx +0 -2760
- package/brands/engine/app/pages/Search.tsx +0 -13
- package/brands/engine/app/router-utils.tsx +0 -35
- package/brands/engine/app/routes.tsx +0 -39
- package/brands/engine/app/styles/global.css +0 -269
- package/brands/engine/brand.css +0 -40
- package/brands/engine/engine-command-center-prd.md +0 -575
- package/brands/engine/engine-live-data.js +0 -135
- package/brands/engine/engine-sample-data.js +0 -378
- package/brands/engine/engine_logo.png +0 -0
- package/brands/engine/global.css +0 -269
- package/brands/engine/partner-hub-sample-data.js +0 -281
- package/brands/engine/schema.graphql +0 -292
- package/brands/engine/useEngineLiveData.ts +0 -49
- package/brands/engine/useEvaAgent.ts +0 -288
package/brands/engine/global.css
DELETED
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
@import '@heroui/styles';
|
|
2
|
-
|
|
3
|
-
@layer base {
|
|
4
|
-
html,
|
|
5
|
-
body,
|
|
6
|
-
#root {
|
|
7
|
-
@apply min-h-screen;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
body {
|
|
11
|
-
@apply antialiased bg-white;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@import 'tw-animate-css';
|
|
16
|
-
@import 'shadcn/tailwind.css';
|
|
17
|
-
|
|
18
|
-
@custom-variant dark (&:is(.dark *));
|
|
19
|
-
|
|
20
|
-
@source "../components/library";
|
|
21
|
-
@source "../components/pages";
|
|
22
|
-
|
|
23
|
-
@theme inline {
|
|
24
|
-
--color-background: var(--background);
|
|
25
|
-
--color-foreground: var(--foreground);
|
|
26
|
-
--color-card: var(--card);
|
|
27
|
-
--color-card-foreground: var(--card-foreground);
|
|
28
|
-
--color-popover: var(--popover);
|
|
29
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
30
|
-
--color-primary: var(--primary);
|
|
31
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
32
|
-
--color-secondary: var(--secondary);
|
|
33
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
34
|
-
--color-muted: var(--muted);
|
|
35
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
36
|
-
--color-accent: var(--accent);
|
|
37
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
38
|
-
--color-destructive: var(--destructive);
|
|
39
|
-
--color-destructive-foreground: var(--destructive-foreground);
|
|
40
|
-
--color-border: var(--border);
|
|
41
|
-
--color-input: var(--input);
|
|
42
|
-
--color-ring: var(--ring);
|
|
43
|
-
--color-chart-1: var(--chart-1);
|
|
44
|
-
--color-chart-2: var(--chart-2);
|
|
45
|
-
--color-chart-3: var(--chart-3);
|
|
46
|
-
--color-chart-4: var(--chart-4);
|
|
47
|
-
--color-chart-5: var(--chart-5);
|
|
48
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
49
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
50
|
-
--radius-lg: var(--radius);
|
|
51
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
52
|
-
--color-sidebar: var(--sidebar);
|
|
53
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
54
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
55
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
56
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
57
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
58
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
59
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
60
|
-
|
|
61
|
-
/* Engine brand palette — official guidelines */
|
|
62
|
-
--color-engine-black: #0D1117;
|
|
63
|
-
--color-engine-cyan: #7DCBD9;
|
|
64
|
-
--color-engine-green: #1E9D6D;
|
|
65
|
-
--color-engine-blue: #157DE5;
|
|
66
|
-
--color-engine-orange: #FD4B23;
|
|
67
|
-
--color-engine-amber: #FFB200;
|
|
68
|
-
--color-engine-bg: #F3F3F4;
|
|
69
|
-
--color-engine-border: #B0B1B3;
|
|
70
|
-
--color-engine-text: #0D1117;
|
|
71
|
-
--color-engine-muted: #616368;
|
|
72
|
-
--color-engine-label: #B0B1B3;
|
|
73
|
-
|
|
74
|
-
/* Engine Cyan brand ramp */
|
|
75
|
-
--color-brand-50: #F0FAFB;
|
|
76
|
-
--color-brand-100: #D9F2F5;
|
|
77
|
-
--color-brand-200: #B3E5EB;
|
|
78
|
-
--color-brand-300: #7DCBD9;
|
|
79
|
-
--color-brand-400: #5BB8CA;
|
|
80
|
-
--color-brand-500: #3AA0B5;
|
|
81
|
-
--color-brand-600: #2D849A;
|
|
82
|
-
--color-brand-700: #266B7E;
|
|
83
|
-
--color-brand-800: #235768;
|
|
84
|
-
--color-brand-900: #1F4858;
|
|
85
|
-
--color-brand-950: #112E3A;
|
|
86
|
-
|
|
87
|
-
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
88
|
-
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
89
|
-
|
|
90
|
-
--radius-pill: 9999px;
|
|
91
|
-
--radius-card: 10px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
:root {
|
|
95
|
-
--dash-text: #0D1117;
|
|
96
|
-
--dash-muted: #3d4047;
|
|
97
|
-
--dash-label: #8b8d91;
|
|
98
|
-
--dash-surface: #fef9ef;
|
|
99
|
-
--dash-border: #e2c97a;
|
|
100
|
-
--dash-accent: #FFB200;
|
|
101
|
-
--dash-success: #34d399;
|
|
102
|
-
--dash-info: #67e8f9;
|
|
103
|
-
--dash-warning: #FD4B23;
|
|
104
|
-
--dash-danger: #dc2626;
|
|
105
|
-
--dash-dark: #0D1117;
|
|
106
|
-
--dash-darker: #06090d;
|
|
107
|
-
--dash-chart-1: #FFB200;
|
|
108
|
-
--dash-chart-2: #1E9D6D;
|
|
109
|
-
--dash-chart-3: #7DCBD9;
|
|
110
|
-
--dash-chart-4: #FD4B23;
|
|
111
|
-
--dash-metric-size: 2.5rem;
|
|
112
|
-
--dash-metric-sub: 2.25rem;
|
|
113
|
-
--color-dash-text: var(--dash-text);
|
|
114
|
-
--color-dash-muted: var(--dash-muted);
|
|
115
|
-
--color-dash-label: var(--dash-label);
|
|
116
|
-
--color-dash-surface: var(--dash-surface);
|
|
117
|
-
--color-dash-border: var(--dash-border);
|
|
118
|
-
--color-dash-accent: var(--dash-accent);
|
|
119
|
-
--color-dash-success: var(--dash-success);
|
|
120
|
-
--color-dash-info: var(--dash-info);
|
|
121
|
-
--color-dash-warning: var(--dash-warning);
|
|
122
|
-
--color-dash-danger: var(--dash-danger);
|
|
123
|
-
--color-dash-dark: var(--dash-dark);
|
|
124
|
-
--color-dash-darker: var(--dash-darker);
|
|
125
|
-
--color-dash-chart-1: var(--dash-chart-1);
|
|
126
|
-
--color-dash-chart-2: var(--dash-chart-2);
|
|
127
|
-
--color-dash-chart-3: var(--dash-chart-3);
|
|
128
|
-
--color-dash-chart-4: var(--dash-chart-4);
|
|
129
|
-
|
|
130
|
-
--radius: 0.625rem;
|
|
131
|
-
--background: oklch(1 0 0);
|
|
132
|
-
--foreground: oklch(0.145 0 0);
|
|
133
|
-
--card: oklch(1 0 0);
|
|
134
|
-
--card-foreground: oklch(0.145 0 0);
|
|
135
|
-
--popover: oklch(1 0 0);
|
|
136
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
137
|
-
--primary: oklch(0.205 0 0);
|
|
138
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
139
|
-
--secondary: oklch(0.97 0 0);
|
|
140
|
-
--secondary-foreground: oklch(0.205 0 0);
|
|
141
|
-
--muted: oklch(0.97 0 0);
|
|
142
|
-
--muted-foreground: oklch(0.556 0 0);
|
|
143
|
-
--accent: oklch(0.97 0 0);
|
|
144
|
-
--accent-foreground: oklch(0.205 0 0);
|
|
145
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
146
|
-
--border: oklch(0.922 0 0);
|
|
147
|
-
--input: oklch(0.922 0 0);
|
|
148
|
-
--ring: oklch(0.708 0 0);
|
|
149
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
150
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
151
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
152
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
153
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
154
|
-
--sidebar: oklch(0.985 0 0);
|
|
155
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
156
|
-
--sidebar-primary: oklch(0.205 0 0);
|
|
157
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
158
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
159
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
160
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
161
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.dark {
|
|
165
|
-
--background: oklch(0.145 0 0);
|
|
166
|
-
--foreground: oklch(0.985 0 0);
|
|
167
|
-
--card: oklch(0.205 0 0);
|
|
168
|
-
--card-foreground: oklch(0.985 0 0);
|
|
169
|
-
--popover: oklch(0.205 0 0);
|
|
170
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
171
|
-
--primary: oklch(0.922 0 0);
|
|
172
|
-
--primary-foreground: oklch(0.205 0 0);
|
|
173
|
-
--secondary: oklch(0.269 0 0);
|
|
174
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
175
|
-
--muted: oklch(0.269 0 0);
|
|
176
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
177
|
-
--accent: oklch(0.269 0 0);
|
|
178
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
179
|
-
--destructive: oklch(0.704 0.191 22.216);
|
|
180
|
-
--border: oklch(1 0 0 / 10%);
|
|
181
|
-
--input: oklch(1 0 0 / 15%);
|
|
182
|
-
--ring: oklch(0.556 0 0);
|
|
183
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
184
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
185
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
186
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
187
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
188
|
-
--sidebar: oklch(0.205 0 0);
|
|
189
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
190
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
191
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
192
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
193
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
194
|
-
--sidebar-border: oklch(1 0 0 / 10%);
|
|
195
|
-
--sidebar-ring: oklch(0.556 0 0);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
@layer base {
|
|
199
|
-
* {
|
|
200
|
-
@apply border-border outline-ring/50;
|
|
201
|
-
}
|
|
202
|
-
body {
|
|
203
|
-
@apply bg-background text-foreground;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/*
|
|
208
|
-
* Restore HeroUI theme variables inside the Command Center scope.
|
|
209
|
-
* Uses Engine brand colors: Cyan #7DCBD9 as secondary, Orange-Red #FD4B23 as danger.
|
|
210
|
-
*/
|
|
211
|
-
.heroui-scope {
|
|
212
|
-
--primary: #0D1117;
|
|
213
|
-
--primary-foreground: oklch(0.9911 0 0);
|
|
214
|
-
--secondary: #7DCBD9;
|
|
215
|
-
--secondary-foreground: #0D1117;
|
|
216
|
-
--success: #1E9D6D;
|
|
217
|
-
--success-foreground: oklch(0.9911 0 0);
|
|
218
|
-
--warning: #FFB200;
|
|
219
|
-
--warning-foreground: #0D1117;
|
|
220
|
-
--danger: #FD4B23;
|
|
221
|
-
--danger-foreground: oklch(0.9911 0 0);
|
|
222
|
-
|
|
223
|
-
--muted: oklch(0.5517 0.0138 285.94);
|
|
224
|
-
--accent: oklch(0.6204 0.195 253.83);
|
|
225
|
-
--accent-foreground: oklch(0.9911 0 0);
|
|
226
|
-
--background: #F3F3F4;
|
|
227
|
-
--foreground: #0D1117;
|
|
228
|
-
--default: oklch(94% 0.001 286.375);
|
|
229
|
-
--default-foreground: #0D1117;
|
|
230
|
-
--border: #B0B1B3;
|
|
231
|
-
--separator: oklch(92% 0.004 286.32);
|
|
232
|
-
--segment: oklch(100% 0 0);
|
|
233
|
-
--segment-foreground: #0D1117;
|
|
234
|
-
--surface: oklch(100% 0 0);
|
|
235
|
-
--surface-foreground: #0D1117;
|
|
236
|
-
--overlay: oklch(100% 0 0);
|
|
237
|
-
--overlay-foreground: #0D1117;
|
|
238
|
-
--focus: #157DE5;
|
|
239
|
-
--link: #0D1117;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/* ChatBar expanded overlay — horizontal padding so it doesn't hit window edges */
|
|
243
|
-
body > .fixed.inset-x-0.rounded-2xl {
|
|
244
|
-
left: 1.5rem !important;
|
|
245
|
-
right: 1.5rem !important;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.dark .heroui-scope,
|
|
249
|
-
.heroui-scope.dark {
|
|
250
|
-
--muted: oklch(70.5% 0.015 286.067);
|
|
251
|
-
--background: oklch(12% 0.005 285.823);
|
|
252
|
-
--foreground: oklch(0.9911 0 0);
|
|
253
|
-
--default: oklch(27.4% 0.006 286.033);
|
|
254
|
-
--default-foreground: oklch(0.9911 0 0);
|
|
255
|
-
--border: oklch(28% 0.006 286.033);
|
|
256
|
-
--separator: oklch(25% 0.006 286.033);
|
|
257
|
-
--segment: oklch(0.3964 0.01 285.93);
|
|
258
|
-
--segment-foreground: oklch(0.9911 0 0);
|
|
259
|
-
--surface: oklch(0.2103 0.0059 285.89);
|
|
260
|
-
--surface-foreground: oklch(0.9911 0 0);
|
|
261
|
-
--overlay: oklch(0.2103 0.0059 285.89);
|
|
262
|
-
--overlay-foreground: oklch(0.9911 0 0);
|
|
263
|
-
--warning: oklch(0.8203 0.1388 76.34);
|
|
264
|
-
--warning-foreground: #0D1117;
|
|
265
|
-
--danger: oklch(0.594 0.1967 24.63);
|
|
266
|
-
--danger-foreground: oklch(0.9911 0 0);
|
|
267
|
-
--focus: #157DE5;
|
|
268
|
-
--link: oklch(0.9911 0 0);
|
|
269
|
-
}
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Engine Partner Hub — Sample Data
|
|
3
|
-
*
|
|
4
|
-
* Field names match the Salesforce org schema (Property__c, Contract__c,
|
|
5
|
-
* Invoice__c, Attrition_Penalty__c, etc.) so switching from sample → live
|
|
6
|
-
* Data Cloud queries requires only a data-source swap, not a field-name refactor.
|
|
7
|
-
*
|
|
8
|
-
* Each section exports both the raw records AND dashboard-ready derivatives
|
|
9
|
-
* (KPI metrics, chart data, formatted card items).
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
// ─── PARTNERS (Account with RecordType = Hotel_Partner) ────────────────────
|
|
13
|
-
export const PARTNERS = [
|
|
14
|
-
{ Id: "001P1", Name: "Grandview Hotel Group", Partner_Tier__c: "Gold", Commission_Rate__c: 18, Partner_Status__c: "Active", Total_Properties__c: 5, Total_Reservations__c: 12, Total_Revenue__c: 284000, Contract_Start_Date__c: "2025-01-01", Contract_End_Date__c: "2026-12-31" },
|
|
15
|
-
{ Id: "001P2", Name: "Summit Hotels & Resorts", Partner_Tier__c: "Gold", Commission_Rate__c: 17, Partner_Status__c: "Active", Total_Properties__c: 4, Total_Reservations__c: 10, Total_Revenue__c: 238000, Contract_Start_Date__c: "2025-03-01", Contract_End_Date__c: "2027-02-28" },
|
|
16
|
-
{ Id: "001P3", Name: "Pacific Coast Hospitality", Partner_Tier__c: "Silver", Commission_Rate__c: 15, Partner_Status__c: "Active", Total_Properties__c: 3, Total_Reservations__c: 8, Total_Revenue__c: 156000, Contract_Start_Date__c: "2025-06-01", Contract_End_Date__c: "2026-05-31" },
|
|
17
|
-
{ Id: "001P4", Name: "Metropolitan Hotels International", Partner_Tier__c: "Gold", Commission_Rate__c: 16, Partner_Status__c: "Active", Total_Properties__c: 4, Total_Reservations__c: 7, Total_Revenue__c: 198000, Contract_Start_Date__c: "2025-04-01", Contract_End_Date__c: "2027-03-31" },
|
|
18
|
-
{ Id: "001P5", Name: "Horizon Hospitality Group", Partner_Tier__c: "Silver", Commission_Rate__c: 14, Partner_Status__c: "Active", Total_Properties__c: 3, Total_Reservations__c: 5, Total_Revenue__c: 112000, Contract_Start_Date__c: "2025-07-01", Contract_End_Date__c: "2026-06-30" },
|
|
19
|
-
{ Id: "001P6", Name: "Riverside Inn Collection", Partner_Tier__c: "Bronze", Commission_Rate__c: 12, Partner_Status__c: "Active", Total_Properties__c: 2, Total_Reservations__c: 3, Total_Revenue__c: 64000, Contract_Start_Date__c: "2025-09-01", Contract_End_Date__c: "2026-08-31" },
|
|
20
|
-
{ Id: "001P7", Name: "Pinnacle Luxury Hotels", Partner_Tier__c: "Gold", Commission_Rate__c: 20, Partner_Status__c: "Active", Total_Properties__c: 3, Total_Reservations__c: 4, Total_Revenue__c: 312000, Contract_Start_Date__c: "2025-02-01", Contract_End_Date__c: "2027-01-31" },
|
|
21
|
-
{ Id: "001P8", Name: "Sterling Hotel Group", Partner_Tier__c: "Silver", Commission_Rate__c: 13, Partner_Status__c: "Active", Total_Properties__c: 3, Total_Reservations__c: 4, Total_Revenue__c: 89000, Contract_Start_Date__c: "2025-05-01", Contract_End_Date__c: "2026-04-30" },
|
|
22
|
-
{ Id: "001P9", Name: "Vista Hotels International", Partner_Tier__c: "Silver", Commission_Rate__c: 14, Partner_Status__c: "Pending", Total_Properties__c: 2, Total_Reservations__c: 0, Total_Revenue__c: 0, Contract_Start_Date__c: "2026-04-01", Contract_End_Date__c: "2027-03-31" },
|
|
23
|
-
{ Id: "001P10", Name: "Continental Inn & Suites", Partner_Tier__c: "Bronze", Commission_Rate__c: 11, Partner_Status__c: "Active", Total_Properties__c: 2, Total_Reservations__c: 2, Total_Revenue__c: 42000, Contract_Start_Date__c: "2025-10-01", Contract_End_Date__c: "2026-09-30" },
|
|
24
|
-
{ Id: "001P11", Name: "Skyline Hospitality", Partner_Tier__c: "Silver", Commission_Rate__c: 15, Partner_Status__c: "Active", Total_Properties__c: 2, Total_Reservations__c: 3, Total_Revenue__c: 97000, Contract_Start_Date__c: "2025-08-01", Contract_End_Date__c: "2026-07-31" },
|
|
25
|
-
{ Id: "001P12", Name: "Parkview Hotel Co", Partner_Tier__c: "Bronze", Commission_Rate__c: 12, Partner_Status__c: "Inactive", Total_Properties__c: 1, Total_Reservations__c: 1, Total_Revenue__c: 28000, Contract_Start_Date__c: "2024-06-01", Contract_End_Date__c: "2025-05-31" },
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
// ─── CONTRACTS ──────────────────────────────────────────────────────────────
|
|
29
|
-
export const CONTRACTS = [
|
|
30
|
-
{ Id: "a10C1", Name: "CNTR-00001", Account__c: "001P1", Partner_Name: "Grandview Hotel Group", Status__c: "Active", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 80, Resale_Credit_Policy__c: "Full Credit", Resale_Credit_Percentage__c: 100, Commission_Rate__c: 18, Start_Date__c: "2025-01-01", End_Date__c: "2026-12-31" },
|
|
31
|
-
{ Id: "a10C2", Name: "CNTR-00002", Account__c: "001P2", Partner_Name: "Summit Hotels & Resorts", Status__c: "Active", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 80, Resale_Credit_Policy__c: "Partial Credit", Resale_Credit_Percentage__c: 50, Commission_Rate__c: 17, Start_Date__c: "2025-03-01", End_Date__c: "2027-02-28" },
|
|
32
|
-
{ Id: "a10C3", Name: "CNTR-00003", Account__c: "001P3", Partner_Name: "Pacific Coast Hospitality", Status__c: "Active", Attrition_Calculation_Method__c: "Cumulative", Attrition_Threshold_Percentage__c: 75, Resale_Credit_Policy__c: "Partial Credit", Resale_Credit_Percentage__c: 50, Commission_Rate__c: 15, Start_Date__c: "2025-06-01", End_Date__c: "2026-05-31" },
|
|
33
|
-
{ Id: "a10C4", Name: "CNTR-00004", Account__c: "001P4", Partner_Name: "Metropolitan Hotels International", Status__c: "Active", Attrition_Calculation_Method__c: "Revenue Based", Attrition_Threshold_Percentage__c: 70, Resale_Credit_Policy__c: "No Credit", Resale_Credit_Percentage__c: 0, Commission_Rate__c: 16, Start_Date__c: "2025-04-01", End_Date__c: "2027-03-31" },
|
|
34
|
-
{ Id: "a10C5", Name: "CNTR-00005", Account__c: "001P5", Partner_Name: "Horizon Hospitality Group", Status__c: "Active", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 85, Resale_Credit_Policy__c: "Full Credit", Resale_Credit_Percentage__c: 100, Commission_Rate__c: 14, Start_Date__c: "2025-07-01", End_Date__c: "2026-06-30" },
|
|
35
|
-
{ Id: "a10C6", Name: "CNTR-00006", Account__c: "001P6", Partner_Name: "Riverside Inn Collection", Status__c: "Active", Attrition_Calculation_Method__c: "Cumulative", Attrition_Threshold_Percentage__c: 70, Resale_Credit_Policy__c: "No Credit", Resale_Credit_Percentage__c: 0, Commission_Rate__c: 12, Start_Date__c: "2025-09-01", End_Date__c: "2026-08-31" },
|
|
36
|
-
{ Id: "a10C7", Name: "CNTR-00007", Account__c: "001P7", Partner_Name: "Pinnacle Luxury Hotels", Status__c: "Active", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 90, Resale_Credit_Policy__c: "Full Credit", Resale_Credit_Percentage__c: 100, Commission_Rate__c: 20, Start_Date__c: "2025-02-01", End_Date__c: "2027-01-31" },
|
|
37
|
-
{ Id: "a10C8", Name: "CNTR-00008", Account__c: "001P8", Partner_Name: "Sterling Hotel Group", Status__c: "Active", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 80, Resale_Credit_Policy__c: "Partial Credit", Resale_Credit_Percentage__c: 50, Commission_Rate__c: 13, Start_Date__c: "2025-05-01", End_Date__c: "2026-04-30" },
|
|
38
|
-
{ Id: "a10C9", Name: "CNTR-00009", Account__c: "001P9", Partner_Name: "Vista Hotels International", Status__c: "Active", Attrition_Calculation_Method__c: "Revenue Based", Attrition_Threshold_Percentage__c: 75, Resale_Credit_Policy__c: "Partial Credit", Resale_Credit_Percentage__c: 50, Commission_Rate__c: 14, Start_Date__c: "2026-04-01", End_Date__c: "2027-03-31" },
|
|
39
|
-
{ Id: "a10C10", Name: "CNTR-00010", Account__c: "001P10", Partner_Name: "Continental Inn & Suites", Status__c: "Active", Attrition_Calculation_Method__c: "Cumulative", Attrition_Threshold_Percentage__c: 70, Resale_Credit_Policy__c: "No Credit", Resale_Credit_Percentage__c: 0, Commission_Rate__c: 11, Start_Date__c: "2025-10-01", End_Date__c: "2026-09-30" },
|
|
40
|
-
{ Id: "a10C11", Name: "CNTR-00011", Account__c: "001P11", Partner_Name: "Skyline Hospitality", Status__c: "Active", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 80, Resale_Credit_Policy__c: "Full Credit", Resale_Credit_Percentage__c: 100, Commission_Rate__c: 15, Start_Date__c: "2025-08-01", End_Date__c: "2026-07-31" },
|
|
41
|
-
{ Id: "a10C12", Name: "CNTR-00012", Account__c: "001P12", Partner_Name: "Parkview Hotel Co", Status__c: "Expired", Attrition_Calculation_Method__c: "Per Night", Attrition_Threshold_Percentage__c: 80, Resale_Credit_Policy__c: "No Credit", Resale_Credit_Percentage__c: 0, Commission_Rate__c: 12, Start_Date__c: "2024-06-01", End_Date__c: "2025-05-31" },
|
|
42
|
-
];
|
|
43
|
-
|
|
44
|
-
// ─── INVOICES ───────────────────────────────────────────────────────────────
|
|
45
|
-
export const INVOICES = [
|
|
46
|
-
{ Id: "a20I1", Name: "INV-00001", Account__c: "001P1", Partner_Name: "Grandview Hotel Group", Status__c: "Paid", Invoice_Date__c: "2026-01-15", Due_Date__c: "2026-02-15", Period_Start__c: "2025-12-01", Period_End__c: "2025-12-31", Total_Amount__c: 24500, Commission_Amount__c: 4410 },
|
|
47
|
-
{ Id: "a20I2", Name: "INV-00002", Account__c: "001P2", Partner_Name: "Summit Hotels & Resorts", Status__c: "Paid", Invoice_Date__c: "2026-01-15", Due_Date__c: "2026-02-15", Period_Start__c: "2025-12-01", Period_End__c: "2025-12-31", Total_Amount__c: 19800, Commission_Amount__c: 3366 },
|
|
48
|
-
{ Id: "a20I3", Name: "INV-00003", Account__c: "001P3", Partner_Name: "Pacific Coast Hospitality", Status__c: "Paid", Invoice_Date__c: "2026-01-15", Due_Date__c: "2026-02-15", Period_Start__c: "2025-12-01", Period_End__c: "2025-12-31", Total_Amount__c: 13200, Commission_Amount__c: 1980 },
|
|
49
|
-
{ Id: "a20I4", Name: "INV-00004", Account__c: "001P1", Partner_Name: "Grandview Hotel Group", Status__c: "Paid", Invoice_Date__c: "2026-02-15", Due_Date__c: "2026-03-15", Period_Start__c: "2026-01-01", Period_End__c: "2026-01-31", Total_Amount__c: 27200, Commission_Amount__c: 4896 },
|
|
50
|
-
{ Id: "a20I5", Name: "INV-00005", Account__c: "001P2", Partner_Name: "Summit Hotels & Resorts", Status__c: "Paid", Invoice_Date__c: "2026-02-15", Due_Date__c: "2026-03-15", Period_Start__c: "2026-01-01", Period_End__c: "2026-01-31", Total_Amount__c: 21400, Commission_Amount__c: 3638 },
|
|
51
|
-
{ Id: "a20I6", Name: "INV-00006", Account__c: "001P4", Partner_Name: "Metropolitan Hotels International", Status__c: "Paid", Invoice_Date__c: "2026-02-15", Due_Date__c: "2026-03-15", Period_Start__c: "2026-01-01", Period_End__c: "2026-01-31", Total_Amount__c: 18600, Commission_Amount__c: 2976 },
|
|
52
|
-
{ Id: "a20I7", Name: "INV-00007", Account__c: "001P1", Partner_Name: "Grandview Hotel Group", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 26800, Commission_Amount__c: 4824 },
|
|
53
|
-
{ Id: "a20I8", Name: "INV-00008", Account__c: "001P2", Partner_Name: "Summit Hotels & Resorts", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 22100, Commission_Amount__c: 3757 },
|
|
54
|
-
{ Id: "a20I9", Name: "INV-00009", Account__c: "001P3", Partner_Name: "Pacific Coast Hospitality", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 14800, Commission_Amount__c: 2220 },
|
|
55
|
-
{ Id: "a20I10", Name: "INV-00010", Account__c: "001P4", Partner_Name: "Metropolitan Hotels International", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 17200, Commission_Amount__c: 2752 },
|
|
56
|
-
{ Id: "a20I11", Name: "INV-00011", Account__c: "001P5", Partner_Name: "Horizon Hospitality Group", Status__c: "Overdue", Invoice_Date__c: "2026-02-15", Due_Date__c: "2026-03-15", Period_Start__c: "2026-01-01", Period_End__c: "2026-01-31", Total_Amount__c: 9400, Commission_Amount__c: 1316 },
|
|
57
|
-
{ Id: "a20I12", Name: "INV-00012", Account__c: "001P6", Partner_Name: "Riverside Inn Collection", Status__c: "Overdue", Invoice_Date__c: "2026-02-15", Due_Date__c: "2026-03-15", Period_Start__c: "2026-01-01", Period_End__c: "2026-01-31", Total_Amount__c: 5200, Commission_Amount__c: 624 },
|
|
58
|
-
{ Id: "a20I13", Name: "INV-00013", Account__c: "001P7", Partner_Name: "Pinnacle Luxury Hotels", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 31200, Commission_Amount__c: 6240 },
|
|
59
|
-
{ Id: "a20I14", Name: "INV-00014", Account__c: "001P8", Partner_Name: "Sterling Hotel Group", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 8900, Commission_Amount__c: 1157 },
|
|
60
|
-
{ Id: "a20I15", Name: "INV-00015", Account__c: "001P5", Partner_Name: "Horizon Hospitality Group", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 10800, Commission_Amount__c: 1512 },
|
|
61
|
-
{ Id: "a20I16", Name: "INV-00016", Account__c: "001P10", Partner_Name: "Continental Inn & Suites", Status__c: "Sent", Invoice_Date__c: "2026-03-15", Due_Date__c: "2026-04-15", Period_Start__c: "2026-02-01", Period_End__c: "2026-02-28", Total_Amount__c: 4200, Commission_Amount__c: 462 },
|
|
62
|
-
{ Id: "a20I17", Name: "INV-00017", Account__c: "001P11", Partner_Name: "Skyline Hospitality", Status__c: "Draft", Invoice_Date__c: "2026-04-01", Due_Date__c: "2026-05-01", Period_Start__c: "2026-03-01", Period_End__c: "2026-03-31", Total_Amount__c: 11400, Commission_Amount__c: 1710 },
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
// ─── ATTRITION PENALTIES ────────────────────────────────────────────────────
|
|
66
|
-
export const ATTRITION_PENALTIES = [
|
|
67
|
-
{ Id: "a30A1", Name: "ATR-00001", Partner_Name: "Summit Hotels & Resorts", Property_Name: "Summit Austin Convention Center", Contract__c: "a10C2", Customer_Name: "TechCorp Inc.", Status__c: "Approved", Original_Room_Block__c: 50, Actual_Rooms_Used__c: 35, Unused_Rooms__c: 15, Room_Rate__c: 200, Number_of_Nights__c: 3, Rooms_Resold__c: 8, Penalty_Amount_Calculated__c: 9000, Resale_Credit_Applied__c: 0, Final_Penalty_Amount__c: 9000, Calculation_Method: "Per Night", Resale_Policy: "Partial Credit (50%)", Is_Hero: true },
|
|
68
|
-
{ Id: "a30A2", Name: "ATR-00002", Partner_Name: "Pacific Coast Hospitality", Property_Name: "Pacific Coast Regency Chicago", Contract__c: "a10C3", Customer_Name: "GlobalTech Ltd.", Status__c: "Reviewed", Original_Room_Block__c: 30, Actual_Rooms_Used__c: 22, Unused_Rooms__c: 8, Room_Rate__c: 250, Number_of_Nights__c: 2, Rooms_Resold__c: 5, Penalty_Amount_Calculated__c: 4000, Resale_Credit_Applied__c: 1250, Final_Penalty_Amount__c: 2750, Calculation_Method: "Cumulative", Resale_Policy: "Partial Credit (50%)" },
|
|
69
|
-
{ Id: "a30A3", Name: "ATR-00003", Partner_Name: "Grandview Hotel Group", Property_Name: "Grandview Marquis NYC", Contract__c: "a10C1", Customer_Name: "Acme Corp.", Status__c: "Approved", Original_Room_Block__c: 40, Actual_Rooms_Used__c: 30, Unused_Rooms__c: 10, Room_Rate__c: 300, Number_of_Nights__c: 2, Rooms_Resold__c: 4, Penalty_Amount_Calculated__c: 6000, Resale_Credit_Applied__c: 2400, Final_Penalty_Amount__c: 3600, Calculation_Method: "Per Night", Resale_Policy: "Full Credit" },
|
|
70
|
-
{ Id: "a30A4", Name: "ATR-00004", Partner_Name: "Metropolitan Hotels International", Property_Name: "Metropolitan San Francisco", Contract__c: "a10C4", Customer_Name: "StartupX Inc.", Status__c: "Calculated", Original_Room_Block__c: 25, Actual_Rooms_Used__c: 18, Unused_Rooms__c: 7, Room_Rate__c: 275, Number_of_Nights__c: 1, Rooms_Resold__c: 3, Penalty_Amount_Calculated__c: 1925, Resale_Credit_Applied__c: 0, Final_Penalty_Amount__c: 1925, Calculation_Method: "Revenue Based", Resale_Policy: "No Credit" },
|
|
71
|
-
{ Id: "a30A5", Name: "ATR-00005", Partner_Name: "Horizon Hospitality Group", Property_Name: "Horizon Grand Orlando", Contract__c: "a10C5", Customer_Name: "MediaCo LLC", Status__c: "Disputed", Original_Room_Block__c: 20, Actual_Rooms_Used__c: 14, Unused_Rooms__c: 6, Room_Rate__c: 150, Number_of_Nights__c: 2, Rooms_Resold__c: 4, Penalty_Amount_Calculated__c: 1800, Resale_Credit_Applied__c: 1200, Final_Penalty_Amount__c: 600, Calculation_Method: "Per Night", Resale_Policy: "Full Credit" },
|
|
72
|
-
{ Id: "a30A6", Name: "ATR-00006", Partner_Name: "Sterling Hotel Group", Property_Name: "Sterling Aqua Chicago", Contract__c: "a10C8", Customer_Name: "FinanceFirst Corp.", Status__c: "Approved", Original_Room_Block__c: 35, Actual_Rooms_Used__c: 25, Unused_Rooms__c: 10, Room_Rate__c: 175, Number_of_Nights__c: 2, Rooms_Resold__c: 3, Penalty_Amount_Calculated__c: 3500, Resale_Credit_Applied__c: 525, Final_Penalty_Amount__c: 2975, Calculation_Method: "Per Night", Resale_Policy: "Partial Credit (50%)" },
|
|
73
|
-
];
|
|
74
|
-
|
|
75
|
-
// ─── DISPUTES (Case with RecordType = Partner_Dispute) ──────────────────────
|
|
76
|
-
export const DISPUTES = [
|
|
77
|
-
{ Id: "500D1", CaseNumber: "00001045", Subject: "ATR-00001 — Resale credit not applied", Partner_Name: "Summit Hotels & Resorts", Dispute_Type__c: "Resale Credit", Disputed_Amount__c: 2400, Status: "Open", Priority: "High", Agent_Handled__c: true, CreatedDate: "2026-04-02", Escalation_Reason__c: "$2,400 Partial Credit for 8 resold rooms was never applied to ATR-00001" },
|
|
78
|
-
{ Id: "500D2", CaseNumber: "00001038", Subject: "ATR-00005 — Penalty exceeds contract terms", Partner_Name: "Horizon Hospitality Group", Dispute_Type__c: "Attrition Calculation", Disputed_Amount__c: 1200, Status: "Open", Priority: "Medium", Agent_Handled__c: false, CreatedDate: "2026-03-28", Escalation_Reason__c: "Partner claims full resale credit was not applied correctly" },
|
|
79
|
-
{ Id: "500D3", CaseNumber: "00001032", Subject: "INV-00011 — Commission rate discrepancy", Partner_Name: "Horizon Hospitality Group", Dispute_Type__c: "Commission Rate", Disputed_Amount__c: 470, Status: "Open", Priority: "Low", Agent_Handled__c: false, CreatedDate: "2026-03-22", Escalation_Reason__c: "Invoice shows 12% rate but contract specifies 14%" },
|
|
80
|
-
{ Id: "500D4", CaseNumber: "00001025", Subject: "INV-00006 — Duplicate line items", Partner_Name: "Metropolitan Hotels International", Dispute_Type__c: "Invoice Amount", Disputed_Amount__c: 2976, Status: "Resolved", Priority: "High", Agent_Handled__c: true, CreatedDate: "2026-03-15", Escalation_Reason__c: "Duplicate commission line items on January invoice" },
|
|
81
|
-
{ Id: "500D5", CaseNumber: "00001018", Subject: "ATR-00002 — Threshold not met", Partner_Name: "Pacific Coast Hospitality", Dispute_Type__c: "Attrition Calculation", Disputed_Amount__c: 2750, Status: "Resolved", Priority: "Medium", Agent_Handled__c: true, CreatedDate: "2026-03-10", Escalation_Reason__c: "Usage was 73% (below 75% threshold) — cumulative method applies" },
|
|
82
|
-
{ Id: "500D6", CaseNumber: "00001010", Subject: "General — Contract renewal terms", Partner_Name: "Skyline Hospitality", Dispute_Type__c: "Other", Disputed_Amount__c: 0, Status: "Open", Priority: "Low", Agent_Handled__c: false, CreatedDate: "2026-03-05", Escalation_Reason__c: "Partner requesting revised commission rate for renewal" },
|
|
83
|
-
{ Id: "500D7", CaseNumber: "00001005", Subject: "ATR-00004 — Revenue-based method questioned", Partner_Name: "Metropolitan Hotels International", Dispute_Type__c: "Attrition Calculation", Disputed_Amount__c: 1925, Status: "Escalated", Priority: "High", Agent_Handled__c: true, CreatedDate: "2026-02-28", Escalation_Reason__c: "Partner disagrees with revenue-based calculation — wants per-night method" },
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
// ─── RECENT ACTIVITY (for ActivityCard / FeedPanel) ─────────────────────────
|
|
87
|
-
export const RECENT_ACTIVITY = [
|
|
88
|
-
{ id: "act-1", title: "Penalty Dispute Created", description: "Agent flagged $2,400 missing resale credit on ATR-00001", status: "alert", timestamp: "2 hours ago", partner: "Summit Hotels & Resorts" },
|
|
89
|
-
{ id: "act-2", title: "Invoice Sent", description: "INV-00013 sent to Pinnacle Luxury Hotels ($31,200)", status: "info", timestamp: "4 hours ago", partner: "Pinnacle Luxury Hotels" },
|
|
90
|
-
{ id: "act-3", title: "Contract Renewed", description: "CNTR-00007 renewed through Jan 2027", status: "success", timestamp: "1 day ago", partner: "Pinnacle Luxury Hotels" },
|
|
91
|
-
{ id: "act-4", title: "Dispute Resolved", description: "Case #00001025 — duplicate line items corrected on INV-00006", status: "success", timestamp: "1 day ago", partner: "Metropolitan Hotels International" },
|
|
92
|
-
{ id: "act-5", title: "Overdue Invoice Alert", description: "INV-00011 past due — $9,400 outstanding since Mar 15", status: "warning", timestamp: "2 days ago", partner: "Horizon Hospitality Group" },
|
|
93
|
-
{ id: "act-6", title: "New Partner Onboarding", description: "Vista Hotels International contract signed — pending property setup", status: "info", timestamp: "3 days ago", partner: "Vista Hotels International" },
|
|
94
|
-
{ id: "act-7", title: "Attrition Penalty Calculated", description: "ATR-00004 calculated at $1,925 (revenue-based method)", status: "info", timestamp: "4 days ago", partner: "Metropolitan Hotels International" },
|
|
95
|
-
{ id: "act-8", title: "Dispute Escalated", description: "Case #00001005 escalated — IHG disputes revenue-based calculation", status: "alert", timestamp: "5 days ago", partner: "Metropolitan Hotels International" },
|
|
96
|
-
];
|
|
97
|
-
|
|
98
|
-
// ─── DASHBOARD-READY DERIVATIVES ────────────────────────────────────────────
|
|
99
|
-
|
|
100
|
-
// KPI metrics
|
|
101
|
-
const activePartners = PARTNERS.filter(p => p.Partner_Status__c === "Active").length;
|
|
102
|
-
const totalRevenue = PARTNERS.reduce((sum, p) => sum + p.Total_Revenue__c, 0);
|
|
103
|
-
const openDisputes = DISPUTES.filter(d => d.Status === "Open" || d.Status === "Escalated").length;
|
|
104
|
-
const overdueInvoices = INVOICES.filter(i => i.Status__c === "Overdue").length;
|
|
105
|
-
const totalPenalties = ATTRITION_PENALTIES.reduce((sum, p) => sum + p.Final_Penalty_Amount__c, 0);
|
|
106
|
-
const avgCommission = (PARTNERS.filter(p => p.Partner_Status__c === "Active").reduce((sum, p) => sum + p.Commission_Rate__c, 0) / activePartners).toFixed(1);
|
|
107
|
-
|
|
108
|
-
export const METRICS = {
|
|
109
|
-
activePartners,
|
|
110
|
-
totalRevenue,
|
|
111
|
-
openDisputes,
|
|
112
|
-
overdueInvoices,
|
|
113
|
-
totalPenalties,
|
|
114
|
-
avgCommission,
|
|
115
|
-
totalProperties: PARTNERS.reduce((sum, p) => sum + p.Total_Properties__c, 0),
|
|
116
|
-
totalReservations: PARTNERS.reduce((sum, p) => sum + p.Total_Reservations__c, 0),
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
// ─── SUMMIT-SPECIFIC METRICS (for demo story) ──────────────────────────────
|
|
120
|
-
export const SUMMIT_METRICS = {
|
|
121
|
-
currentRevenue: 238000,
|
|
122
|
-
lastQuarterRevenue: 164000, // 45% growth
|
|
123
|
-
growthRate: 45, // percentage
|
|
124
|
-
projectedAnnualRevenue: 500000,
|
|
125
|
-
projectedCommission: 85000, // 17% commission rate
|
|
126
|
-
rank: 2, // #2 among Gold partners
|
|
127
|
-
totalGoldPartners: 4,
|
|
128
|
-
avgGoldPartnerRevenue: 258000,
|
|
129
|
-
percentileRank: 87, // Top 13% of all partners
|
|
130
|
-
propertiesGrowing: 4,
|
|
131
|
-
topProperty: "Summit Austin Convention Center",
|
|
132
|
-
topPropertyGrowth: 60,
|
|
133
|
-
topPropertyRevenue: 19800,
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
// Property leaderboard with rankings
|
|
137
|
-
export const PROPERTY_LEADERBOARD = [
|
|
138
|
-
{
|
|
139
|
-
rank: 1,
|
|
140
|
-
name: "Summit Austin Convention Center",
|
|
141
|
-
revenue: 97600, // Sum of 6 months - bookings through Engine
|
|
142
|
-
latestRevenue: 19800,
|
|
143
|
-
growth: 60,
|
|
144
|
-
insight: "Highest booking volume through Engine — 41% of total",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
rank: 2,
|
|
148
|
-
name: "Summit Midtown NYC",
|
|
149
|
-
revenue: 73100,
|
|
150
|
-
latestRevenue: 15200,
|
|
151
|
-
growth: 55,
|
|
152
|
-
insight: "Strong booking growth in Q1 2026",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
rank: 3,
|
|
156
|
-
name: "Summit Chicago Downtown",
|
|
157
|
-
revenue: 59000,
|
|
158
|
-
latestRevenue: 12600,
|
|
159
|
-
growth: 75,
|
|
160
|
-
insight: "Fastest growing location — up 75% in 6 months",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
rank: 4,
|
|
164
|
-
name: "Summit San Francisco Bay",
|
|
165
|
-
revenue: 53300,
|
|
166
|
-
latestRevenue: 10800,
|
|
167
|
-
growth: 100,
|
|
168
|
-
insight: "Bookings doubled since October — 100% growth",
|
|
169
|
-
},
|
|
170
|
-
];
|
|
171
|
-
|
|
172
|
-
// Partner tier breakdown (for ChartCard — pie or bar)
|
|
173
|
-
export const PARTNER_TIER_CHART = [
|
|
174
|
-
{ label: "Gold", value: PARTNERS.filter(p => p.Partner_Tier__c === "Gold").length, color: "#FFC107" },
|
|
175
|
-
{ label: "Silver", value: PARTNERS.filter(p => p.Partner_Tier__c === "Silver").length, color: "#90A4AE" },
|
|
176
|
-
{ label: "Bronze", value: PARTNERS.filter(p => p.Partner_Tier__c === "Bronze").length, color: "#CD7F32" },
|
|
177
|
-
];
|
|
178
|
-
|
|
179
|
-
// Revenue by partner (for ChartCard — horizontal bar)
|
|
180
|
-
export const REVENUE_BY_PARTNER = PARTNERS
|
|
181
|
-
.filter(p => p.Total_Revenue__c > 0)
|
|
182
|
-
.sort((a, b) => b.Total_Revenue__c - a.Total_Revenue__c)
|
|
183
|
-
.map(p => ({ label: p.Name, value: p.Total_Revenue__c }));
|
|
184
|
-
|
|
185
|
-
// Monthly invoice trend (for ChartCard — line/area)
|
|
186
|
-
export const INVOICE_TREND = [
|
|
187
|
-
{ month: "Dec 2025", total: 57500, commission: 9756 },
|
|
188
|
-
{ month: "Jan 2026", total: 76600, commission: 12826 },
|
|
189
|
-
{ month: "Feb 2026", total: 143400, commission: 22422 },
|
|
190
|
-
{ month: "Mar 2026", total: 11400, commission: 1710 },
|
|
191
|
-
];
|
|
192
|
-
|
|
193
|
-
// Attrition penalties for TableCard
|
|
194
|
-
export const PENALTY_TABLE_ITEMS = ATTRITION_PENALTIES.map(p => ({
|
|
195
|
-
id: p.Id,
|
|
196
|
-
name: p.Name,
|
|
197
|
-
partner: p.Partner_Name,
|
|
198
|
-
property: p.Property_Name,
|
|
199
|
-
customer: p.Customer_Name,
|
|
200
|
-
status: p.Status__c,
|
|
201
|
-
penalty: p.Final_Penalty_Amount__c,
|
|
202
|
-
credit: p.Resale_Credit_Applied__c,
|
|
203
|
-
method: p.Calculation_Method,
|
|
204
|
-
isHero: p.Is_Hero,
|
|
205
|
-
// Additional fields for modal display
|
|
206
|
-
originalRoomBlock: p.Original_Room_Block__c,
|
|
207
|
-
actualRoomsUsed: p.Actual_Rooms_Used__c,
|
|
208
|
-
unusedRooms: p.Unused_Rooms__c,
|
|
209
|
-
roomRate: p.Room_Rate__c,
|
|
210
|
-
numberOfNights: p.Number_of_Nights__c,
|
|
211
|
-
roomsResold: p.Rooms_Resold__c,
|
|
212
|
-
penaltyCalculated: p.Penalty_Amount_Calculated__c,
|
|
213
|
-
resalePolicy: p.Resale_Policy,
|
|
214
|
-
}));
|
|
215
|
-
|
|
216
|
-
// Dispute cards for ListCard
|
|
217
|
-
export const DISPUTE_CARDS = DISPUTES.filter(d => d.Status !== "Resolved").map(d => ({
|
|
218
|
-
id: d.Id,
|
|
219
|
-
title: d.Subject,
|
|
220
|
-
description: `${d.Partner_Name} · ${d.Dispute_Type__c}`,
|
|
221
|
-
status: d.Priority === "High" ? "critical" : d.Priority === "Medium" ? "warning" : "info",
|
|
222
|
-
badge: d.Status,
|
|
223
|
-
amount: d.Disputed_Amount__c,
|
|
224
|
-
agentHandled: d.Agent_Handled__c,
|
|
225
|
-
}));
|
|
226
|
-
|
|
227
|
-
// Invoice cards for ListCard
|
|
228
|
-
export const INVOICE_CARDS = INVOICES.filter(i => i.Status__c !== "Paid").map(i => ({
|
|
229
|
-
id: i.Id,
|
|
230
|
-
title: `${i.Name} — ${i.Partner_Name}`,
|
|
231
|
-
description: `${i.Period_Start__c} to ${i.Period_End__c}`,
|
|
232
|
-
status: i.Status__c === "Overdue" ? "critical" : i.Status__c === "Draft" ? "info" : "default",
|
|
233
|
-
badge: i.Status__c,
|
|
234
|
-
amount: i.Total_Amount__c,
|
|
235
|
-
due: i.Due_Date__c,
|
|
236
|
-
}));
|
|
237
|
-
|
|
238
|
-
// Revenue trend by property (for multi-line area chart)
|
|
239
|
-
// Summit Hotels & Resorts has 4 properties — monthly revenue per property
|
|
240
|
-
export const REVENUE_TREND_BY_PROPERTY = {
|
|
241
|
-
months: ["Oct 2025", "Nov 2025", "Dec 2025", "Jan 2026", "Feb 2026", "Mar 2026"],
|
|
242
|
-
properties: [
|
|
243
|
-
{
|
|
244
|
-
name: "Summit Austin Convention Center",
|
|
245
|
-
color: "#7DCBD9",
|
|
246
|
-
values: [12400, 13800, 15200, 16900, 18100, 19800],
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
name: "Summit Midtown NYC",
|
|
250
|
-
color: "#1E9D6D",
|
|
251
|
-
values: [9800, 10200, 11400, 12600, 13900, 15200],
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
name: "Summit Chicago Downtown",
|
|
255
|
-
color: "#157DE5",
|
|
256
|
-
values: [7200, 8100, 9600, 10400, 11200, 12600],
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
name: "Summit San Francisco Bay",
|
|
260
|
-
color: "#FFB200",
|
|
261
|
-
values: [5400, 6200, 7100, 8300, 9500, 10800],
|
|
262
|
-
},
|
|
263
|
-
],
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
// Contract expiration (upcoming 6 months)
|
|
267
|
-
export const EXPIRING_CONTRACTS = CONTRACTS
|
|
268
|
-
.filter(c => {
|
|
269
|
-
const end = new Date(c.End_Date__c);
|
|
270
|
-
const now = new Date("2026-04-01");
|
|
271
|
-
const sixMonths = new Date("2026-10-01");
|
|
272
|
-
return c.Status__c === "Active" && end >= now && end <= sixMonths;
|
|
273
|
-
})
|
|
274
|
-
.sort((a, b) => new Date(a.End_Date__c) - new Date(b.End_Date__c))
|
|
275
|
-
.map(c => ({
|
|
276
|
-
id: c.Id,
|
|
277
|
-
title: `${c.Name} — ${c.Partner_Name}`,
|
|
278
|
-
description: `Expires ${c.End_Date__c} · ${c.Attrition_Calculation_Method__c} · ${c.Resale_Credit_Policy__c}`,
|
|
279
|
-
status: "warning",
|
|
280
|
-
badge: c.End_Date__c,
|
|
281
|
-
}));
|