88 Commits

Author SHA1 Message Date
PrimeBuild-pc fd5f5fa208 Prepare visual refresh release v1.1.6 2026-05-17 01:59:30 +02:00
PrimeBuild-pc da907d210e Clean up analyzer warnings 2026-05-17 01:54:32 +02:00
PrimeBuild-pc 62c4dd0de8 Polish remaining Windows 11 visual surfaces 2026-05-17 01:44:50 +02:00
PrimeBuild-pc 93dc8fcdc9 Polish core Windows 11 settings views 2026-05-17 01:25:09 +02:00
PrimeBuild-pc a3efe558e7 Retune shell theme toward Windows 11 styling 2026-05-17 00:56:05 +02:00
PrimeBuild-pc 8e5780cdb3 Polish theme settings and bundled power plans v1.1.5 2026-05-17 00:17:12 +02:00
PrimeBuild-pc 65f8c08f26 Clean up release workflow assets 2026-05-16 23:16:10 +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
PrimeBuild-pc 66cae4556c Fix dashboard restore and off-screen positioning v1.1.4 2026-05-16 19:19:55 +02:00
PrimeBuild-pc 0b98746b2d Update .gitignore 2026-05-14 14:04:59 +02:00
Prime Build 9ae26db8ba Replace cover image with new URL
Updated the cover image in the README file.
2026-05-13 04:00:04 +02:00
Prime Build 1bf2406dfd Change banner image link in README.md
Updated image link in README.md for the application banner.
2026-05-13 03:59:25 +02:00
Prime Build 0e3d205442 Update screenshot in README.md 2026-05-13 03:54:59 +02:00
PrimeBuild-pc ac5e275af9 Update Readme.md 2026-05-13 03:53:33 +02:00
PrimeBuild-pc 88dde7cc9b Pin GitHub Actions Windows runners to windows-2022 2026-05-12 21:41:44 +02:00
PrimeBuild-pc 0e63b22e3b Update release.yml 2026-05-10 00:30:41 +02:00
PrimeBuild-pc 2e98dda635 Fix git-cliff installation in release workflow v1.1.3 2026-05-09 23:49:09 +02:00
PrimeBuild-pc fbced16e56 Prepare v1.1.3 release metadata 2026-05-09 23:32:53 +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 d0f38aa914 Fix package manager release manifests 2026-05-09 12:02:36 +02:00
PrimeBuild-pc 30a572a9da Update Chocolatey package to v1.1.2.1
Bump threadpilot Chocolatey package to 1.1.2.1 and include fix artifact. Adds threadpilot-1.1.2.1-fix.zip and placeholder chocolatey files (cd, choco). Simplifies silent install arguments and adds exit code 1 to validExitCodes in chocolateyInstall.ps1 to better handle installer return values. Also add CHOCOLATEY_MODERATOR_NOTICE.md to .gitignore.
2026-05-07 02:10:04 +02:00
PrimeBuild-pc b0bfe6ee18 setup .exe checksum update chocolatey-fix-1.1.2.1 2026-05-07 00:26:33 +02:00
PrimeBuild-pc 88caa61f08 Add ThreadPilot v1.1.2 installer URL and checksum
Replace placeholder installer metadata in chocolatey/tools/chocolateyInstall.ps1 with the actual ThreadPilot v1.1.2 installer URL and SHA256 checksum. Also add a short comment indicating the installer version. This ensures the Chocolatey package installs the correct release rather than relying on automation-time substitutions.
2026-05-06 18:33:40 +02:00
PrimeBuild-pc 69cc510bc1 Harden services and release coverage pipeline 2026-04-21 19:50:56 +02:00
PrimeBuild-pc 8901150818 Add winget and Chocolatey publish automation
Add automated publish jobs to the release workflow and supporting scripts/docs. .github/workflows/release.yml gains publish-winget and publish-chocolatey jobs that gate on repository secrets, download release artifacts, and either submit a winget-pkgs PR or push a Chocolatey package when the release succeeds. Added build/submit-winget-pr.ps1 to create a fork branch, add manifests and open a PR to microsoft/winget-pkgs, and build/publish-chocolatey.ps1 to pack and push a Chocolatey nupkg (handling idempotent already-exists cases). README.md and docs/release/PACKAGING.md updated to document the new automation and required secrets (WINGET_GITHUB_TOKEN, WINGET_FORK_OWNER, CHOCOLATEY_API_KEY).
2026-04-21 03:01:07 +02:00
PrimeBuild-pc a27906291c Pin git-cliff; remove vendored gitleaks-bin
Replace Docker/action-based changelog generation with a runner-native, pinned git-cliff install (GIT_CLIFF_VERSION=2.10.0) and checksum verification in the release workflow. Update the changelog step to run git-cliff and emit release notes to GITHUB_OUTPUT.

Add .gitignore patterns to prevent committing gitleaks binaries/archives and remove the vendored gitleaks-bin directory and files. Add build/close-secret-scanning-alerts.ps1: a gh-cli-driven PowerShell tool to list and optionally resolve open GitHub secret-scanning alerts (dry-run by default).

Update CONTRIBUTING, RELEASE_RUNBOOK, COMPLIANCE_AUDIT, and SECURITY_CHECKLIST docs with a security tooling policy: do not vendor scanner binaries, install scanners at CI runtime, and document the remediation rationale. These changes address recurring secret-scanning false positives and improve release reproducibility and supply-chain hygiene.
2026-04-21 02:49:38 +02:00
PrimeBuild-pc 6c5f4e0e54 Update README.md 2026-04-21 01:20:31 +02:00
PrimeBuild-pc 0639e0858c chore(release): prepare v1.1.2 release alignment v1.1.2 2026-04-21 01:12:41 +02:00
PrimeBuild-pc 8adea37188 Make installers unattended; add release asset validation
Switch the release job runner to ubuntu-latest and add a validation step to ensure required release artifacts exist (installer .exe, package .zip, SHA256SUMS, winget manifests, and SBOM). Update Installer/setup.iss to disable the Ready page and remove the post-install auto-launch so package-manager installs remain unattended. Improve Chocolatey scripts: add additional silent flags and include common restart exit codes (3010, 1641) for both install and uninstall; make uninstall parsing robust by extracting the executable and base args from the registry UninstallString before invoking Uninstall-ChocolateyPackage.
2026-04-20 22:26:56 +02:00
Prime Build 88faf8a28e Update README title to remove version number
Removed version number from the project title.
2026-04-20 21:51:21 +02:00
PrimeBuild-pc 63886b497f fix(release): resolve sbom manifest path under artifacts 2026-04-16 02:18:06 +02:00
PrimeBuild-pc 4897aa25db fix(release): stabilize sbom artifact path and upload 2026-04-16 02:07:04 +02:00
PrimeBuild-pc fc2d26e324 fix(ci): track publish profiles for release workflow 2026-04-16 01:57:57 +02:00
PrimeBuild-pc cae2764803 chore(release): prepare 1.1.2 manifests for winget and chocolatey 2026-04-16 01:54:18 +02:00
PrimeBuild-pc f97bf16d52 Merge branch 'main' of https://github.com/PrimeBuild-pc/ThreadPilot 2026-04-16 01:32:46 +02:00
PrimeBuild-pc 606065475d Update LogViewerView.xaml 2026-04-16 01:32:42 +02:00
PrimeBuild-pc a5a832c80b Require admin privileges at startup
Switch the application to require administrator elevation at launch (change manifest to requireAdministrator) and enforce early exit when not elevated. Update App.xaml.cs to log elevation failures, show an elevation-required message, and shut down non-elevated instances (preserving a smoke-test conditional). Update user-facing dialogs and README/TROUBLESHOOTING/SECURITY/PACKAGING docs to reflect the new startup privilege model and packaging requirement.
2026-04-16 01:21:04 +02:00
Prime Build a920abe1d3 Delete RELEASE_PLAN.md 2026-04-16 00:54:03 +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 2806662072 Use RUNNER_TEMP for gitleaks and add flags
Download and extract gitleaks into a temporary RUNNER_TEMP directory ($toolDir) and remove any existing copy before extraction. Adjust Expand-Archive/tar commands to use $toolDir and resolve the executable from that path. Add a step to remove vendored tool docs from the scan scope to avoid known false positives. Run gitleaks with --no-git and --exit-code 1 so the scan targets the working tree and fails the job on findings.
2026-04-15 23:47:18 +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 275ac72fa9 Add installer build script, docs; tweak UI/theme
Add a PowerShell installer builder (build/build-installer.ps1) and a pre-tag release checklist (docs/plans/PRE_TAG_RELEASE_CHECKLIST.md); update packaging docs to recommend the new script and document Inno Setup theming. Make Inno Setup scripts (Installer/setup.iss and Installer/Installer.iss) more configurable by introducing MyWizardStyle and guarding MyAppBuildDir so WizardStyle can use dynamic Windows theming. Persist system theme preference when the user has no explicit preference (App.xaml.cs and MainWindow.xaml.cs) and switch to IsHitTestVisible for the performance-overlay blur to avoid disabling input globally. Prevent closing the app while the performance intro is visible with a user-facing message. Minor .gitignore cleanup and packaging text updates.
2026-04-15 02:25:36 +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 2965c9049b Merge branch 'main' of https://github.com/PrimeBuild-pc/ThreadPilot v1.1.1 2026-04-13 18:26:38 +02:00
PrimeBuild-pc 679d66afaf fix of the CodeQL warning 2026-04-13 18:26:36 +02:00