Skip to content

Bbannotate/dev v1.0.7#4

Merged
seba2390 merged 4 commits intomainfrom
bbannotate/dev-v1.0.7
Feb 10, 2026
Merged

Bbannotate/dev v1.0.7#4
seba2390 merged 4 commits intomainfrom
bbannotate/dev-v1.0.7

Conversation

@seba2390
Copy link
Copy Markdown
Owner

PR Title

Improve bbox color UX, process lifecycle reliability, CLI status visibility, and docs

Summary

This PR delivers UX and lifecycle improvements, adds a new runtime status CLI command, and updates documentation to match current behavior.

What’s Included

  • Added bounding-box color controls in the canvas toolbar:
  • auto contrast mode
  • label color mode
  • custom color mode with color picker
  • Made live drawing preview use the same selected color mode while dragging (not only after box creation).
  • Implemented fast auto-contrast color selection using a downsampled luminance integral map for responsive performance.
  • Improved selection visibility:
  • Stronger selected bbox highlight on canvas
  • Clearer selected item styling in the right-side annotation list
  • Updated bbannotate start lifecycle behavior:
  • Default start runs detached (terminal can be closed without stopping app)
  • Browser session is token-linked to server lifecycle
  • Closing the launched browser session triggers backend shutdown
  • Added backend browser session lifecycle handling:
  • heartbeat endpoint
  • close endpoint
  • monitor service with inactivity/close grace logic
  • Added new CLI command:
  • bbannotate status
  • Reports backend/frontend state via port checks, API health, and detected process list
  • Updated README:
  • Added runtime modes
  • Added bbannotate status
  • Documented detached start + browser-coupled shutdown behavior
  • Updated shortcut/docs details to match current app behavior
  • Added/updated tests for:
  • CLI start/status behavior
  • Browser session lifecycle API endpoints
  • Frontend API/session behavior and UI selection behavior
  • Added frontend Vite manual chunking to avoid oversized bundle warning.

…r lifecycle

- add canvas toolbar bbox color modes (auto/label/custom) with custom picker
- use the selected color mode during live box drawing, not only after commit
- implement fast auto-contrast color selection via per-image luminance integral map
- strengthen selected annotation visibility on canvas and in the right sidebar list
- run ╭───────────────────────── 🚀 Bbannotate ─────────────────────────╮
│ Starting bbannotate server                                      │
│                                                                 │
│   URL: http://127.0.0.1:8000                                    │
│   Host: 127.0.0.1                                               │
│   Port: 8000                                                    │
│   Reload: disabled                                              │
│   Detached: enabled                                             │
╰─────────────────────────────────────────────────────────────────╯
✓ Server started in background (PID: 5167)
Browser session linked to server lifecycle. Closing the browser
window will stop the background server. detached by default so terminal close does not stop the app
- add token-based browser session heartbeat/close API and backend monitor to auto-shutdown on browser close
- add/update CLI, API, and frontend tests for lifecycle and color behavior
- split frontend bundles in Vite config to avoid oversized chunk warnings
- add                             Bbannotate Status
┏━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Component    ┃ State   ┃ Details                                       ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Backend API  │ stopped │ port 8000: closed, health: unreachable,       │
│              │         │ processes: 0                                  │
│ Frontend Dev │ stopped │ port 5173: closed, processes: 0               │
└──────────────┴─────────┴───────────────────────────────────────────────┘ command to report backend/frontend runtime state
- include port reachability, API health checks, and detected process list (PID + command)
- add CLI tests for status help, stopped-state, and running-state scenarios
- update README with detached startup behavior, browser-linked shutdown, and runtime modes
- document new                             Bbannotate Status
┏━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Component    ┃ State   ┃ Details                                       ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Backend API  │ stopped │ port 8000: closed, health: unreachable,       │
│              │         │ processes: 0                                  │
│ Frontend Dev │ stopped │ port 5173: closed, processes: 0               │
└──────────────┴─────────┴───────────────────────────────────────────────┘ command and current keyboard shortcuts
- clean up outdated README CLI/options and testing notes
@seba2390 seba2390 merged commit bf67957 into main Feb 10, 2026
7 checks passed
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