@controleonline/ui-customers 1.0.83 → 1.0.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@controleonline/ui-customers",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "author": "ControleOnline",
5
5
  "description": "ControleOnline customers Quasar UI Component",
6
6
  "license": "MIT",
@@ -488,10 +488,11 @@ const ClientDetails = ({ route, navigation }) => {
488
488
  imageUrl={clientAvatarImageUrl}
489
489
  name={String(client?.name || '').replace(/\s+/g, ' ').trim()}
490
490
  size={64}
491
- backgroundColor={themeColors.buttonBackground}
492
- borderColor={themeColors.buttonText}
493
- borderWidth={3}
494
- textColor={themeColors.buttonText}
491
+ backgroundColor={detailsStyles.listAvatarBrand.backgroundColor}
492
+ borderColor={detailsStyles.listAvatarBrand.borderColor}
493
+ borderWidth={1}
494
+ textColor={detailsStyles.listAvatarText.color}
495
+ iconColor={detailsStyles.listAvatarText.color}
495
496
  useGravatar={false}
496
497
  usePeopleImage={false}
497
498
  />
@@ -51,6 +51,9 @@ export const buildEmployeesContext = routeParams => {
51
51
  // whatever the link type, until a concrete link type is picked in the filter.
52
52
  peopleType: 'F',
53
53
  anyLinkType: true,
54
+ // List people_link rows where company_id = currentCompany (same source as
55
+ // My Company Details), not the global /people visibility wall.
56
+ listSource: 'company-links',
54
57
  detailsRouteParams: (person, selectedLinkType) => ({
55
58
  employeeId: normalizeEntityId(person?.id ?? person?.['@id']),
56
59
  contextKey: selectedLinkType === 'all' ? '' : String(selectedLinkType || ''),
@@ -10,6 +10,8 @@ const resolvePalette = themeColors => ({
10
10
  cardBorder: themeColors.cardBorder,
11
11
  cardText: themeColors.cardText,
12
12
  cardIcon: themeColors.cardIcon,
13
+ cardIconBackground: themeColors.cardIconBackground || themeColors.cardBackground,
14
+ cardIconColor: themeColors.cardIconColor || themeColors.cardIcon || themeColors.listItemText,
13
15
  cardShadow: themeColors.cardShadow,
14
16
  listItemBackground: themeColors.listItemBackground,
15
17
  listItemText: themeColors.listItemText,
@@ -324,12 +326,12 @@ export const createDetailsStyles = themeColors => {
324
326
  },
325
327
 
326
328
  listAvatarBrand: {
327
- backgroundColor: palette.buttonBackground,
328
- borderColor: palette.buttonText,
329
+ backgroundColor: palette.cardIconBackground,
330
+ borderColor: palette.cardBorder || palette.cardIconBackground,
329
331
  },
330
332
 
331
333
  listAvatarText: {
332
- color: palette.buttonText,
334
+ color: palette.cardIconColor,
333
335
  },
334
336
 
335
337
  locationButton: {
@@ -31,6 +31,7 @@ describe('employees page context', () => {
31
31
  expect(context.modalTitleByType.courier).toBe('Cadastro de Entregador')
32
32
  expect(context.peopleType).toBe('F')
33
33
  expect(context.anyLinkType).toBe(true)
34
+ expect(context.listSource).toBe('company-links')
34
35
  })
35
36
 
36
37
  it('keeps courier as the default physical-person role when selected directly', () => {