Skip to content

0.27.0.6#1293

Merged
Valkirie merged 285 commits intomainfrom
0.27.0.6
Aug 31, 2025
Merged

0.27.0.6#1293
Valkirie merged 285 commits intomainfrom
0.27.0.6

Conversation

@Valkirie
Copy link
Owner

@Valkirie Valkirie commented Aug 31, 2025

Summary by CodeRabbit

  • New Features

    • Library scanning across multiple launchers (Steam, GOG, Epic, Ubisoft, Battle.net, Riot, Rockstar) with auto-profile creation.
    • Per-profile executables list and “Run/Run as admin” options.
    • Split TDP overrides (PL1/PL2) with guidance for Intel CPUs.
    • Fan curve drag editing and safer thermal behavior.
    • Quick Tools options: slide animation, noise effect, new window location.
    • New image/column converters for richer UI.
  • Improvements

    • Overlay metrics now use a unified hardware source.
    • Device lighting/fan controls expanded on select models.
    • More resilient settings and input handling.
  • Bug Fixes

    • Null-safety and stability fixes across profiles, layouts, and controllers.
  • Chores

    • Version bump to 0.27.0.6 and dependency updates.

Valkirie and others added 25 commits August 15, 2025 17:19
* Improve profile management

* Fix: Crash on corrupted user.config

* Improve MSI Claw controller robustness

* Cleanup

* delete previous profile file on profile name changes
* Refactor Overlay rendering logic to strategy design pattern

* Fix ai comments

* Add widget system with factory

* Fix some AI comments

* Add level selection for overlay widgets.
Refactor strategies (use widgets.

* Fix level for cpu widget in full overlay strategy
* Dramatically cuts GC pressure and CPU

* Fix TriggerActions shiftSlot logic
@Valkirie Valkirie merged commit 31dfae0 into main Aug 31, 2025
1 check failed
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 31, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Broad update introducing platform manager refactor, new game-launcher integrations, overlay/OSD rewire, layout/mapping and input pipeline improvements, fan profile interpolation with Tjmax latch, numerous async timeout conversions, new utilities and converters, profile/library overhauls, device capability edits, GPU/processor tweaks, settings/resources additions, and build/version bumps.

Changes

Cohort / File(s) Summary
Versioning & Build
HandheldCompanion.iss, HandheldCompanion/HandheldCompanion.csproj
Bump version to 0.27.0.6; adjust Release publish knobs (R2R, single-file, PGO), prefer64bit, runtime host options; update/add packages (GameLib.NET, LibreHardwareMonitorLib, SDL3-CS, NJsonSchema).
Settings & Config
HandheldCompanion/App.config, .../Properties/Settings.settings, .../Properties/Settings.Designer.cs
Add user settings: PreloadPages, QuickToolsSlideAnimation, QuickToolsApplyNoise.
Localization Resources
.../Properties/Resources*.resx, .../Properties/Resources.Designer.cs
Add many UI strings (profiles, library scan, quicktools, PL1/PL2 warning); multiple locale resx entries added (some duplicated blocks), minor removals in zh-Hans/ko-KR.
Converters & XAML
HandheldCompanion/App.xaml, .../Converters/DrawingImageToImageSourceConverter.cs, .../Converters/WidthToColumnsConverter.cs
Register two new converters; add Drawing.Image→BitmapSource converter; add responsive columns converter.
Utilities & Helpers
.../Helpers/EventHelper.cs, .../Utils/FileUtils.cs, .../Utils/ProcessUtils.cs, .../Utils/ServiceUtils.cs, .../Misc/MotherboardInfo.cs
New async event invoker; common file dialog with .lnk/UWP resolving; filename sanitizer; extended process/window helpers; minor string.Empty changes.
Profiles & Library Core
.../Misc/Profile.cs, .../Managers/ProfileManager.cs, .../Managers/LibraryManager.cs, .../Libraries/LibraryEntry.cs, .../Libraries/IGDBEntry.cs
Profile model expanded (PlatformType, LaunchString, Executables, ParentGuid), filename logic, error propagation; profiles store keyed by Guid; library error typing and events; library family becomes [Flags]; IGDB nullable fields.
Platform Manager & Platforms
.../Managers/PlatformManager.cs, .../Managers/ManagerFactory.cs, .../Platforms/IPlatform.cs, .../Platforms/Misc/LibreHardware.cs, .../Platforms/Misc/RTSS.cs, .../Platforms/Games/*, .../Platforms/GOGGalaxy.cs (removed), .../Platforms/UbisoftConnect.cs (removed)
Refactor PlatformManager to IManager; add PlatformManager to ManagerFactory; expand IPlatform API (Name/Paths/Refresh/GetGames/GetLogo), extend PlatformType; move RTSS/LH to Misc namespace; add adapters for BattleNet, Epic, GOG, Origin, Riot, Rockstar, rework Steam; remove legacy GOG/Ubisoft files.
Overlay/OSD
.../Managers/OSDManager.cs, .../Managers/Overlay/*
Switch timers to System.Timers; defer RTSS/platform hooks until PlatformManager ready; minor using/formatting; widgets source metrics from LibreHardware instead of LibreHardwareMonitor; small class-declaration formatting cleanups.
Managers (Inputs/Controllers/Sensors/GPU/Devices)
.../Managers/ControllerManager.cs, .../Managers/InputsManager.cs, .../Managers/LayoutManager.cs, .../Managers/GPUManager.cs, .../Managers/DeviceManager.cs, .../Managers/SensorsManager.cs, .../Managers/PowerProfileManager.cs, .../Managers/PerformanceManager.cs, .../Managers/ProcessManager.cs, .../Managers/IManager.cs
Snapshot/null-safety and async event raises; early-exit on remapped inputs; cached layout planning; GPUManager Start becomes async; replace DateTime timeouts with Task.Delay across managers; sensor calibration timeout updated; defer CPU temp subscriptions to PlatformManager readiness; AutoTDP guards and Lunar Lake bump; new RawForeground event; IManager AddStatus/RemoveStatus accept params args.
Input/State
.../Actions/TriggerActions.cs, .../Inputs/GyroState.cs, .../UI/UIGamepad.cs
TriggerActions internal value handling uses short; GyroState adds Zero/CopyFrom with ref updates; invert mapped guard in UIGamepad/InputManager handlers.
GPU & Processor
.../GraphicsProcessingUnit/AMDGPU.cs, .../Processors/IntelProcessor.cs
Replace waits with Task.Delay in AMDGPU; IntelProcessor adds signature/micro-arch decode, Lunar Lake detection, thread-safe TDP/MSR/GPU setting, public signature fields.
Devices
.../Devices/*
Capability tweaks: enable/disable dynamic lighting on various devices; fan table application for LegionGo; ClawA1M LED handling/signatures; ClawA2VM Open overrides TDP; small guard/comments and IsECReady timeout change.
Fan Profile
.../Misc/FanProfile.cs
Add Tjmax latch with hysteresis/cooldown/samples; robust 0–100°C interpolation; smoothing window; input clamps; new public properties.
View Models (Pages/Windows)
.../ViewModels/*
New generic DelegateCommand; library page adds ScanLibraryCommand with multi-platform scan; profiles page adds executables management; performance page adds PL1/PL2, temp plotting, drag fan curve; overlay page defers to PlatformManager readiness; quick pages adjust behavior; process VM exposes path/product/company; minor notification gating.
Notifications & Commands
.../Notifications/SteamInputsNotification.cs, .../Commands/Functions/HC/MainWindowCommands.cs
SteamInputsNotification early-return if platform not ready; rename window state method ToggleState.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant App as App
  participant MF as ManagerFactory
  participant PM as PlatformManager
  participant OSD as OSDManager
  participant Pwr as PowerProfileManager

  User->>App: Start
  App->>MF: Initialize managers
  MF->>PM: Start()
  PM-->>PM: Construct platforms (Steam/Epic/…/RTSS/LH)
  PM-->>PM: Start installed platforms
  PM-->>MF: Status = Initialized

  MF-->>OSD: PlatformManager Initialized
  OSD->>PM: Hook RTSS/LH events
  MF-->>Pwr: PlatformManager Initialized
  Pwr->>PM: Hook LH CPU temp events
Loading
sequenceDiagram
  autonumber
  actor User
  participant UI as LibraryPageViewModel
  participant PM as PlatformManager
  participant Plat as Platforms (Steam/Epic/…)
  participant Lib as LibraryManager
  participant Prof as ProfileManager

  User->>UI: ScanLibraryCommand
  UI->>PM: GetGames() per selected platform(s)
  loop For each platform
    PM->>Plat: GetGames()
    Plat-->>PM: IEnumerable<IGame>
  end
  PM-->>UI: Games
  loop For each game
    UI->>Prof: Find/Create Profile (by executable(s))
    UI->>Prof: UpdateOrCreateProfile
    UI->>Lib: RefreshProfileArts(profile, Creation/Background)
  end
Loading

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~120–180 minutes

Possibly related PRs

Poem

In burrows of code I nibble and weave,
New launchers sprout, like leaves on a sleeve.
Fans hum wiser, temps keep cool,
Platforms rally, async the rule.
With paws I press “Run” — hop, don’t pause! 🐇
0.27 blooms—applause, applause!

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 0.27.0.6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Valkirie Valkirie deleted the 0.27.0.6 branch August 31, 2025 07:50
@coderabbitai coderabbitai bot mentioned this pull request Oct 7, 2025
@coderabbitai coderabbitai bot mentioned this pull request Oct 27, 2025
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