Skip to content

[codex] Batch NATS live message rendering - #6349

Closed
onenewcode wants to merge 7 commits into
t8y2:mainfrom
onenewcode:nats
Closed

[codex] Batch NATS live message rendering#6349
onenewcode wants to merge 7 commits into
t8y2:mainfrom
onenewcode:nats

Conversation

@onenewcode

Copy link
Copy Markdown
Contributor

What changed

  • Batch incoming Core NATS subscription messages until the next animation frame.
  • Bound pending queues while a window is suspended and clear them during feed cleanup.
  • Render each message through a stable card component so older payloads are not decoded again for later events.

Why

The subscribe view copied and reformatted its entire 1,000-message buffer for every native message event.

Impact

Busy NATS subjects keep the newest-message-wins behaviour and accurate counters while limiting reactive list updates to the browser frame rate.

Validation

  • pnpm test
  • pnpm typecheck
  • pnpm build
  • pnpm exec vitest run apps/desktop/src/components/mq/__tests__/NatsMessagesPanel.spec.ts apps/desktop/src/components/mq/__tests__/NatsMessageDetail.spec.ts apps/desktop/src/components/mq/__tests__/NatsJetStreamPanel.spec.ts apps/desktop/src/lib/nats/__tests__/messagePresentation.spec.ts
  • pnpm exec oxlint --vue-plugin ...

Restructure NATS into the shared MQ admin toolbar/tabs/content interaction,
split subject/publish/message/JetStream panels, label the sidebar as NATS
Console instead of Topics, and route user-facing copy through nats/mqAdmin
locale keys.
Split Core NATS into dedicated publish and multi-subscription tabs, collapse
JetStream into a single list-to-detail workspace (overview/messages/consumers)
aligned with NUI, restore Kafka send-first messages layout, and clean up i18n.
@github-actions github-actions Bot added area/multiple Touches more than three repository areas dependencies/backend Adds a backend dependency ui-change Changes user-visible interface, text, or visual assets labels Aug 15, 2026
@onenewcode

Copy link
Copy Markdown
Contributor Author

Superseded by #6357, which is rebased onto the current main branch and contains the completed NATS integration hardening.

@onenewcode onenewcode closed this Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/multiple Touches more than three repository areas dependencies/backend Adds a backend dependency ui-change Changes user-visible interface, text, or visual assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant