Skip to main content

UserActivityPanel

packages/core/components/organisms/UserActivityPanel.js · Tier: organism · Module: core · Rendering: Server Component (async)

Purpose​

The system-trail panel embedded in a citizen/worker detail view: a module selector (one enabled module at a time), event-type and date-range filters, a full-width event list and a paginator — all scoped to a fixed responsibleUserId. It centralises module resolution, fetching and pager-href building so both detail pages stay thin.

Props​

PropTypeRequiredDefaultDescription
userIdstringyes—The fixed responsible user.
basePathstringyes—Lang-relative base path for pager hrefs.
spRecord<string,string>yes—Resolved search params (module, eventType, from, to, page).
accessTokenstringyes—Bearer token for listSystemTrails.
langstringyes—Locale for row timestamps.
sectionTitlestringno—Heading inside the list container.
eventLabelsobjectyes—admin.events labels.
pagerLabelsobjectyes—admin.common pager labels.

Behaviour​

Resolves the module (falling back to core), snaps the date range to ISO bounds, fetches listSystemTrails(...), and composes SystemTrailFilters + SystemTrailList + LocalizedPager with a shared href builder.

Composition​

  • Uses: molecules/core/SystemTrailFilters, organisms/core/SystemTrailList, molecules/core/LocalizedPager, listSystemTrails + trail config, dateToIso.
  • Used by: organisms/core/UserDetailView (as its events section).

Internationalisation​

Labels via eventLabels / pagerLabels.

Accessibility​

Delegates to its composed filter/list/pager molecules.

organisms/core/UserDetailView, organisms/core/SystemTrailList, molecules/core/SystemTrailFilters.