Skip to content

feat(ui): message-only logs view (m) - #28

Merged
ErfanY merged 1 commit into
mainfrom
feat/logs-message-only
Jun 29, 2026
Merged

feat(ui): message-only logs view (m)#28
ErfanY merged 1 commit into
mainfrom
feat/logs-message-only

Conversation

@ErfanY

@ErfanY ErfanY commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

In multi-pod log streams each line is [ns/pod/container] <timestamp> <message>. The source prefix + timestamp can eat half the width and push the actual message off-screen (reported from a real orbit-backend deployment stream).

m in the logs pane now toggles a message-only view that hides both the [source] prefix and the timestamp, keeping just the message.

full:          [orbit-production/orbit-backend-deployment-65495400b-4n3q/backend] 2026-05-26T22:41:01.812Z RequestMappingHandlerMapping mapped …
message-only:  RequestMappingHandlerMapping mapped …

Notes

  • Display-only transform returning a borrowed slice (message is a contiguous tail) → allocation-free on the render hot path; applied in the non-wrap viewport window, the wrap-mode body, and the width calc.
  • Search/scroll unaffected — line indices unchanged, and lines are still searchable by source/time even when hidden (only the display is trimmed).
  • Logs title shows view: full | message-only.

Testing

  • make validate green (112 tests + release build)
  • tests: strip logic (prefix + RFC3339 timestamp + edge cases); render toggle hides prefix/timestamp, keeps message

🤖 Generated with Claude Code

In multi-pod log streams each line is `[ns/pod/container] <timestamp> <message>`,
and the prefix + timestamp can eat half the width, pushing the actual message
off-screen. `m` in the logs pane toggles a message-only view that strips both,
keeping just the message.

- Display-only transform (`display_log_line`) returning a borrowed slice — the
  message is a contiguous tail, so it's allocation-free on the render hot path;
  applied in the non-wrap viewport window, the wrap-mode body, and the width calc.
- Search/scroll are unaffected (line indices unchanged; still searchable by
  source/time — only the display is trimmed).
- Logs title shows `view: full|message-only`.

Tests: strip logic (prefix + RFC3339 timestamp, with edge cases) and a
render toggle test (prefix/timestamp hidden, message kept).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ErfanY
ErfanY merged commit 8c3dc74 into main Jun 29, 2026
1 check passed
@ErfanY
ErfanY deleted the feat/logs-message-only branch June 29, 2026 23:20
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