﻿OPERATIONS HUB MINI V1.2.6
========================

[What changed]
- The HUB website can now launch the installed widget with one click.
- Windows per-user protocol: operationshubmini://open
- If MINI is already running in the tray, the HUB button restores that same instance instead of opening duplicates.
- One-time setup no longer requires a CMD window: double-click SETUP_MINI.vbs.
- INSTALL_AND_RUN.cmd remains only as a fallback.
- Existing account favorites, notices, bonus calculator, auto-start and tray functions are preserved.

[One-time setup]
1. Extract this ZIP.
2. Double-click SETUP_MINI.vbs once.
3. The widget is installed under %LOCALAPPDATA%\OperationsHubMini.
4. A per-user operationshubmini:// URL handler is registered (no admin rights).
5. From then on, open the HUB website and click MINI widget.

[Browser note]
The first time a browser launches a local app protocol it may ask whether to open OPERATIONS HUB MINI. Approve that prompt. This is a browser security prompt and cannot be silently bypassed by the website.

[Auto start]
The existing Windows auto-start checkbox inside the widget remains available. Upgrading V1.1 -> V1.2 preserves the current auto-start registry setting.

[Hub]
https://baba-operations-hub.pages.dev
Requires HUB V4.2.1 or later for the new launch button.


[V1.2.6 startup fix]
- Setup stops only a previously running OperationsHubMini.ps1 process before upgrading.
- Setup launches the newly installed widget immediately after installation.
- Fatal startup errors are no longer silent; they are written to %LOCALAPPDATA%\OperationsHubMini\startup-error.log and a Windows dialog is shown.
- Startup screen positioning now uses the fully qualified System.Windows.SystemParameters type.


[V1.2.6 usability fix]
- The X button is now guaranteed to hide to the Windows tray instead of closing the widget. Alt+F4 is also redirected to the tray; only Tray > Exit fully terminates MINI.
- The tray icon uses a visible Windows information icon and shows a one-time tray notification after hiding.
- Collapsed mode is now a dedicated compact icon toolbar (Favorites / Calculator / Notices / HUB / Expand / Tray), so the window is not visually clipped.
- Calculator promotion/currency/type controls and the amount input now use the same dark translucent visual style as the widget.
- A short live calculation formula is shown directly below the HUB shared-config sync status.

[V1.2.6 installer encoding fix]
- SETUP_MINI.vbs and Launch.vbs are now saved as plain ASCII without a UTF-8 BOM.
- This fixes Windows Script Host error 800A0408 at line 1, character 1 on systems where WSH rejects UTF-8 BOM scripts.
- CMD helper files are also plain ASCII to avoid BOM command parsing problems.

[V1.2.6 calculator UI fix]
- Replaced the WPF default ComboBox template so selected fields and dropdown lists remain dark/translucent.
- Replaced the amount TextBox template so the white system background cannot bleed through.
- Calculator body now uses the same dark glass card treatment as notices, with higher-contrast text.

V1.2.6 startup fix:
- OperationsHubMini.ps1 is UTF-8 with BOM for Windows PowerShell 5.1.
- Launcher.ps1 catches main-script parse/runtime errors.
- Setup success is shown only after the WPF window actually renders.

[V1.2.6 tray lifecycle fix]
- Main window lifetime changed from ShowDialog() to a WPF Application dispatcher with OnExplicitShutdown.
- X / Alt+F4 hides to tray without ending the process.
- Tray icon/menu objects are kept in script scope and a keep-alive timer reasserts icon visibility.
- Only the tray menu Exit command terminates the widget.

[V1.2.6 calculator amount visibility fix]
- Calculator view widened slightly to 350 px and made vertically scroll-safe.
- Bonus output uses a DownOnly Viewbox so long amounts shrink instead of being clipped.
- Total amount wraps and both output lines expose the full amount as a tooltip.
- Amount input content is vertically centered for clearer numeric entry.
