Skip to content

feat: add custom toolbar actions and logger window ui tweaks - #7

Merged
yyjim merged 9 commits into
feat/project-modernization_umbrellafrom
feat/logger-window-custom-actions
Feb 26, 2026
Merged

feat: add custom toolbar actions and logger window ui tweaks#7
yyjim merged 9 commits into
feat/project-modernization_umbrellafrom
feat/logger-window-custom-actions

Conversation

@yyjim

@yyjim yyjim commented Feb 23, 2026

Copy link
Copy Markdown
Member

Description

  • Added CBLoggerWindow.Action API to support custom toolbar buttons in the logger console
  • Replaced the HIDE button with a macOS-style close button (red traffic light circle with xmark)
  • Replaced the eraser icon on the clear button with a yellow capsule labeled "CLEAR" for better usability and larger tap area
  • Reduced cell vertical padding for a more compact log list
  • Updated demo to support passing a params dictionary when logging events, with SPAM and RESET custom actions
  • Updated README with a dedicated section documenting the custom toolbar actions API

Test Plan

  • Build and run the Demo app
  • Verify the floating logger button appears and can be dragged to reposition
  • Tap the logger to open the console — confirm close (red) and CLEAR (yellow capsule) buttons appear in the toolbar
  • Tap CLEAR and confirm logs are cleared
  • Tap SPAM and confirm 10 log entries are appended
  • Tap RESET and confirm logs reset to the initial state
  • Confirm tapping the close button dismisses the console

Checklist

  • Demo project can be built

Screenshots

Before After
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

yyjim and others added 8 commits February 23, 2026 18:51
- 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>
@yyjim yyjim self-assigned this Feb 23, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yyjim yyjim changed the title feat: add custom toolbar actions and logger window polish feat: add custom toolbar actions and logger window ui tweaks Feb 23, 2026

@peteranny peteranny left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG MUCH PRETTIER 💖

@ohyes1h

ohyes1h commented Feb 24, 2026

Copy link
Copy Markdown
Member

beautiful

@yyjim
yyjim merged commit 1a85e30 into feat/project-modernization_umbrella Feb 26, 2026
7 checks passed
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>
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.

4 participants