Skip to content

Draft: audio output switcher, tray apps, markets/servers/VPN panels and dock reveal - #420

Draft
shaiel27 wants to merge 11 commits into
little-systems:mainfrom
shaiel27:feat/audio-output-switcher
Draft

shaiel27 wants to merge 11 commits into
little-systems:mainfrom
shaiel27:feat/audio-output-switcher

Conversation

@shaiel27

@shaiel27 shaiel27 commented Dec 2, 2026

Copy link
Copy Markdown

What changes, and why?

This is a draft for discussion, not a request to merge as-is. It bundles several notch/dock improvements I built and use day to day, so maintainers can see them working together and tell me which ones fit Bloom and how to split them into focused PRs (one per agreed issue).

Audio

  • List the playback devices and switch the default audio output (feat(audio)), exposed as a sound-output picker in the command center.

Notch

  • Tray apps panel in the command center.
  • Clock shown in agent activity alerts; the notch can hide while an agent is only working (not asking for input).
  • Markets, local servers and VPN as their own panels:
    • markets: XAUUSD, NAS100 and BTC sparklines, London/New York session countdowns, upcoming high-impact news, with an optional heads-up 15 minutes before;
    • local servers: listening TCP ports with their process, open in the browser or stop (two clicks; the PID must still own the port);
    • VPN: tunnel state, public IP, exit country and provider.
  • Low disk notice when drive C: drops below a threshold.
  • Open panels widened so status widgets clear the clock.

Dock

  • Smoother reveal in smart and peek modes.
  • Optional Show desktop button beside Start.
  • Spanish translations for the dock's context menus.

Autostart

  • Launch at login moves from the HKCU Run key to a per-user Task Scheduler logon task, which starts sooner after sign-in; release builds migrate the Run entry, and the uninstaller removes the task except in update mode.

Change type

  • Small bug fix
  • Documentation / maintenance
  • New feature or broader behavior change

Related issue and agreed scope

No issue yet. Per CONTRIBUTING, I'm opening this as a draft so scope can be discussed first, and I'm happy to open one issue per feature you'd like to consider and close this draft in favor of focused PRs. The rebase onto current main also dropped this branch's copy of the dock rect refresh that #417 already covers.

Validation

On this branch, rebased onto current main:

  • bun run build: passes (typecheck + production build).
  • cargo check --locked in src-tauri: passes.
  • bun run i18n:check: passes; bun run i18n:test: 27/27 pass.

Still needed: a desktop check of the rebased branch on Windows (tray menus, dock reveal/hit area, audio switching, autostart task migration). cargo test --locked was not run.

Checklist

  • I read CONTRIBUTING.md and kept the change focused
  • For a feature/larger change, a maintainer agreed on the linked issue's scope (otherwise N/A)
  • I described actual checks and any remaining validation

🤖 Generated with Claude Code

shaiel27 and others added 11 commits December 2, 2026 17:33
Add audio_output module: lists active render endpoints, sets the default
endpoint for every role through IPolicyConfig, and emits
audio-outputs-changed when outputs or the default change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The volume row gets a chevron (or right-click) that opens a panel listing
the active sound outputs; picking one makes it the Windows default. The
panel follows changes made elsewhere through audio-outputs-changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The command center's tray button opens a Bloom panel with the apps that
have a notification icon: click runs the icon's default action,
right-click opens its tray menu. Right-click on the button, or the
panel's footer, still opens the Windows tray flyout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hiding now only slides the dock off the bottom edge by its on-screen
height and keeps its size, so revealing it is a pure transform instead
of a 34px pill re-growing with a bouncy width/height spring. The slide
uses a bounce-free spring (0.3s up, 0.24s down) that keeps velocity when
reversed, and fades instead under reduced motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While an agent alert covers the notch, its right side shows the notch's
clock (same 12/24h format) instead of the elapsed time, so the time stays
visible. The Settings preview keeps the elapsed time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In smart and peek modes a working agent alert kept the notch on screen
for the whole session. Only alerts that need the user (attention, ready,
error) and an alert fading out still hold it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- dock: re-report the dock rect when its slide settles. The reveal is a
  transform now, so no resize re-measured it and the backend kept the
  hidden position for hit-testing, which could leave a revealed dock
  ignoring clicks in smart and peek modes.
- tray: a tray menu opened from the notch opens below the pointer
  instead of being pushed against the top edge over the notch.
- audio: send the new output's volume right after switching, so the
  sliders don't show the previous device's level for ~2s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…esktop

Island:
- Markets panel (XAUUSD, NAS100, BTC with intraday sparklines, London and
  New York session countdowns, upcoming high-impact news) and a cycling
  markets status widget. Quotes come from Yahoo Finance's spark endpoint
  (gold and Nasdaq 100 as COMEX/CME futures), the calendar from Forex
  Factory, both fetched by the backend over Windows.Web.Http and cached.
- Optional heads-up 15 minutes before high-impact news
  (bloom-market-news-alerts).
- Local servers panel: listening TCP ports with their process, open in the
  browser or stop it (two clicks; the PID must still own the port).
- VPN panel and status widget: tunnel state from the network adapters
  (Proton VPN first), public IP, exit country and provider.
- Low disk notice when drive C: drops below bloom-low-disk-threshold.

Dock:
- Optional Show desktop button beside Start (bloom-dock-show-desktop).
- Spanish translations for the dock's context menus.

Autostart:
- Launch at login is a per-user Task Scheduler logon task instead of the
  HKCU Run key, which Explorer launched serially and throttled (1-2 min
  after the desktop). Release builds migrate the Run entry and keep the
  task pointed at the running exe; `--autostart` waits for the taskbar.
  The uninstaller removes the task except in update mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The command center was crowded with three more buttons. Markets, Local
servers and VPN are now notch panels like Calendar and Connected devices:
reached by wheel, swipe or the panel arrows, each with its own switch in
Settings (bloom-notch-markets-enabled, -servers-enabled, -vpn-enabled,
off by default) and selectable as the default panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hovered status strip was only sized to fit its widgets in the
resting status mode. With a panel open, wide widgets (a market quote
beside the weather) ran under the clock. Open panels now grow past their
usual width when the strip needs it, and keep that width while open so
it doesn't jump as the cursor leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ebase

main already refreshes the dock hit geometry after layout and transform
animations (little-systems#417), so this branch's copy of the same ref, assignment and
onAnimationComplete handler is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs-discussion Scope or approach needs maintainer discussion before implementation label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Thanks for contributing. This looks like a feature or broader change; please link one focused issue whose scope a maintainer has agreed on (the accepted label). An open issue or green CI alone is not approval. Small bug fixes can go directly to a PR. A draft/prototype is welcome while discussing the approach; please wait for feedback before opening a batch of feature PRs.

This is an advisory reminder, not a failed check or automatic closure. See CONTRIBUTING.md. If prior maintainer agreement is missing its label, ask for it and edit the PR description to refresh this reminder.

@SehajveerSingh2005

Copy link
Copy Markdown
Member

hi @shaiel27 , thanks for the PR
the changes sound cool and refined. Tell me when it's ready for testing.
Meanwhile, I have some points to discuss

  1. instead of a separate panel for audio output switch, how about integrate it with the existing audio output icon in the media player and maybe in the command center volume slider

  2. for the tray app icon panel, make sure the tray app icons have all the native functionality including their native menus

  3. I don't really want to push all the extra panels to the user's face so instead of planning many extra panels, plan them according to the purpose and actual need in a notch. Markets, local servers and VPN as separate panels is not something a general user would need but yeah it would be great for the ones interested in the topics. I'm planning on community plugins kinda thing so maybe the extra panels, or any custom command center features, any intergration can be offered without making the base app bloated.

  4. didn't understand the open panels widened change. It is not wide enough or is this something else? a screenshot would be great

Except this the other things you mentioned sounds good, especially the autostart change ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-discussion Scope or approach needs maintainer discussion before implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants