@asd20/ui-next 2.12.6 → 2.12.8
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.12.8](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.12.7...ui-next-v2.12.8) (2026-06-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Increase bottom margin on wayfinding messages ([724b4f7](https://github.com/academydistrict20/asd20-ui-next/commit/724b4f7d3e55340f4987c73a34cf661e64cce920))
|
|
9
|
+
|
|
10
|
+
## [2.12.7](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.12.6...ui-next-v2.12.7) (2026-06-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* fix font size for bullets in page notifications; fix person list spacing when description is not present ([e92b5c5](https://github.com/academydistrict20/asd20-ui-next/commit/e92b5c525899d26f6fd97d3872f79f69e727fbe6))
|
|
16
|
+
|
|
3
17
|
## [2.12.6](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.12.5...ui-next-v2.12.6) (2026-06-02)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -197,6 +197,15 @@ export default {
|
|
|
197
197
|
white-space: normal;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
.asd20-notification__description p,
|
|
201
|
+
.asd20-notification__description ul,
|
|
202
|
+
.asd20-notification__description ol,
|
|
203
|
+
.asd20-notification__description li,
|
|
204
|
+
.asd20-notification__description div,
|
|
205
|
+
.asd20-notification__description span {
|
|
206
|
+
font-size: inherit !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
200
209
|
&__dismiss {
|
|
201
210
|
position: absolute !important;
|
|
202
211
|
top: 0;
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
export default function mapPeopleToListItems(people) {
|
|
2
2
|
if (people) {
|
|
3
3
|
return people.map(p => {
|
|
4
|
+
const jobTitles = Array.isArray(p.jobTitles)
|
|
5
|
+
? p.jobTitles.filter(Boolean)
|
|
6
|
+
: p.jobTitles
|
|
7
|
+
? [p.jobTitles]
|
|
8
|
+
: []
|
|
9
|
+
const formattedJobTitles = jobTitles.map(t =>
|
|
10
|
+
t.replace('Teacher: ', 'Teacher, ').replace(/.+: /g, '')
|
|
11
|
+
)
|
|
12
|
+
const location = p.office || p.organization || ''
|
|
13
|
+
const descriptionParts =
|
|
14
|
+
formattedJobTitles.length > 0
|
|
15
|
+
? [
|
|
16
|
+
formattedJobTitles.join(', '),
|
|
17
|
+
location ? `<small>${location}</small>` : '',
|
|
18
|
+
]
|
|
19
|
+
: [p.title || '', location ? `<small>${location}</small>` : '']
|
|
20
|
+
const description = descriptionParts.filter(Boolean).join('<br>')
|
|
21
|
+
|
|
4
22
|
return {
|
|
5
23
|
person: p,
|
|
6
24
|
id: p.id || p.employeeId || p.profileId || p.userId,
|
|
@@ -11,34 +29,25 @@ export default function mapPeopleToListItems(people) {
|
|
|
11
29
|
.split(' ')
|
|
12
30
|
.map(n => n[0])
|
|
13
31
|
.join(''),
|
|
14
|
-
description
|
|
15
|
-
? `${p.jobTitles
|
|
16
|
-
.map(t =>
|
|
17
|
-
t.replace('Teacher: ', 'Teacher, ').replace(/.+: /g, '')
|
|
18
|
-
)
|
|
19
|
-
.join(', ')}<br><small>${p.office || p.organization}</small>`
|
|
20
|
-
: p.title,
|
|
32
|
+
description,
|
|
21
33
|
badge: '',
|
|
22
34
|
email: p.email,
|
|
23
35
|
condensed: false,
|
|
24
36
|
actionable: true,
|
|
25
37
|
bordered: true,
|
|
26
38
|
checked: false,
|
|
27
|
-
alignTop:
|
|
39
|
+
alignTop: !!description,
|
|
28
40
|
tags: [],
|
|
29
41
|
thumbnail: p.thumbnail || p.photoUrl,
|
|
30
42
|
// description: `${p.biography.slice(0, 100)}...`,
|
|
31
43
|
biography: p.biography,
|
|
32
|
-
office:
|
|
44
|
+
office: location,
|
|
33
45
|
workPhone: p.title === 'Teacher' ? '' : p.phone,
|
|
34
|
-
jobTitles: [
|
|
35
|
-
jobTypes:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)
|
|
40
|
-
.join(', ')}, ${p.office || p.organization}`
|
|
41
|
-
: p.title,
|
|
46
|
+
jobTitles: [jobTitles],
|
|
47
|
+
jobTypes:
|
|
48
|
+
formattedJobTitles.length > 0
|
|
49
|
+
? [formattedJobTitles.join(', '), location].filter(Boolean).join(', ')
|
|
50
|
+
: p.title,
|
|
42
51
|
}
|
|
43
52
|
})
|
|
44
53
|
}
|