Skip to content

feat(ui): synchronize management views with native Bun websockets - #103

Merged
RentnerKev merged 1 commit into
mainfrom
feat/live-management-ui
Sep 13, 2026
Merged

RentnerKev merged 1 commit into
mainfrom
feat/live-management-ui

Conversation

@RentnerKev

Copy link
Copy Markdown
Owner

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

  • Bug fix
  • New feature
  • Refactoring
  • Documentation

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.
  • Native Bun WebSocket tests use temporary loopback ports and verify authorization, origin rejection, timeout release, updates, and teardown.
  • Client regressions cover hidden tabs, shared subscriptions, old-filter responses, permission revalidation, and late HTTP responses.

Checklist

  • I tested the relevant functionality.
  • Existing tests pass in the configured local environment.
  • I added or updated tests where appropriate.
  • This PR does not include secrets, credentials, production data, or private certificates/keys.
  • I updated documentation where necessary.
  • I linked the relevant issue.

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.

@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 6d42c02e-a988-428d-9e49-8afb6987d0bb


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Improvements or additions to documentation area: proxy Proxy host configuration and request forwarding. area: runtime OpenResty and privileged controller runtime behavior. area: certificates Certificates, ACME, trusted CAs, and TLS material. area: database Database schema, migrations, and persistence. area: ui Web interface components, routes, styling, and localization. area: docker Docker images, Compose configuration, and deployment. labels Sep 13, 2026
@RentnerKev
RentnerKev merged commit bcf1ad4 into main Sep 13, 2026
19 checks passed
@RentnerKev
RentnerKev deleted the feat/live-management-ui branch September 13, 2026 13:54
@RentnerKev RentnerKev added this to the v1.0.0-alpha.5 milestone Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: certificates Certificates, ACME, trusted CAs, and TLS material. area: database Database schema, migrations, and persistence. area: docker Docker images, Compose configuration, and deployment. area: proxy Proxy host configuration and request forwarding. area: runtime OpenResty and privileged controller runtime behavior. area: ui Web interface components, routes, styling, and localization. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): add native Bun realtime updates and automatic table filters

1 participant