feat: add custom toolbar actions and logger window ui tweaks - #7
Merged
yyjim merged 9 commits intoFeb 26, 2026
Merged
Conversation
- Introduce CBLoggerWindow.Action struct (title + handler) for user-defined toolbar buttons - Rename CBLoggerWindow.Action enum to Event; onAction callback becomes onEvent - Remove hardcoded RESET button; callers can now pass any actions via init(actions:) - Custom actions render between built-in CLEAR and HIDE buttons in the toolbar - Update demo to pass RESET as a CBLoggerWindow.Action Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…olbar Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ChiaoteNi
approved these changes
Feb 24, 2026
ohyes1h
approved these changes
Feb 24, 2026
Member
yyjim
added a commit
that referenced
this pull request
Feb 26, 2026
* feat: add custom toolbar actions to CBLoggerWindow - Introduce CBLoggerWindow.Action struct (title + handler) for user-defined toolbar buttons - Rename CBLoggerWindow.Action enum to Event; onAction callback becomes onEvent - Remove hardcoded RESET button; callers can now pass any actions via init(actions:) - Custom actions render between built-in CLEAR and HIDE buttons in the toolbar - Update demo to pass RESET as a CBLoggerWindow.Action Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * style: replace HIDE button with macOS-style close button in logger toolbar Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * style: style logger toolbar buttons with macOS traffic light design Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * style: reduce cell vertical padding for more compact log view Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: support passing params when logging events in demo Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * style: replace clear button icon with capsule label, expand hit areas Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: add SPAM action to demo for testing log volume Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * style: fix SwiftLint vertical whitespace violations Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: document CBLoggerWindow custom toolbar actions in README Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Description
CBLoggerWindow.ActionAPI to support custom toolbar buttons in the logger consoleTest Plan
Checklist
Screenshots
Simulator.Screen.Recording.-.iPhone.17.Pro.Max.-.2026-02-20.at.11.19.10.mov
Simulator.Screen.Recording.-.iPhone.17.Pro.Max.-.2026-02-23.at.21.49.48.mov