47 Commits

Author SHA1 Message Date
PrimeBuild-pc 9f7ba5e4af Fix persistent automation monitoring preference 2026-08-03 17:38:45 +02:00
Prime Build 1540aeb7be Polish Windows 11 tweaks and add one-click updates (#40)
Verify persisted Windows tweak state on startup, modernize selection styling, and make in-app updates check every launch, install automatically after consent, preserve settings, and relaunch ThreadPilot.
2026-08-01 13:50:11 +02:00
Prime Build 20d2034d6a Add multilingual support (#39)
Add Italian, French, German, Spanish, and Russian localization with Windows language detection, reliable settings persistence, and neutral dialog styling.
2026-08-01 13:43:45 +02:00
Prime Build 0c7b2983f9 Improve meaningful core coverage and enforce its floor (#38)
* test: cover log file lifecycle

* ci: enforce meaningful coverage floor
2026-07-12 13:43:22 +02:00
Prime Build 9553bfd20d Complete measured runtime overhead reductions (#36)
* perf: defer inactive view initialization

* perf: eliminate redundant powercfg refreshes

* perf: suspend hidden log updates

* perf: back off WMI recovery

* perf: reuse static process metadata

* test: cover low-overhead runtime policies
2026-07-12 08:54:30 +02:00
Prime Build 2c6cc774a8 Reduce foreground and background runtime overhead (#35)
* perf: cache persistent rule snapshots

* perf: reduce process-start enrichment and logging

* fix: dispose process handles and clear pid caches

* test: cover low-overhead runtime policies
2026-07-12 08:47:55 +02:00
Prime Build 58c89907a5 Add new bundled power plans (#34) 2026-07-11 20:28:47 +02:00
Prime Build fbfe010fb0 Fix persistent priority reversion after process startup (#33) 2026-07-11 19:17:24 +02:00
Prime Build 7953fc7774 Refactor repo with ponytail cleanup (#31) 2026-06-24 17:52:45 +02:00
Prime Build 024673dcbe Add safe in-app updater (#28)
## Summary

Adds a safe in-app updater for ThreadPilot. This PR does not bump the app version and does not prepare a release; version and release metadata will be handled separately for v1.4.0.

## Type of Change

- [x] Feature
- [x] Security hardening
- [x] Documentation
- [x] Added/updated tests

## Update flow

- Checks for updates on demand from Settings.
- Performs background startup checks only when enabled and the last check is older than the configured interval.
- Defaults to a 7-day interval.
- Excludes prereleases by default.
- Notifies users when an update is available.
- Requires explicit user action before download/install.

## Security and safety

- Uses release metadata from the official `PrimeBuild-pc/ThreadPilot` repository only.
- Selects safe ThreadPilot installer assets from GitHub HTTPS release assets.
- Downloads into a ThreadPilot-owned temp update directory.
- Verifies SHA256 checksums when `SHA256SUMS.txt` is available.
- Rejects checksum mismatches.
- Performs best-effort Authenticode verification and rejects explicitly invalid signatures.
- Starts the installer elevated without shell command construction.
- Prevents concurrent install attempts.

## User data preservation

- Update flow does not delete AppData, settings, profiles, CPU masks, rules, custom/imported power plans, or logs.
- Only updater temp files are cleaned.
- Full uninstall behavior remains separate.

## Validation

- `dotnet restore ThreadPilot_1.sln`: passed
- `dotnet build ThreadPilot_1.sln`: passed, 0 warnings, 0 errors
- `dotnet test ThreadPilot_1.sln`: passed, 537 tests

## Release note

This PR intentionally leaves `ThreadPilot.csproj` at `1.3.1`. The `1.4.0` version bump, changelog, packaging metadata, and tag should happen in a separate release-prep branch after this PR is merged.
2026-06-07 06:06:53 +02:00
Prime Build c058fef7d5 Fix v1.3.1 localization and installer cleanup (#26)
## Summary

Fixes the incomplete Simplified Chinese localization shipped in v1.3.0 and prepares v1.3.1.

## Changes

- Completed zh-CN localization coverage across the main UI.
- Added/updated localization keys for primary views, tray/status text, notifications, and settings.
- Kept en-US as the default language.
- Updated version metadata to 1.3.1.
- Changed installer display name to ThreadPilot while keeping version metadata separate.
- Added guarded cleanup for obsolete ThreadPilot 0.1.0-beta uninstall entry.
- Improved uninstall cleanup for ThreadPilot AppData, startup task, and HKCU Run entry.
- Added localization and packaging metadata tests.

## Validation

- dotnet build ThreadPilot_1.sln: passed, 0 warnings
- dotnet test ThreadPilot_1.sln: passed, 524 tests

## Safety

- No change to elevation behavior.
- No change to affinity/process control behavior.
- No change to power plan or system tweak behavior.
- Normal install/update preserves user settings.
- Full uninstall removes ThreadPilot-owned AppData for the uninstalling user.
2026-06-07 04:33:51 +02:00
Prime Build 340610dfd3 Add safe localization support
Adds English/Chinese localization infrastructure with en-US as default, zh-CN as optional language, safe fallback behavior, settings integration, localized notifications, and expanded test coverage.
2026-06-06 18:04:12 +02:00
Prime Build 91287c9860 Fix startup binding and prepare v1.2.0 pre-release (#22)
* Fix startup binding and prep v1.2.0

* Polish v1.2.0 validation UX

* Fix final v1.2.0 validation polish

* Make Activity Logs a ThreadPilot audit trail

* Fix high scheduling registry value

* Polish process list and automation settings UX

* Fix process context menu separator styling

* Theme process context menu visuals

* Stabilize process context menu styling

* Remove process menu icon gutter

* Polish startup and idle process refresh

* Finalize PR22 release polish
2026-05-23 14:28:24 +02:00
Prime Build c82f24638d Apply persistent rules when processes start (#21)
Apply persistent rules when processes start

Wire persistent process rules into runtime process discovery so existing enabled rules can apply automatically while ThreadPilot is running.

- Add PersistentRuleAutoApplyService for runtime rule auto-apply
- Hook auto-apply into ProcessMonitorManagerService snapshot and process-start paths
- Add ApplyPersistentRulesOnProcessStart app setting enabled by default
- Use existing PersistentRulesEngine for CpuSelection, legacy affinity, CPU priority and memory priority
- Add per-process/rule cooldown to avoid repeated apply spam
- Clear cooldown state when processes exit or disappear from snapshots
- Preserve safe protected-process and access-denied behavior without bypass claims
- Preserve cancellation semantics during shutdown/stop paths
- Add tests for matching rules, disabled/no-match cases, cooldown, retry, PID reuse, failures, feature flag and monitor integration

No Windows Service, registry/IFEO persistence, installer changes, rules editor, version bump or tag changes.
2026-05-22 12:29:36 +02:00
Prime Build dd45b38007 Add Apply now and save as rule flow (#20)
Add Apply now and save as rule flow

Add explicit opt-in persistent rule creation from Process tab actions.

- Add ProcessRuleCreationService for creating/updating persistent process rules
- Add Rules submenu with Save Current Settings as Rule and Apply Affinity and Save as Rule
- Match existing rules by executable path or process name fallback to avoid duplicates
- Preserve rule Id and CreatedAt when updating existing rules
- Prefer CpuSelection and only save legacy affinity when safely representable
- Avoid saving Normal CPU priority from automatic current-state capture
- Block Realtime priority and unsafe affinity persistence with controlled messages
- Save memory priority when known
- Keep existing normal context actions from creating persistent rules
- Add tests for create/update, path/name matching, CpuSelection, legacy safety, priority capture, memory priority, no-action failure and ViewModel commands

No full rules editor, modal confirmation flow, registry/IFEO, Windows Service, diagnostics changes, version bump or tag changes.
2026-05-22 12:00:09 +02:00
Prime Build 266834cbdf Reduce Performance tab to optional diagnostics (#17)
Reduce Performance tab to optional diagnostics

Hide the Performance/Diagnostics surface from the primary UX by default and remove hidden startup/tray runtime cost.

- Hide Diagnostics from primary navigation and tray by default
- Lazy-create PerformanceViewModel only when Diagnostics is opened
- Stop initializing diagnostics snapshots during app startup
- Gate tray CPU/RAM metrics behind the advanced diagnostics flag
- Avoid starting the tray lightweight metrics timer when diagnostics are hidden
- Lazily allocate PerformanceMonitoringService counters on first metrics use
- Stop live diagnostics when inactive, minimized or tray-hidden
- Preserve diagnostics internals for future selected-process summary work
- Add tests for lazy diagnostics creation, tray metrics gating and explicit diagnostics activation

No Process tab redesign, CPU affinity changes, memory priority changes, persistent rules changes, version bump or tag changes.
2026-05-21 23:47:21 +02:00
Prime Build cbe2402f1b Migrate Process tab manual affinity apply to CpuSelection (#16)
Migrate Process tab manual affinity apply to CpuSelection

Route manual Process tab affinity operations through a topology-aware coordinator so CpuSelection and CPU Sets are preferred over legacy long masks.

- Add ProcessAffinityApplyCoordinator for manual Process tab affinity apply
- Prefer CoreMask.CpuSelection when available
- Migrate legacy BoolMask selections to CpuSelection when topology is available
- Block unsafe legacy fallback for selections above CPU64
- Keep legacy long mask fallback only for safe single-group <=64 selections
- Wire SetAffinity, ApplyCoreMaskToProcessAsync and QuickApplyAffinityAndPowerPlan through the coordinator
- Document CoreMask.ToProcessorAffinity as legacy-only
- Ensure ProcessViewModel fallback coordinator receives topology provider
- Add regression tests for CPU64, multi-group, safe legacy fallback, migration and protected-process messages

No UI redesign, preset generator, memory priority, persistent rules engine, migration logic, version or tag changes.
2026-05-20 22:25:34 +02:00
Prime Build 5f9f7b5409 Add process memory priority foundation (#15)
Add process memory priority foundation

Introduce backend support for process memory priority using Windows GetProcessInformation and SetProcessInformation while keeping the feature testable and safe.

- Add ProcessMemoryPriority model with documented Windows memory priority levels
- Add fakeable native API wrapper for process memory priority
- Add ProcessMemoryPriorityService with safe error handling
- Add ProcessOperationResult for process operation outcomes
- Extend persistent process rules with memory priority support
- Apply memory priority through PersistentRulesEngine when configured
- Preserve anti-cheat/protected-process safety messaging
- Add tests for native get/set, invalid process, access denied, unsupported API, enum mapping, persistent rules and JSON roundtrip

No UI redesign, registry/IFEO persistence, Windows Service, preset generator, migration, version or tag changes.
2026-05-20 21:45:21 +02:00
Prime Build bffbdeeccc CPU topology v2 phase 8: add persistent rules engine foundation (#14)
Add persistent rules engine foundation

Introduce the foundation for Apply at process start without adding a background loop, Windows Service, installer changes, registry affinity or anti-cheat bypass behavior.

- Add PersistentProcessRule and PersistentRuleApplyResult models
- Add process-name and executable-path rule matching
- Add PersistentRulesEngine using existing safe affinity and priority services
- Add JSON-backed persistent rule store
- Add safe Apply at process start user-facing copy
- Validate incomplete rules so missing affinity/priority payloads fail safely
- Add tests for matching, CpuSelection, legacy affinity, priority, Realtime guardrails, access denied, protected processes, process exit, disabled rules and storage roundtrip

No process monitor hook, UI management, Windows Service, registry/IFEO expansion, version bump or tag changes.
2026-05-20 16:45:43 +02:00
Prime Build 9f56303e93 CPU topology v2 phase 7: improve affinity errors and priority guardrails (#13)
Improve affinity errors and priority guardrails

Centralize safe user-facing messages for process affinity, CPU Sets, protected processes, access denied cases, topology errors and priority guardrails.

- Add CpuSetApplyResult detailed path while preserving existing bool CPU Sets APIs
- Use detailed CPU Sets results in the CpuSelection affinity flow
- Centralize affinity/priority messages in ProcessOperationUserMessages
- Improve AccessDenied, anti-cheat/protected, invalid topology, process exited and legacy fallback blocked messages
- Add High priority warning
- Block Realtime priority for direct apply, profile load and registry priority requests
- Audit and log blocked Realtime priority attempts
- Prevent critical status messages from being cleared immediately
- Add tests for affinity messages, CPU Sets detailed failures, priority guardrails and status clearing

No persistent rules engine, registry affinity, preset/profile migration, version or tag changes.
2026-05-20 16:03:34 +02:00
Prime Build 731a537015 CPU topology v2 phase 6: migrate profiles and core masks to CpuSelection (#12)
Migrate profiles and core masks to CpuSelection

Add a conservative compatibility layer for moving persisted profiles and core masks toward topology-aware CpuSelection while preserving legacy fields.

- Add profile schema version constants and CpuSelection migration metadata
- Add ProcessProfileSnapshot with legacy ProcessorAffinity plus optional CpuSelection
- Extend ProfileModel and CoreMask with CpuSelection fields without removing legacy data
- Add CpuSelectionMigrationService for legacy affinity mask and bool core mask conversion
- Preserve legacy mask build-back only when CpuSelection is safely representable
- Wire profile save/load to read and persist CpuSelection when topology is available
- Wire core mask load/save to attach CpuSelection metadata while keeping BoolMask
- Return failure when CpuSelection profile application fails
- Add tests for CPU64 alias protection, multi-group safety, topology signature review, legacy/v2 JSON compatibility and profile load behavior

No UI, preset generator, registry/IFEO, priority guardrail, X3D detection, version or tag changes.
2026-05-20 15:32:52 +02:00
Prime Build 57676aede3 CPU topology v2 phase 5: add topology-aware preset generator foundation (#11)
Add topology-aware CPU preset generator foundation

Introduce a topology-derived preset generator for safe default CPU affinity suggestions without relying on CPU SKU hardcoding.

- Add CpuPreset, ICpuPresetGenerator and CpuPresetGenerationOptions
- Generate deterministic presets for all cores, physical/no-SMT, all except CPU0, P/E cores, L3 group physical cores, best gaming and safe compatibility
- Add SourcePresetId for best-gaming while keeping Reason user-facing
- Use CpuTopologySnapshot metadata such as CoreIndex, EfficiencyClass, L3/cache groups and SMT siblings
- Avoid X3D/3D V-Cache preset generation until reliable detection is available
- Register the generator for future UI/profile phases
- Add tests for SMT, hybrid P/E cores, dual CCD, >64 logical processors, deleted presets and missing CoreIndex

No UI, profile migration, runtime affinity apply, ProcessService, registry/IFEO, version or tag changes.
2026-05-20 00:11:32 +02:00
Prime Build 08951008c1 CPU topology v2 phase 4: add safe CpuSelection affinity apply path (#10)
Add safe CpuSelection affinity apply path

Introduce a structured CpuSelection affinity apply path that tries CPU Sets first and falls back to legacy ProcessorAffinity only when the selection is safely representable as a non-zero single-group <64 mask.

- Add structured AffinityApplyResult fields and error codes
- Add CpuSelectionAffinityApplier with CPU Sets-first behavior
- Add ProcessService overload for CpuSelection affinity apply
- Block unsafe legacy fallback for multi-group and CPU >=64 selections
- Preserve existing legacy SetProcessorAffinity(long) behavior
- Add audit coverage for CpuSelection apply success/failure paths
- Add tests for safe fallback, blocked fallback, access denied, process exit and invalid selection

No UI, preset generator, profile migration, registry/IFEO, priority guardrail, versioning or tag changes.
2026-05-19 23:35:21 +02:00
Prime Build ff1cd97832 CPU topology v2 phase 2: add topology provider abstraction (#8)
Add CPU topology provider abstraction

Introduce ICpuTopologyProvider and WindowsCpuTopologyProvider for topology-aware CPU detection using Windows CPU Sets and logical processor relationship APIs.

- Extend CpuTopologySnapshot with core, NUMA, L3/cache, package and SMT sibling metadata
- Add WindowsCpuTopologyNativeLayout for testable Win32 native layout parsing
- Add group-aware fallback processor generation for >64 logical processors
- Add simulated topology tests for multi-group, hybrid efficiency classes, SMT on/off, L3 groups and >64 LP systems

No runtime affinity, ProcessService, ProcessCpuSetHandler, UI, preset or profile migration behavior changes.
2026-05-19 16:54:23 +02:00
PrimeBuild-pc da907d210e Clean up analyzer warnings 2026-05-17 01:54:32 +02:00
PrimeBuild-pc 8e5780cdb3 Polish theme settings and bundled power plans 2026-05-17 00:17:12 +02:00
PrimeBuild-pc 48e80751b3 Enable low-impact background mode by default 2026-05-16 23:16:07 +02:00
PrimeBuild-pc fd20661bb1 Improve low-impact runtime behavior 2026-05-16 19:56:13 +02:00
Prime Build 4fceda163d Perf/professional hardening (#4)
* Improve background refresh and process detection

* Harden affinity and power plan automation

* Fix passive process refresh failures

* Improve UX terminology and process layout

* Polish UX layout and empty states

* Expand core service test coverage
2026-05-09 23:15:49 +02:00
PrimeBuild-pc 2382c47789 Reduce background refresh overhead 2026-05-09 12:02:42 +02:00
PrimeBuild-pc 69cc510bc1 Harden services and release coverage pipeline 2026-04-21 19:50:56 +02:00
PrimeBuild-pc 25ecb54646 Make Windows 11 first-class, add security policy
Update project to emphasize Windows 11 support and add a security policy, plus small runtime and packaging fixes.

Changes:
- README: simplify Windows badge and update requirements to Windows 11 (Build 22000+).
- Installer (setup.iss): set MinVersion=10.0.22000.
- app.manifest: remove legacy Windows supportedOS IDs and keep PerMonitorV2 DPI setting.
- docs/TROUBLESHOOTING.md: remove Windows 10-specific startup troubleshooting (Windows 11-first messaging).
- Add SECURITY.md pointing to docs/SECURITY.md for the full policy and disclosure process.
- .gitignore: ignore FINAL_RELEASE_PLAN.md and RELEASE_PLAN.md.
- Services/SecurityService.cs: introduce MaxLogTokenLength constant and replace hard-coded 200 when truncating log tokens.
- App.xaml.cs: await settingsService.LoadSettingsAsync() with ConfigureAwait(false) and adjust service activations.
2026-04-16 00:53:12 +02:00
PrimeBuild-pc efb757d733 Add ElevatedTaskService and remove MSIX packaging
Introduce IElevatedTaskService and ElevatedTaskService to manage scheduled-task based elevated launch and autostart. Update App.xaml.cs to bootstrap elevation, attempt managed elevated launch, and handle task registration markers. Refactor AutostartService to delegate autostart operations to the elevated task service, remove legacy registry usage where appropriate, add logging, and update DI registration and unit tests. Remove MSIX packaging support and related tooling: delete build/build-msix.ps1, remove MSIX publish/validation/upload steps from GitHub Actions, drop MSIX-related csproj targets and EnableMsixTooling, and update docs/README/.gitignore to no longer reference MSIX artifacts.
2026-04-16 00:31:19 +02:00
PrimeBuild-pc 594a3c4b85 Refactor MainWindow behaviors into partial class
Move and centralize MainWindow behavior/logic into a new partial file and tidy related viewmodel/service code.

- Add MainWindow.Behaviors.partial.cs containing initialization, loading overlay, view model loading, service setup, system tray management, monitoring lifecycle, keyboard shortcuts, elevation/performance overlays, graceful shutdown and related helpers (moved out of MainWindow.xaml.cs).
- Remove duplicated behavior code from MainWindow.xaml.cs.
- Add ProcessViewModel.Behaviors.partial.cs and update ViewModels/ProcessViewModel.cs to separate behavior logic from core viewmodel.
- Update Models/ProcessModel.cs and services (GameDetectionService.cs, ProcessMonitorService.cs, ProcessService.cs) to align with the refactor and improve robustness (timeouts, fallbacks, logging and error handling).

Reason: reduce MainWindow.xaml.cs size, improve separation of concerns and maintainability, and introduce more resilient startup/shutdown and tray/update logic.
2026-04-15 23:13:11 +02:00
PrimeBuild-pc c9253f879d Enhance CI/release workflow and app robustness
Add comprehensive CI and release improvements (coverage collection, Codecov upload, SBOM generation), split release workflow into build/smoke-test/release stages with deterministic version resolution, artifact uploads, winget manifest updates and changelog generation. Add a pre-commit hook to block large or unwanted artifacts. Introduce runtime improvements: smoke-test startup mode, improved unhandled/dispatcher/task-exception reporting, ThreadPilotException error codes, single-instance behavior adjustments, and logging enhancements. UI and UX changes include a new Logs tab and LogViewer wiring, DWM title-bar theming helper, navigation serialization/unsaved-changes guard, system-tray update backoff logic, and related viewmodel/service integrations. Also add installer template, helper classes, tests, docs, packaging and build scripts, and minor .gitignore updates.
2026-04-15 22:38:35 +02:00
PrimeBuild-pc f6f9822828 Elevation modal, overlay refactor and perf tweaks
Refactor UI overlays and add an elevation warning modal; improve performance monitoring and refresh behavior.

- UI: Reworked MainWindow XAML to consolidate content into UIContent, replaced AppContentLayer/backdrop animations with style-driven blur, added ElevationWarningOverlay (shell-style elevation prompt), reorganized PerformanceIntro and Loading overlays, and added popup overlay in PerformanceView.
- MainWindow logic: Added ApplyUIContentBlur/ClearUIContentBlur helpers, elevation warning show/dismiss/request handlers (with persisted HasSeenElevationWarning), suspend/resume logic for system-tray and background refreshes when hidden, and concurrency guards for system-tray updates.
- Services/API: IPerformanceMonitoringService now supports a lightweight GetSystemMetricsAsync(bool lightweight) call. PerformanceMonitoringService caches total physical memory, skips expensive metrics for lightweight calls, increases monitoring interval to 2s, and adds re-entrancy guards.
- ViewModels: PerformanceViewModel gains popup state/commands and blur binding; PowerPlanViewModel can pause/resume auto-refresh, increased refresh interval to 10s and added concurrency protection.

These changes reduce startup and background resource usage, prevent timer overlap, and introduce a clear user-facing elevation prompt while preserving existing behavior via settings.
2026-04-15 00:59:49 +02:00
PrimeBuild-pc 1ab85b21bd Release 1.1.1: installer, elevation & onboarding
Bump release to v1.1.1 and add release/build packaging, installer and onboarding enhancements. Key changes:

- Version bump across csproj, README and release assets to 1.1.1.
- CI/workflow: copy bundled Powerplans into single-file output, install Inno Setup, build Inno Setup installer, include installer artifacts in GitHub release, and stage unified package zips with uninstall/license files.
- Installer: update InstallScript (setup.iss) to point to staged artifacts, include Powerplans folder, and output installer to artifacts/release/installer.
- App startup/elevation: requireAdministrator manifest and App.xaml.cs now requests elevation early, terminating non-elevated instance when elevation is requested/declined.
- UX: add Performance first-run onboarding overlay (modal with blurred background), updated loading overlay visuals, and related MainWindow logic to show/hide intro and persist seen state.
- Settings & config: implement export/import configuration bundle (JSON) with Save/Open dialogs, add ReplaceConfigurationAsync and CloneConfiguration in association service, and adjust settings view labels.
- Power plan features: add PowerPlanService.AddCustomPowerPlanFileAsync and UI/command to add .pow files; adjust Import/Apply button labels.
- Performance tweaks: reduce power plan change delay from 1000ms to 250ms in config, models and viewmodels.
- Theme detection: improve ThemeService to resolve registry values and fallback to system theme helper.
- Misc: various logging/status improvements, packaging script fixes (build-release/build-msix), and added package-release-zips script.

These changes prepare the project for a formal 1.1.1 release with installer distribution, improved elevation handling and onboarding, plus enhanced import/export and custom power plan support.
2026-04-14 03:22:06 +02:00
PrimeBuild-pc 3d00d00cb0 chore: safe root cleanup phase 1 - Refactor .gitignore (più leggibile + pattern moderni) - Move build scripts → build/ - Move installer → Installer/ - Move ico.ico and Powerplans → assets/ - Move TRADEMARK.md → docs/legal/TRADEMARK.md (with root bridge) - Update all internal references (csproj, XAML, C#, .iss, .ps1, docs) - Verified: restore + build + test + publish (SingleFile + MSIX) OK" 2026-04-13 12:39:05 +02:00
PrimeBuild-pc 3dcec45c1b chore: final enterprise polish and release preparation for v1.1.0 2026-04-12 17:46:38 +02:00
PrimeBuild-pc acfd8dca7e Switch project license to AGPLv3 and test visibility
Replaces the project's license from GNU GPL v3 to the GNU Affero General Public License v3: updated LICENSE (full AGPL text) and updated license headers across source files. Adds InternalsVisibleTo("ThreadPilot.Core.Tests") (plus using System.Runtime.CompilerServices) in AssemblyInfo to allow test access to internal types. Also introduces Services/TaskSafety.cs and two new test files under Tests/ThreadPilot.Core.Tests to cover task safety. These changes apply the AGPLv3 terms and enable internal API access for unit tests.
2026-04-12 16:57:52 +02:00
PrimeBuild-pc 8a061c4ab0 chore: initial enterprise setup - governance, CI/CD, security hardening batch 1 2026-04-12 16:34:25 +02:00
PrimeBuild-pc 74922890c8 Adopt Wpf.Ui FluentWindow and revamp UI
Replace Window with Wpf.Ui FluentWindow and integrate Wpf.Ui theme dictionaries and controls; migrate main navigation from TabControl to NavigationView with TitleBar, navigation items and view visibility management, improved startup overlay with blur/fade animations, and updated status bar. Converters now resolve brushes from application resources for theming. CpuTopologyService: add Windows API (GetLogicalProcessorInformationEx) detection, richer structures, improved HT/core type heuristics, labeling and affinity presets; fallbacks and WMI usage preserved. System tray: add ApplyTheme method, custom menu font handling and related calls. NotificationService: standardize display duration via a constant. Misc: XAML/resource adjustments, minor view/viewmodel wiring, and .gitignore updated to include implementation_plan.md.
2026-04-12 01:04:58 +02:00
PrimeBuild-pc 7be4cef428 Enhance theming, UI behavior, perf & add CI
Multiple improvements across theming, UI flow, performance refresh logic, and CI:

- Add CI DevSecOps GH Action workflow: .NET restore/build (Debug/Release), dependency audit, and gitleaks secret scan.
- Theming: preload and apply theme at startup; add HasUserThemePreference to settings model; detect legacy theme flag when loading settings; ThemeService now reads system theme from registry (GetSystemUsesDarkTheme) and exposes system-use check.
- Richer theme resources: major updates to FluentDark.xaml and FluentLight.xaml (expanded color palette, control styles/templates, system brushes) to modernize visuals and controls.
- Startup/UI behavior: improved autostart/minimize-to-tray handling, consistent ShowInTaskbar/Visibility logic, OnSourceInitialized hook to reapply caption theme, and apply DWM immersive dark caption via DwmSetWindowAttribute.
- Robust UI error handling: throttle dispatcher exception dialog to avoid multiple dialogs using an interlocked flag and short time window.
- MainWindow refactor: introduce ShowWindowFromTray helper, unify show/activate flows, apply caption theming, and adjust several shortcut handlers to use the helper.
- Tab switching: add SemaphoreSlim guard and improved selection logic to debounce concurrent tab changes; prompt/save/discard unsaved settings when switching away from Settings; dispose semaphore on shutdown.
- PerformanceViewModel: debounce/gate top-process refreshes with SemaphoreSlim and a pending flag to avoid overlapping refreshes; update TopCpuProcesses on UI dispatcher and refresh selected process impact safely.
- Misc: small XAML cleanups (Settings tab header simplification), add COMPLIANCE_AUDIT.md to .gitignore, and various logging/error message tweaks.

These changes aim to reduce UI flicker on startup, respect user/system theme preferences, harden UI interactions, prevent concurrent refresh race conditions, and add CI/DevSecOps checks.
2026-04-11 17:41:13 +02:00
PrimeBuild-pc 010dee679f Add docs, themes, services and UI updates
Large changeset adding documentation, themes, converters and wiring between UI and services. Key changes:

- Rewrote .gitignore to standardize build, IDE, OS and project-specific ignores.
- Added comprehensive documentation: ADVANCED_CPU_FEATURES.md, API_REFERENCE.md, ARCHITECTURE_GUIDE.md, DEVELOPER_GUIDE.md, GAME_BOOST_VALIDATION.md, CLAUDE.md, PROJECT_STRUCTURE.md, UI_STYLE_GUIDE.md, TRADEMARK.md.
- Added theme resources (Themes/FluentLight.xaml, Themes/FluentDark.xaml) and merged FluentLight into App.xaml resource dictionary.
- Added NullToBoolConverter and registered it in App.xaml.
- Enabled a DEBUG-only console test mode in App.xaml.cs (--test flag) and guarded AllocConsole with #if DEBUG.
- Added new service/support files (AtomicFileWriter, StoragePaths, ThemeService) and numerous updates across Services (CpuTopologyService, CoreMaskService, PowerPlanService, ProcessMonitorManagerService, ProcessService, NotificationService, SystemTrayService, SystemTweaksService, EnhancedLoggingService, etc.).
- Updated many ViewModels and Views to support new functionality (CPU topology, power plan and game-boost features) and tests (Tests/TestRunner.cs).
- Added build-release.ps1 and various project metadata updates.

Overall this commit introduces documentation, theming, new converters and test/debug support, plus extensive service and UI wiring for CPU topology, process monitoring, power plans and game boost features.
2026-04-10 03:58:51 +02:00
Focaccina-Ripiena37 bb3602342a Load bundled power plans by default, improve core mask handling, and update project licensing 2025-12-23 13:52:51 +01:00
Focaccina-Ripiena37 e46e380c1e Add About section and manual GitHub update check 2025-12-21 18:11:54 +01:00
Focaccina-Ripiena37 cff7d00067 Initial clean import 2025-12-21 04:19:52 +01:00