Feat/1040 1176 1173 1175 lifecycle notifications devices impersonation - #1229
Merged
Conversation
…ices, and impersonation safeguards Implements four platform security, governance, and asset lifecycle capabilities: - StellaBridge#1040 Asset Lifecycle State Timeline: asset state transition recording, history querying, stats, and frontend UI. - StellaBridge#1176 Permission Change Notifications: notification creation, user inbox list, status tracking, and dispatching. - StellaBridge#1173 Session Device Management: session device registration, active session list, revocation, and device trust toggles. - StellaBridge#1175 Admin Impersonation Safeguards: time-bounded admin impersonation sessions with ticket justification, audit logging, auto-expiration, and frontend safeguards. Includes Knex database migrations, Fastify routes, backend services, Vitest unit tests, React UI pages, and operational handbooks. Closes StellaBridge#1040 Closes StellaBridge#1176 Closes StellaBridge#1173 Closes StellaBridge#1175
… RollbackInfo cast
|
@DevNetlife Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…notifications-devices-impersonation
…cet typing, and JSX unknown short-circuit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request implements four platform governance, security, and asset lifecycle tracking features:
INITIALIZED,PROVISIONED,ACTIVE,PAUSED,DEPRECATED,RETIRED), timeline query APIs, aggregate state metrics, and frontend visualization.Detailed Changes
Backend Services & Models
backend/src/database/migrations/: Added database schema migrations:20260829000010_asset_lifecycle_state_timeline.ts: Createdasset_lifecycle_timelinetable.20260829000020_permission_change_notifications.ts: Createdpermission_change_notificationstable.20260829000030_session_device_management.ts: Createduser_session_devicestable.20260829000040_admin_impersonation_safeguards.ts: Createdadmin_impersonation_sessionsandadmin_impersonation_audit_logstables.backend/src/services/: Added domain services:assetLifecycleTimeline.service.tspermissionChangeNotification.service.tssessionDevice.service.tsadminImpersonation.service.tsbackend/src/api/routes/: Created API route modules and registered them in route groups:assetLifecycleTimeline.routes.ts(registered inasset-routes.ts)permissionChangeNotification.routes.ts(registered inadmin-routes.ts)sessionDevice.routes.ts(registered inutility-routes.ts)adminImpersonation.routes.ts(registered inadmin-routes.ts)Frontend Interface & Navigation
frontend/src/types/index.ts: Added TypeScript interfaces for all four features.frontend/src/services/api.ts: Added client API integration functions.frontend/src/pages/: Built user interface components:AssetLifecycleTimeline.tsxPermissionChangeNotifications.tsxSessionDeviceManagement.tsxadmin/AdminImpersonationSafeguards.tsxfrontend/src/App.tsx&navigation.ts: Registered routes and updated navigation menus.Documentation
docs/asset-lifecycle-timeline.mddocs/permission-change-notifications.mddocs/session-device-management.mddocs/admin-impersonation-safeguards.mdVerification & Testing
21/21tests passing).backend(tsc) andfrontend(tsc && vite build).Closes Issues