-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff_commit.txt
More file actions
251 lines (247 loc) · 13.5 KB
/
Copy pathdiff_commit.txt
File metadata and controls
251 lines (247 loc) · 13.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
diff --git a/dashboard-next/app/dashboard/components/PremiumDashboardShell.jsx b/dashboard-next/app/dashboard/components/PremiumDashboardShell.jsx
index b0cd3c9..d19d9b2 100644
--- a/dashboard-next/app/dashboard/components/PremiumDashboardShell.jsx
+++ b/dashboard-next/app/dashboard/components/PremiumDashboardShell.jsx
@@ -3359,7 +3359,7 @@ export default function PremiumDashboardShell({
{renderPortalPopup(
showClientListPopup,
<div className="premium-calendar-modal-backdrop" onClick={() => setShowClientListPopup(false)}>
- <div className="premium-calendar-modal premium-clientlist-modal premium-clientlist-modal-fit" style={popupStyleFor('clientList')} onClick={(event) => event.stopPropagation()}>
+ <div className={`premium-calendar-modal premium-clientlist-modal ${clientListTab === 'upload' ? 'premium-clientlist-modal-fit' : 'premium-clientlist-modal-narrow'}`} style={popupStyleFor('clientList')} onClick={(event) => event.stopPropagation()}>
<div className="premium-clientlist-head premium-review-head">
<div>
<span className="premium-popup-step-badge">1</span>
@@ -3370,21 +3370,6 @@ export default function PremiumDashboardShell({
<button type="button" className="ghost subtle" onClick={() => setShowClientListPopup(false)}>×</button>
</div>
- <div className="premium-clientlist-summary">
- <div>
- <span>Current file</span>
- <strong>{displayedClientListName}</strong>
- </div>
- <div>
- <span>Next step</span>
- <strong>Review List</strong>
- </div>
- <div>
- <span>Target use</span>
- <strong>Upload once, review once</strong>
- </div>
- </div>
-
<div className="premium-clientlist-tabs">
<button type="button" className={clientListTab === 'custom' ? 'active' : ''} onClick={() => setClientListTab('custom')}>
Customize List
@@ -3451,9 +3436,31 @@ export default function PremiumDashboardShell({
onSelectList?.(item.id);
}}
/>
- <div>
- <strong>{item.title}</strong>
- <p>{item.meta}</p>
+ <div className="premium-clientlist-item-content">
+ <div className="premium-clientlist-item-title">
+ <strong>{item.title}</strong>
+ <span className="premium-clientlist-kind-badge">Sheet</span>
+ </div>
+ <div className="premium-clientlist-item-meta">
+ <span className="premium-clientlist-meta-count">
+ <strong>{item.leadCount || 0}</strong> contacts
+ </span>
+ {item.uploadedAt && (
+ <span className="premium-clientlist-meta-date">
+ • Uploaded {(() => {
+ const d = new Date(item.uploadedAt);
+ return isNaN(d.getTime()) ? 'recently' : d.toLocaleDateString(undefined, {
+ month: 'short',
+ day: 'numeric',
+ year: 'numeric'
+ }) + ', ' + d.toLocaleTimeString(undefined, {
+ hour: '2-digit',
+ minute: '2-digit'
+ });
+ })()}
+ </span>
+ )}
+ </div>
</div>
</label>
)) : (
@@ -3469,74 +3476,120 @@ export default function PremiumDashboardShell({
{clientListTab === 'uploaded' ? (
<div className="premium-clientlist-body">
- <div className="premium-clientlist-section-copy">
- <strong>Uploaded Files</strong>
- <p>Choose any sheet you've already uploaded.</p>
- </div>
- <div className="premium-clientlist-list">
- {effectiveUploadedLists.length ? effectiveUploadedLists.map((item) => (
- <label key={item.id} className={`premium-clientlist-item ${selectedUploadedList === item.id ? 'selected' : ''}`}>
- <input
- type="radio"
- name="uploadedList"
- checked={selectedUploadedList === item.id}
- onChange={() => {
- setSelectedUploadedList(item.id);
- onSelectList?.(item.id);
- }}
- />
- <div>
- <strong>{item.title}</strong>
- <p>{item.meta}</p>
+ <section className="premium-clientlist-pane">
+ <div className="premium-clientlist-section-copy">
+ <strong>Uploaded Files</strong>
+ <p>Choose any sheet you've already uploaded.</p>
+ </div>
+ <div className="premium-clientlist-list" style={{ maxHeight: '360px' }}>
+ {effectiveUploadedLists.length ? effectiveUploadedLists.map((item) => (
+ <label key={item.id} className={`premium-clientlist-item ${selectedUploadedList === item.id ? 'selected' : ''}`}>
+ <input
+ type="radio"
+ name="uploadedList"
+ checked={selectedUploadedList === item.id}
+ onChange={() => {
+ setSelectedUploadedList(item.id);
+ onSelectList?.(item.id);
+ }}
+ />
+ <div className="premium-clientlist-item-content">
+ <div className="premium-clientlist-item-title">
+ <strong>{item.title}</strong>
+ <span className="premium-clientlist-kind-badge">Sheet</span>
+ </div>
+ <div className="premium-clientlist-item-meta">
+ <span className="premium-clientlist-meta-count">
+ <strong>{item.leadCount || 0}</strong> contacts
+ </span>
+ {item.uploadedAt && (
+ <span className="premium-clientlist-meta-date">
+ • Uploaded {(() => {
+ const d = new Date(item.uploadedAt);
+ return isNaN(d.getTime()) ? 'recently' : d.toLocaleDateString(undefined, {
+ month: 'short',
+ day: 'numeric',
+ year: 'numeric'
+ }) + ', ' + d.toLocaleTimeString(undefined, {
+ hour: '2-digit',
+ minute: '2-digit'
+ });
+ })()}
+ </span>
+ )}
+ </div>
+ </div>
+ </label>
+ )) : (
+ <div className="premium-clientlist-empty">
+ <strong>No uploaded lists yet.</strong>
+ <p>Upload a file first, and the file name, date, time, and contact count will appear here.</p>
</div>
- </label>
- )) : (
- <div className="premium-clientlist-empty">
- <strong>No uploaded lists yet.</strong>
- <p>Upload a file first, and the file name, date, time, and contact count will appear here.</p>
- </div>
- )}
- </div>
+ )}
+ </div>
+ </section>
</div>
) : null}
{clientListTab === 'custom' ? (
<div className="premium-clientlist-body">
- <div className="premium-clientlist-section-copy">
- <strong>Customize List</strong>
- <p>Use a client list created in your workspace.</p>
- </div>
- <div className="premium-clientlist-list">
- {effectiveCustomLists.length ? effectiveCustomLists.map((item) => (
- <label key={item.id} className={`premium-clientlist-item ${selectedCustomList === item.id ? 'selected' : ''}`}>
- <input
- type="radio"
- name="customList"
- checked={selectedCustomList === item.id}
- onChange={() => {
- setSelectedCustomList(item.id);
- onSelectList?.(item.id);
- }}
- />
- <div>
- <div className="premium-clientlist-item-title">
- <strong>{item.title}</strong>
- <span className="premium-clientlist-kind-badge">Custom</span>
+ <section className="premium-clientlist-pane">
+ <div className="premium-clientlist-section-copy">
+ <strong>Customize List</strong>
+ <p>Use a client list created in your workspace.</p>
+ </div>
+ <div className="premium-clientlist-list" style={{ maxHeight: '360px' }}>
+ {effectiveCustomLists.length ? effectiveCustomLists.map((item) => (
+ <label key={item.id} className={`premium-clientlist-item ${selectedCustomList === item.id ? 'selected' : ''}`}>
+ <input
+ type="radio"
+ name="customList"
+ checked={selectedCustomList === item.id}
+ onChange={() => {
+ setSelectedCustomList(item.id);
+ onSelectList?.(item.id);
+ }}
+ />
+ <div className="premium-clientlist-item-content">
+ <div className="premium-clientlist-item-title">
+ <strong>{item.title}</strong>
+ <span className="premium-clientlist-kind-badge">Custom</span>
+ </div>
+ <div className="premium-clientlist-item-meta">
+ <span className="premium-clientlist-meta-count">
+ <strong>{item.leadCount || 0}</strong> contacts
+ </span>
+ {item.uploadedAt && (
+ <span className="premium-clientlist-meta-date">
+ • Saved {(() => {
+ const d = new Date(item.uploadedAt);
+ return isNaN(d.getTime()) ? 'recently' : d.toLocaleDateString(undefined, {
+ month: 'short',
+ day: 'numeric',
+ year: 'numeric'
+ }) + ', ' + d.toLocaleTimeString(undefined, {
+ hour: '2-digit',
+ minute: '2-digit'
+ });
+ })()}
+ </span>
+ )}
+ {item.sourceFile && item.sourceFile !== item.title && (
+ <span className="premium-clientlist-meta-file">
+ • File: {item.sourceFile}
+ </span>
+ )}
+ </div>
</div>
- <p>{item.meta}</p>
- <small className="premium-clientlist-item-detail">
- {item.uploadedAt ? `Saved ${item.uploadedAt}` : 'Saved custom list'}
- {item.sourceFile ? ` • File: ${item.sourceFile}` : ''}
- </small>
+ </label>
+ )) : (
+ <div className="premium-clientlist-empty">
+ <strong>No saved client lists yet.</strong>
+ <p>Your stored files will show up here with their details and contact count.</p>
</div>
- </label>
- )) : (
- <div className="premium-clientlist-empty">
- <strong>No saved client lists yet.</strong>
- <p>Your stored files will show up here with their details and contact count.</p>
- </div>
- )}
- </div>
+ )}
+ </div>
+ </section>
</div>
) : null}