A new read-only React sample is ready for the PnP SharePoint Framework webparts repository:
- Pull request: https://github.com/pnp/sp-dev-fx-webparts/pull/6488
- Sample:
samples/react-governance-site-lifecycle-dashboard/
The web part reads bounded SharePoint REST site-inventory sources with GET only. It surfaces site title and URL, template, owners, hub association, sharing mode, storage or usage, last activity, review and expiration dates, and deterministic inactive or needs-review signals.
The sample validates same-tenant HTTPS REST URLs, preserves managed paths, validates OData next links, defensively parses malformed rows, and limits reads to four sources, 50 rows per page, five pages, and 200 items per source. It keeps empty, partial, permission, throttling, retry, and generic error states visible.
Lifecycle classification uses an explicit reference date, so tests and reviews are deterministic. The UI is responsive, keyboard-usable, semantic, and does not rely on color alone for status.
This is a governance review aid—not an administration tool. It cannot create, update, delete, permission, hub, site, lifecycle, or content data. It requests no Graph permissions and stores no credentials or secrets.
Local verification completed:
- 7 deterministic tests passed.
- Read-only verifier passed.
- SPFx lint, TypeScript, Sass, and webpack validation passed.
- Production bundle and
.sppkgpackaging passed. - Gallery metadata, configuration, scope, whitespace, and secret-marker checks passed.
- Generated outputs were removed before commit.
Could someone with a SharePoint Online tenant please validate representative site-inventory endpoints and real data, including managed paths, missing fields, inactive sites, due or upcoming review dates, hub associations, sharing/storage fields, paging bounds, empty and malformed data, partial failures, limited permissions, throttling, keyboard access, and responsive layout? Real tenant screenshots would be especially helpful; none are fabricated locally.
Thank you for helping validate and improve this community sample.
Top comments (0)