feat(ui): synchronize management views with native Bun websockets - #103
Merged
Merged
Conversation
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Management views now share a native Bun WebSocket connection and subscribe only to the topics they display. Concurrent host, user, profile-image, permission, and settings changes trigger live refreshes; access-log subscriptions stop on page exit, historical pagination, and hidden tabs. Overview shows the actual WebSocket connection status.
Realtime code follows the Client/Server/Helpers/Types structure used in TanstackDummy. Application changes publish events locally and through Redis. Controller-backed streams sample only while subscribed. Authentication, origin checks, bounded reads, backpressure, stale-query protection, and teardown are covered by tests.
Table filters apply automatically with inline Reset controls, actor-user and certificate-name dropdowns, and an expiry calendar. Identical access-log captures reuse bounded snapshots, and development reloads reuse the database pool.
Related issue
Fixes #102
Type of change
Testing
bun run test:ts: 690 passed, 124 environment-dependent integration tests skipped locally.cargo test --manifest-path controller/Cargo.toml: 175 passed.bun run typecheck,bun run lint,bun run format:check,bun run build:web: passed.Checklist
Breaking changes
None. No new public port, runtime credentials, or dependencies.
Screenshots
No new screenshot attached. UI behavior is covered by component and WebSocket lifecycle tests.