Skip to content

feat(activity-hub): integrate staff portal with activity service#349

Draft
scotwells wants to merge 4 commits intomainfrom
feat/activity-ui-integration
Draft

feat(activity-hub): integrate staff portal with activity service#349
scotwells wants to merge 4 commits intomainfrom
feat/activity-ui-integration

Conversation

@scotwells
Copy link
Contributor

Summary

Integrates the staff portal with the new activity service, enabling staff to monitor and investigate customer activity across the platform.

  • Tenant navigation: Click any tenant name in the activity list to jump directly to that organization, project, or user
  • Advanced filtering: Filter activity by response code, resource type, or API group to quickly find relevant events
  • Cleaner results: System events are filtered out by default, surfacing only customer-initiated actions
  • Layout improvements: Fixed sidebar overflow issues for better usability

Test plan

  • Click a tenant name in the activity list and verify navigation to the correct customer page
  • Use filters to narrow down activity (e.g., find all failed DNS zone updates)
  • Confirm system user events are excluded from results
  • Verify no layout clipping when sidebar is open

🤖 Generated with Claude Code

scotwells and others added 3 commits February 26, 2026 09:40
…ration

- Fix policy detail page to pass empty context object to staffResourceLinkResolver
  for type safety (policy preview lacks tenant context)
- Fix changeSource filter parsing to properly handle 'all' value in addition to
  'human' and 'system'
- Remove duplicate EffectiveTimeRange type definition by re-exporting from
  @miloapis/activity-ui

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add Activity Hub section to staff portal with full Activity UI integration:

- New Activity Hub routes with tabbed navigation (Feed, Audit Logs, Events, Policies)
- Activity client server-side integration for API queries
- Link resolvers for navigating to Datum resources from activity data
- Filter and share utilities for Activity components
- Updated package.json with @datum-cloud/activity-ui dependency
- Added .npmrc for GitHub Packages registry access

The Activity Hub provides operators visibility into cluster activities,
audit logs, and events using the Activity system's queryable data store.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ced filters

Add tenant column with navigation links to organization/project/user pages,
and expand filtering capabilities with response code, resource type, and
API group filters. Migrate activity client from server-side to client-side
for better proxy integration.

- Add Tenant column with clickable links based on scope type annotations
- Add Response Code filter (200, 201, 204, 400, 401, 403, 404, 409, 500)
- Add Resource Type filter (DNS zones, records, HTTP proxies, etc.)
- Add API Group filter (dns.miloapis.com, resourcemanager.miloapis.com)
- Exclude system users and activity API group from results by default
- Add default action filter for modification-only operations
- Add NavTabs component for route-based tab navigation
- Add CodeEditorDiff component for JSON diff visualization
- Fix sidebar overflow issues in layout

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@scotwells scotwells force-pushed the feat/activity-ui-integration branch 4 times, most recently from 758a472 to 3e7f0d8 Compare February 28, 2026 01:11
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@scotwells scotwells force-pushed the feat/activity-ui-integration branch from 3e7f0d8 to bba3d97 Compare February 28, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant