@@ -19,7 +19,6 @@ import BuildingIcon from '@cardstack/boxel-icons/building';
19
19
import ChartBarPopular from ' @cardstack/boxel-icons/chart-bar-popular' ;
20
20
import AccountHeader from ' ../components/account-header' ;
21
21
import { WebsiteField } from ' ../website' ;
22
- import { ContactRow } from ' ../components/contact-row' ;
23
22
import TrendingUp from ' @cardstack/boxel-icons/trending-up' ;
24
23
import ContactIcon from ' @cardstack/boxel-icons/contact' ;
25
24
import CalendarExclamation from ' @cardstack/boxel-icons/calendar-exclamation' ;
@@ -34,6 +33,7 @@ import Handshake from '@cardstack/boxel-icons/handshake';
34
33
import ClockX from ' @cardstack/boxel-icons/clock-x' ;
35
34
import ClockUp from ' @cardstack/boxel-icons/clock-up' ;
36
35
import Contract from ' @cardstack/boxel-icons/contract' ;
36
+ import { Pill } from ' @cardstack/boxel-ui/components' ;
37
37
38
38
export const urgencyTagValues = [
39
39
{
@@ -189,24 +189,20 @@ class IsolatedTemplate extends Component<typeof Account> {
189
189
<: content >
190
190
<div class =' description content-container' >
191
191
{{#if this . hasContacts }}
192
- {{#if @ model.primaryContact }}
193
- <ContactRow
194
- @ userID ={{@ model.primaryContact.id }}
195
- @ name ={{@ model.primaryContact.name }}
196
- @ thumbnailURL ={{@ model.primaryContact.thumbnailURL }}
197
- @ tagLabel =' primary'
192
+ <div class =' primary-contact-group' >
193
+ <@ fields.primaryContact
194
+ @ format =' atom'
195
+ @ displayContainer ={{ false }}
198
196
/>
199
- {{/if }}
200
- {{#each @ model.contacts as | contact | }}
201
- {{#if contact }}
202
- <ContactRow
203
- @ userID ={{contact.id }}
204
- @ name ={{contact.name }}
205
- @ thumbnailURL ={{contact.thumbnailURL }}
206
- @ tagLabel ={{contact.position }}
207
- />
208
- {{/if }}
209
- {{/each }}
197
+ <Pill class =' primary-tag' @ pillBackgroundColor =' #e8e8e8' >
198
+ Primary
199
+ </Pill >
200
+ </div >
201
+
202
+ <@ fields.contacts
203
+ @ format =' atom'
204
+ @ displayContainer ={{ false }}
205
+ />
210
206
{{else }}
211
207
<div class =' default-value' >
212
208
Missing Contacts
@@ -306,6 +302,18 @@ class IsolatedTemplate extends Component<typeof Account> {
306
302
width : fit-content ;
307
303
display : inline-block ;
308
304
}
305
+ .primary-contact-group {
306
+ display : inline-flex ;
307
+ align-items : start ;
308
+ gap : var (--boxel-sp-xs );
309
+ }
310
+ .primary-tag {
311
+ --pill-font-weight : 400 ;
312
+ --pill-padding : var (--boxel-sp-6xs ) var (--boxel-sp-xxs );
313
+ --pill-font : 400 var (--boxel-font-xs );
314
+ --pill-border : none ;
315
+ flex-shrink : 0 ;
316
+ }
309
317
.description {
310
318
font : 500 var (--boxel-font-sm );
311
319
letter-spacing : var (--boxel-lsp-xs );
0 commit comments