feat: Add configurable card design options and enhance person details in organization chart

This commit is contained in:
Torsten Brendgen
2026-08-24 22:50:06 +02:00
parent 7f741caa4b
commit 983a4af63c
12 changed files with 191 additions and 35 deletions
+9 -1
View File
@@ -47,9 +47,17 @@ assert(component.indexOf('peopleCountLabel') < 0 && component.indexOf('&#xE70D;'
component.indexOf('&#xE70E;') >= 0, 'Header count removal or modern toggle icons are missing.');
assert(styles.indexOf('.tree li:only-child { padding-top: 0; }') >= 0,
'Single-child connector spacing must remain continuous.');
assert(component.indexOf('getMaximumVisibleBreadth') >= 0 && component.indexOf('cardWidth') >= 0 &&
assert(component.indexOf('getMaximumVisibleBreadth') >= 0 && component.indexOf('getBreadthCardWidth') >= 0 &&
component.indexOf('maximumBreadth === 4') >= 0 && component.indexOf('cardWidth') >= 0 &&
styles.indexOf('.compactTree') >= 0 && styles.indexOf('.denseTree') >= 0,
'Responsive organization-chart card sizing is missing.');
assert(component.indexOf('expandedDetails') >= 0 && component.indexOf('toggleDetails') >= 0 &&
component.indexOf('renderDetails') >= 0 && component.indexOf("className={styles.cardContent}") >= 0,
'Teams-style expandable person cards are missing.');
assert(webPart.indexOf("PropertyPaneTextField('cardBackgroundColor'") >= 0 &&
webPart.indexOf("PropertyPaneTextField('cardAccentColor'") >= 0 &&
webPart.indexOf("PropertyPaneToggle('roundedCards'") >= 0,
'Configurable card design options are missing.');
assert(component.indexOf("role='presentation'") >= 0, 'Decorative profile images must be hidden from assistive technology.');
['bodyText', 'neutralSecondary', 'neutralLighter', 'themePrimary', 'neutralTertiary', 'white', 'neutralLight', 'focusBorder', 'errorText']
.forEach(function(slot) {