65 Commits
Author SHA1 Message Date
poli0981 43f94f1b65 Merge pull request #38 from poli0981/claude/release-v1.2.0
docs(changelog): release v1.2.0
v1.2.0
2026-06-21 19:56:18 +07:00
poli0981andClaude Opus 4.8 bfc1b8c219 docs(changelog): release v1.2.0
Promote the [Unreleased] section to [1.2.0] (2026-06-21) and add its
compare link. Covers the 38 new commands, OS-build version flags and
the Japanese language.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 19:55:45 +07:00
poli0981 4c1be876f7 Merge pull request #37 from poli0981/claude/vnext-changelog
docs(changelog): record v-next batch (commands, version flags, Japanese)
2026-06-21 19:51:59 +07:00
poli0981andClaude Opus 4.8 fa2bc278ce docs(changelog): record 38 new commands, OS version flags, Japanese (Unreleased)
Adds an [Unreleased] entry covering the v-next batch on main (PRs #33,
#35, #36): 38 new catalog commands (78 → 116), OS-build version-aware
hiding of version-specific commands, and the new Japanese language.
No version bump — release tagging left for a separate decision.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 19:51:19 +07:00
poli0981 1bd91115d8 Merge pull request #36 from poli0981/claude/vnext-japanese
feat(i18n): add Japanese (JA) language
2026-06-21 19:46:47 +07:00
poli0981andClaude Opus 4.8 d9af1c5fcb feat(i18n): add Japanese (JA) language
Adds a complete Japanese satellite (Strings.ja.resx, 501 keys covering
all UI + catalog strings) and wires it into the language picker and the
View menu (日本語). Live switching works the same as EN/VI — no restart.

- ResxKeyTests now asserts every catalog + UI key resolves in EN, VI
  AND JA with no parent fallback, via a shared AssertKeysExist helper.
- ISettingsService doc notes "ja" as a valid culture code.

Translations are machine-generated; a native Japanese review pass is
recommended. 189 tests pass; the ja satellite assembly builds and the
app launches.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 19:44:59 +07:00
poli0981 dec3efaf68 Merge pull request #35 from poli0981/claude/vnext-version-flags
feat(catalog): OS-build version flags (hide non-applicable commands)
2026-06-21 19:32:00 +07:00
poli0981 1732f9371c Merge pull request #33 from poli0981/claude/vnext-catalog-commands
feat(catalog): add 38 new commands (78 → 116)
2026-06-21 19:11:25 +07:00
poli0981andClaude Opus 4.8 ee90b5b746 feat(catalog): OS-build version flags to hide non-applicable commands
Adds optional minOsBuild/maxOsBuild to a command; the WPF catalog
projection hides commands that do not apply to the current OS build, so
Windows 11-only tweaks never appear on Windows 10 (and vice-versa).

- Domain: CommandDefinition gains MinOsBuild/MaxOsBuild + the pure
  AppliesToOsBuild(build) predicate (no Win32 dependency).
- Infrastructure: CommandDto maps the fields; CatalogLoader validates
  positive values and maxOsBuild >= minOsBuild. ICatalogProvider still
  returns the full set, so the Debug panel and tests are unaffected.
- WPF: CatalogViewModelBuilder.Build(catalog, osBuild) filters once,
  centrally — covering the list, palette, category counts and every
  dashboard. The OS build comes from the existing ISystemInfoService.
- Catalog: gate the Win11 context-menu, taskbar-alignment and
  clock-seconds tweaks (minOsBuild 22000 / 22621).

Tests: AppliesToOsBuild theory + catalog range/positive validation;
189 pass. App launches without startup regressions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 19:07:54 +07:00
poli0981andClaude Opus 4.8 200645e623 feat(catalog): add 38 new commands across all 10 categories (78 → 116)
Adds 38 vetted, embedded commands spanning system-info, network,
tweaks, cleanup, power, diagnostics, updates, security and developer
groups — e.g. installed updates/drivers/BIOS/apps/monitors,
netstat/arp/route/wifi/proxy, dark-mode + Win11 taskbar/clock tweaks,
thumbnail/font/prefetch cleanup, balanced plan + power requests +
fast-startup toggle, Task/Device/Services consoles + gpresult, winget
sources + Store reset, Defender status/full-scan, firewall on/off,
WSL shutdown, Sandbox off, long-paths toggle.

- Reversible tweaks wired as set↔revert pairs; dev.sandbox.on now links
  to the new dev.sandbox.off.
- EN + VI resource keys added for every command (ResxKeyTests enforces
  both with no fallback).
- Win11-only tweaks (taskbar*, clockseconds*) ship ungated here; the
  OS-build version-flag mechanism follows in a separate change.

All 167 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 18:58:07 +07:00
poli0981 52aad7d7ff Merge pull request #32 from poli0981/claude/changelog
docs: add public CHANGELOG.md
2026-06-19 16:41:37 +07:00
poli0981andClaude Opus 4.8 279aa3a24c docs: add public CHANGELOG.md (v1.0.0, v1.1.0, v1.1.1)
Adds a Keep a Changelog / SemVer changelog at the repo root covering the
initial release and the v-next feature line, and links it from the README
documentation table. (The detailed working notes in docs/ stay internal.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 16:40:51 +07:00
poli0981 de3ed23687 Merge pull request #31 from poli0981/claude/vnext-fixes
fix: cmd user-command hang + recipe dupes + sidebar scrollbar
v1.1.1
2026-06-19 16:33:16 +07:00
poli0981andClaude Opus 4.8 68e62f3f22 fix: cmd user-commands hang, recipe duplicate steps, sidebar scrollbar
Post-v1.1.0 fixes reported from testing.

- User commands hanging on cmd: SystemProcessRunner now redirects and
  immediately closes stdin, so an interactive process (e.g. "cmd" with
  no /c) gets EOF and exits instead of blocking forever. Additionally,
  UserCommandFactory.NormalizeArguments prepends /c for cmd (e.g. "cmd"
  + "ping google.com" -> "cmd /c ping google.com") so the command runs
  and exits; the run confirmation shows the effective command line.
  PowerShell and other executables are unchanged.
- Recipes: AddStep no longer adds a command already in the chain, so a
  recipe never runs one command multiple times.
- Sidebar: hide the vertical scrollbar on the command-groups list.
- Tests for the cmd /c normalization (cmd/cmd.exe/path, existing /c|/k,
  powershell, empty args) + ToDefinition applying it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 16:30:27 +07:00
poli0981 5126561937 Merge pull request #30 from poli0981/claude/vnext-dot7-dashboard
feat(dashboard): maintenance suggestions + local NL search (v-next Đợt 7)
v1.1.0
2026-06-19 15:21:58 +07:00
poli0981andClaude Opus 4.8 c386021b81 feat(dashboard): maintenance suggestions + local NL search (v-next Đợt 7)
Implements C5 + C7 from docs/Extra.md Part 2 (final wave).

- Application: pure MaintenanceSuggestions.For(SystemStatus) (low system-
  drive space -> Disk Cleanup; uptime > 7 days -> restart) and
  NaturalLanguageSearch.Suggest (EN/VI phrase -> catalog keyword).
  Natural-language search is 100% LOCAL — no LLM, no network (golden rule #5).
- WPF: Home shows a "Maintenance suggestions" section (reason + optional
  Open button for the suggested catalog command). The catalog search bar
  shows a "Did you mean: <keyword>" chip for natural-language queries;
  clicking it applies the keyword.
- EN/VI .resx; docs (Changelog/roadmap).
- Tests: NL phrase mapping (+ null/already-keyword cases) and the
  maintenance heuristics.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 15:21:06 +07:00
poli0981 594499d604 Merge pull request #29 from poli0981/claude/vnext-dot6-registry
feat(registry): before/after diff + undo via revert (v-next Đợt 6)
2026-06-19 15:15:25 +07:00
poli0981andClaude Opus 4.8 bc132b82e6 feat(registry): read-only before/after diff + undo via revert (v-next Đợt 6)
Implements C6 + C2 from docs/Extra.md Part 2, with a safe design that
preserves the Elevator invariant (no new privileged write path).

- Catalog: optional affectedRegistryValues field (RegistryValueRef in
  Domain + DTO + mapping), declared on tweak.showext / tweak.showhidden.
- Application: IRegistryService (read-only) + pure RegistrySnapshot
  (Capture + Diff -> RegistryChange).
- Infrastructure: WindowsRegistryService over Microsoft.Win32.Registry;
  unknown hive / missing key / access error all read as null.
- WPF: after a run with affectedRegistryValues, MainViewModel re-reads
  the values and appends a localized before/after diff to the console.
- Undo (C2): History entries whose command has a vetted RevertCommandId
  get an "Undo" button that runs that catalog revert command — NO
  arbitrary registry writes, the Elevator still only accepts catalog ids.
- EN/VI .resx; docs (Changelog/roadmap/Security.md §4).
- Tests: snapshot diff (null/changed), Win32 read smoke (known/missing/
  bad hive), and the catalog schema field.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 15:13:39 +07:00
poli0981 f1f974768b Merge pull request #28 from poli0981/claude/vnext-dot5-usercmds
feat(user-commands): non-elevated user-defined commands (v-next Đợt 5)
2026-06-19 15:04:38 +07:00
poli0981andClaude Opus 4.8 17d5a5cc19 feat(user-commands): non-elevated user-defined commands (v-next Đợt 5)
Implements B1 from docs/Extra.md Part 1, safety-critical (golden rule #1).

- Domain: UserCommand (id/name/executable/arguments).
- Application: IUserCommandStore port + UserCommandFactory.ToDefinition,
  which FORCES RequiresAdmin=false and namespaces the id as "user:" so
  it can never be routed to — or accepted by — the Elevator.
- Infrastructure: JsonUserCommandStore -> %AppData%\CommandForge\
  user-commands.json, fully separate from the embedded catalog. No
  telemetry; corrupt-file fallback.
- WPF: new "My commands" section (sidebar + View menu) with a persistent
  warning banner. Create/edit/save/delete; Run shows the exact command
  line and that it runs without admin, then executes asInvoker via the
  forced-non-elevated definition. Console bound to the shared execution.
- EN/VI .resx; docs/Security.md §2.1 (threat model).
- Tests: ToDefinition never RequiresAdmin, id is namespaced, the
  definition routes to the executor (never elevation), store round-trip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 15:01:05 +07:00
poli0981 60774a59c6 Merge pull request #27 from poli0981/claude/vnext-dot4-recipes
feat(recipes): command chains / macros (v-next Đợt 4)
2026-06-19 14:54:00 +07:00
poli0981andClaude Opus 4.8 9332722997 feat(recipes): command chains / macros with stop-on-error (v-next Đợt 4)
Implements B2 from docs/Extra.md Part 1 (Macro / recipe).

- Domain: Recipe (named, ordered list of catalog command ids).
- Application: IRecipeStore port + pure RecipeFlow.ShouldStop
  (stop on failure / cancel / reboot-required).
- Infrastructure: JsonRecipeStore -> %AppData%\CommandForge\recipes.json
  (source-gen, schema version, corrupt-file fallback). No telemetry;
  recipes reference only vetted catalog ids.
- WPF: ExecutionViewModel.RunRecipeAsync runs steps sequentially
  through the same broker session (one UAC for an all-admin chain),
  streaming a per-step header and stopping per RecipeFlow. New Recipes
  shell section (sidebar + View menu) with RecipesViewModel/RecipesView:
  build/reorder/remove steps from the catalog, save/delete recipes, and
  Run with a single aggregated confirmation (warns on dangerous steps).
  Each finished step is recorded in the execution history.
- EN/VI .resx keys; tests for RecipeFlow and the recipe store.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 14:51:39 +07:00
poli0981 3c20113651 Merge pull request #26 from poli0981/claude/vnext-dot3-portability
feat(settings): import/export + named profiles (v-next Đợt 3)
2026-06-19 14:39:42 +07:00
poli0981andClaude Opus 4.8 fc985d259a feat(settings): import/export + named profiles (v-next Đợt 3)
Implements C3 + C4 from docs/Extra.md Part 2.

- Application: PortableSettings (machine-portable subset: appearance,
  behavior, favorites) + pure SettingsTransfer (Capture/Apply);
  ISettingsFile (import/export) and IProfileService ports.
- Infrastructure: JsonSettingsFile (read/write a chosen .json) and
  JsonProfileService -> %AppData%\CommandForge\profiles.json, both via
  a shared source-gen context with a schema version + corrupt-file
  fallback. No telemetry; import never carries executable commands.
- WPF: new Settings "Backup & profiles" section — Export/Import
  buttons and a named-profile picker (apply/delete + save-current).
  Import/apply route appearance/language/font through the existing
  observable-property setters (live apply + persist); favorites are
  written to settings and the shell re-syncs via a new
  SettingsViewModel.PortableSettingsApplied event.
- EN/VI .resx keys; tests for capture/apply round-trip, file
  round-trip/fallbacks, and profile CRUD/persistence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 14:36:17 +07:00
poli0981 a371cd1e48 Merge pull request #25 from poli0981/claude/vnext-dot2-history
feat(history): execution history + re-run (v-next Đợt 2)
2026-06-19 14:24:28 +07:00
poli0981 3713c8189a Merge pull request #24 from poli0981/claude/serene-wright-eae288
build: assembly metadata + Velopack --packAuthors (v-next Đợt 1)
2026-06-19 14:24:09 +07:00
poli0981andClaude Opus 4.8 ad91973a3f feat(history): persistent execution history + re-run (v-next Đợt 2)
Adds a local execution history (C1 from docs/Extra.md Part 2).

- Domain ExecutionRecord; Application IExecutionHistoryService port +
  pure ExecutionHistory helper (newest-first, cap 200, no de-dupe).
- Infrastructure JsonExecutionHistoryService -> %AppData%\CommandForge\
  history.json (source-gen context, schema version, corrupt-file
  fallback). No telemetry.
- ExecutionViewModel exposes LastResult; MainViewModel records each
  finished, non-cancelled run via IClock + the history service.
- New History shell section (sidebar button + View menu) with
  HistoryViewModel/HistoryView: per-run time/status/duration, "Run
  again" (re-runs through the normal confirm/elevation flow) and
  "Clear history". Runs of commands removed from the catalog show
  their id and cannot be re-run.
- EN/VI .resx keys; tests for the cap helper and JSON round-trip /
  fallbacks.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 14:12:55 +07:00
poli0981andClaude Opus 4.8 ef83c88083 build: add assembly metadata + Velopack --packAuthors
Đợt 1 of the post-v1.0 line (metadata + packaging).

- Directory.Build.props: inheritable package/assembly metadata
  (Product, Authors/Company=poli0981, Copyright, Description,
  RepositoryUrl/PackageProjectUrl, default Version 1.0.0).
  AssemblyVersion is intentionally NOT pinned so it follows Version
  (stamped from the git tag at publish), keeping the in-app About /
  Report-Bug version accurate.
- scripts/pack.ps1: pass --packTitle / --packAuthors to vpk pack
  (correct plural flag) and -p:FileVersion to dotnet publish.
- tests: AssemblyMetadataTests verifies Company / Product / Copyright.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 13:58:54 +07:00
poli0981 4c5c9c7573 Merge pull request #23 from poli0981/claude/deps-bump
deps: bump dependencies and GitHub Actions (consolidates Dependabot PRs)
v1.0.0
2026-06-18 20:16:38 +07:00
poli0981andClaude Opus 4.8 5236ceb5a3 fix(release): SHA-256 checksums step produced an empty file
`Get-ChildItem -Path <dir> -Exclude 'checksums.txt'` returns nothing without
a trailing wildcard or -Recurse (a PowerShell quirk), so checksums.txt was
empty and `gh release upload` failed with HTTP 400 (Bad Content-Length) in the
v1.0.0 run. Filter with Where-Object instead. The release artifacts themselves
(Setup.exe, full nupkg, portable zip, RELEASES, manifest) published fine.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 20:11:09 +07:00
poli0981andClaude Opus 4.8 a2e44e1e3b deps: bump dependencies and GitHub Actions (consolidates Dependabot PRs)
Consolidates the eight open Dependabot PRs (#14-#21) into one change to
avoid the workflow-file conflicts they have with each other.

NuGet:
- Microsoft.Windows.CsWin32 0.3.296 -> 0.3.298
- Microsoft.NET.Test.Sdk 17.14.1 -> 18.6.0
- coverlet.collector 6.0.4 -> 10.0.1
- xunit.runner.visualstudio 3.1.4 -> 3.1.5

GitHub Actions:
- actions/checkout 4 -> 6
- actions/setup-dotnet 4 -> 5
- github/codeql-action 3 -> 4
- crazy-max/ghaction-virustotal 4 -> 5 (vt_api_key/files/update_release_body
  inputs verified unchanged in v5)

0-warning Release build; 105 tests pass; actionlint clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 20:06:44 +07:00
poli0981 1c6be68681 Merge pull request #22 from poli0981/claude/phase6d-ui
Phase 6d: deferred 5c UI — dialogs, Tools restore point, Language submenu
2026-06-18 19:50:39 +07:00
poli0981andClaude Opus 4.8 979346e170 Phase 6d: deferred 5c UI — dialogs, Tools restore point, Language submenu
Finishes the Phase-5c menu/dialog items that were deferred.

- KeyboardShortcutsDialog (Help -> Keyboard shortcuts): read-only list of
  the shortcuts actually wired in the shell.
- PortableInfoDialog (File -> Portable info): installed vs portable (from
  IUpdateService.IsUpdateSupported), config/log folders, version.
- AboutDialog (About -> About CommandForge): name/version/links + no-data
  note + a Terms button. Repoints the About menu from the old Settings/About
  navigation (ShowAboutCommand removed).
- LegalViewerWindow (About -> Terms & Privacy): read-only reuse of the 6b
  LegalDocumentsView.
- Tools -> Create System Restore Point: runs the vetted catalog command via
  the elevation broker (reuses the confirm + console flow; CanExecute guards
  on command presence / not-running).
- View -> Language submenu (System / English / Tiếng Việt) with radio
  checkmarks via a new StringEqualsConverter + SettingsViewModel.SetLanguage.

Dry-run remains deferred to v2 (noted in docs/Extra.md).

0-warning Release build; 105 tests pass (added dialog resx parity); app boots
cleanly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 19:44:46 +07:00
poli0981 e302a85636 Merge pull request #13 from poli0981/claude/phase6c-cicd
Phase 6c: CI/CD, Velopack release pipeline, version fix, build/update docs
2026-06-18 19:33:33 +07:00
poli0981andClaude Opus 4.8 f0d62490f2 Phase 6c: CI/CD, Velopack release pipeline, version-flow fix, build/update docs
Workflows (.github/workflows/):
- build.yml: Windows restore + dotnet format --verify + Release build
  (0-warning gate) + tests, on PR/push to main.
- codeql.yml: project-specific CodeQL C# (Windows, builds CommandForge.slnx).
  The shared reusable codeql-csharp.yml runs on Linux and expects a .sln, so
  it cannot build this WPF/.slnx app.
- release.yml: on tag v*, install vpk, download the previous release for the
  delta base (continue-on-error on first release), publish self-contained +
  vpk pack, publish the GitHub Release (vpk upload github), attach SHA-256
  checksums.txt, and optionally submit to VirusTotal (gated on VT_API_KEY).
- announce-release.yml + notify-ci-failure.yml: thin callers of the reusable
  Discord workflows in poli0981/.github (secrets: inherit).
- dependabot.yml: weekly nuget + github-actions updates.

Fix: scripts/pack.ps1 now passes -p:Version/-p:InformationalVersion to
dotnet publish, so the in-app "App version" matches the release tag instead of
defaulting to 1.0.0.

Docs (English, public): BUILD.md, RELEASING.md, UPDATES.md — including the
Velopack update mechanism (first vs subsequent release and how deltas are
produced) and the required repo secrets.

No source changes; 0-warning Release build, 104 tests pass; actionlint clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 19:27:49 +07:00
poli0981 f653e52f02 Merge pull request #12 from poli0981/claude/phase6b-docs
Phase 6b: public docs + legal + Legal Gate links
2026-06-18 19:20:57 +07:00
poli0981andClaude Opus 4.8 e30ce870c4 Phase 6b: public docs + legal + Legal Gate links
Public, English-language docs and community-health files (the internal
docs/ specs stay Vietnamese + gitignored). License stays GPLv3.

- Repo root: README (rewritten, with AI disclosure + SmartScreen/SHA-256
  notes), EULA (GPLv3), PRIVACY, DISCLAIMER, THIRD-PARTY-NOTICES,
  MAINTAINERS.
- .github/: CONTRIBUTING (incl. the auto-ignored-contributions rules),
  SECURITY (private reporting + no-signing/VirusTotal), CODE_OF_CONDUCT
  (Contributor Covenant), ISSUE_TEMPLATE (bug/feature/config),
  PULL_REQUEST_TEMPLATE.
- Legal Gate: the four tabs now show a localized summary + a clickable
  "Read full text on GitHub" link to the public docs, via a reusable
  LegalDocumentsView (also used by the 6d Legal Viewer). Terms version
  bumped 1.0 -> 1.1 so existing users re-accept once.
- Strings.cs reduced to Get() (the strongly-typed members are now unused
  since the Legal Gate moved to {res:Loc}); resx keys retained.

0-warning Release build; 104 tests pass (added Legal/menu resx parity).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 19:19:31 +07:00
poli0981 f6b61fc35a Merge pull request #11 from poli0981/claude/phase6a-cleanup
Phase 6a: format pass + remove dead Strings properties
2026-06-18 19:10:21 +07:00
poli0981andClaude Opus 4.8 6178ba46df Phase 6a: format pass + remove dead Strings properties
- .editorconfig: charset utf-8-bom -> utf-8. The source files are UTF-8
  without BOM; aligning the rule to reality avoids rewriting every file
  with a BOM (a noisy, no-value diff) and matches the cross-platform
  convention. `dotnet format --verify-no-changes` now passes.
- dotnet format pass (whitespace/EOL normalization; AssemblyInfo spacing).
- Remove unused strongly-typed Strings properties (AppTitle, Menu*,
  Sidebar*, Pane*, ComingSoon). The UI binds via {res:Loc Key}/Strings.Get,
  not these members; the .resx keys are retained. The strict analyzer gate
  (IDE0005/IDE0051/CA1823 as errors) already keeps private/usings clean,
  so this is the remaining dead public API.

0-warning Release build; 103 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 19:08:25 +07:00
poli0981 8468676522 Merge pull request #10 from poli0981/claude/phase5c-home-a11y
Phase 5c: Home dashboard, favorites, window-state, accessibility
2026-06-18 18:06:29 +07:00
poli0981andClaude Opus 4.8 cf737fc71e Phase 5c: fix dark-mode settings text, palette close crash, complete menu bar
- Settings dark mode: the section nav (Appearance/Logs/...) showed black
  text because the NavRadio style had no BasedOn and fell back to the
  default WPF RadioButton template. Inherit the MaterialDesign implicit
  style so the text follows the theme.
- Command Palette: fix InvalidOperationException ("Cannot ... while a
  Window is closing") when double-clicking a result. Close() deactivated
  the window, whose Deactivated handler called Close() again. Route all
  closes through a re-entrancy guard.
- Menu bar completion (UI.md section 3):
  - File: Open config folder, Open log folder; Ctrl+Q on Exit.
  - View: Theme + Font size submenus (radio, checked via EnumToBoolean),
    Full screen (F11).
  - About (was empty): About CommandForge (-> Settings/About), License,
    Source on GitHub.
  - Help: Guide/Wiki, Check for updates (F5).
  Added SetThemeCommand/SetFontSizeCommand (SettingsViewModel) and
  ShowAboutCommand/OpenWikiCommand (MainViewModel); F5/F11/Ctrl+Q keys.

103 tests pass (added a menu-keys resx parity test); 0-warning Release
build; app verified to launch cleanly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 18:04:27 +07:00
poli0981andClaude Opus 4.8 a8fd0bf78d Phase 5c review fixes: dark-mode contrast, Home layout, log/cursor alignment
Addresses issues found while testing the running app:
- Dark mode: the Deep Purple accent was too dark to read on dark
  backgrounds. ThemeService now applies a lighter primary (Deep Purple
  200) for the dark base theme and keeps Deep Purple 500 for light, so
  flat-button text, tabs, sidebar selection and the favorite star stay
  legible. Fixes it everywhere via the shared PrimaryHueMid brushes.
- Report bug: the multiline description caret now starts at the top
  (VerticalContentAlignment=Top).
- Log Viewer: entries pin to the top instead of appearing centred.
- Home: more left padding; recent/favorites rows grow to fit the two-
  line (title + description) content instead of clipping; the sidebar
  Settings button no longer sits flush against the bottom edge.
- Settings: config.json is recreated with defaults on startup if it was
  deleted while the app was closed.

102 tests pass; 0-warning Release build; app verified to launch cleanly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 15:32:18 +07:00
poli0981andClaude Opus 4.8 6a198872d1 Phase 5c: Home dashboard, favorites, window-state, accessibility
Completes Phase 5 (Polish):
- Home dashboard (default screen): recent commands, pinned favorites,
  and a read-only system-status widget (Windows + build, RAM, system
  drive, uptime) via ISystemInfoService. Status is read locally with
  no process spawn, no elevation and no network (golden rules).
- Favorites: pin/unpin from the list + detail star, persisted by id in
  config.json; a Favorites sidebar item filters the catalog to pins.
- Recent commands: last 10 run command ids tracked for Home.
- Window placement: persist + restore size/position/maximized, clamped
  to the virtual screen so a stale multi-monitor position never lands
  off-screen.
- Accessibility: AutomationProperties.Name on new controls + palette
  and confirmation inputs; heading semantics on Home; Ctrl+H opens Home.

Implementation notes:
- ISystemInfoService uses Environment.OSVersion + CsWin32
  GlobalMemoryStatusEx + DriveInfo + TickCount64 (AllowUnsafeBlocks for
  the generated interop).
- Pure, unit-tested helpers RecentCommands.Add / Favorites.Toggle and
  WindowPlacement.IsOnScreen.
- 102 tests pass; 0-warning Release build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 14:33:48 +07:00
poli0981 ae7f37db37 Merge pull request #9 from poli0981/claude/phase5b-diagnostics
Phase 5b: Diagnostics — Log Viewer, Debug panel, crash handler, bug report
2026-06-18 13:35:49 +07:00
poli0981 fcbb3d2572 Merge pull request #8 from poli0981/claude/phase5a-foundation
Phase 5a: Settings, runtime theme/font/language, in-shell navigation
2026-06-18 13:35:21 +07:00
poli0981andClaude Opus 4.8 899bd93e37 Phase 5b: Log Viewer, Debug panel, global crash handler, bug report
Diagnostics slice of Phase 5 (builds on 5a's in-shell nav):
- Structured logging: InMemoryLogStore now stores LogEntry (timestamp/level/message)
  + raises EntriesChanged; new ILogReader contract. A shared Serilog LoggingLevelSwitch
  (ILogLevelController) makes the level runtime-adjustable. ILogMaintenance exports a
  .zip (streams each log-*.txt with shared read so today's locked file is included),
  reports size, and deletes rolled files.
- Log Viewer (in-shell section, Ctrl+L / Tools menu): live entries, level + text filter,
  per-level color (theme-safe; Information inherits body), auto-scroll, open-folder /
  export-.zip / clear.
- Debug panel (in-shell, Tools + Settings>Advanced): verbose log dump, catalog
  counts + validation errors (now exposed via ICatalogProvider.ValidationErrors),
  system-info dump with copy.
- Global crash handler: Dispatcher/AppDomain/TaskScheduler -> structured Serilog log
  (no sensitive data) + friendly ErrorDialog (message, error code, Copy details,
  Report bug, Close); re-entrancy guard; recovers dispatcher exceptions.
- Report a bug (Help menu + from ErrorDialog): auto-gathered environment, export
  log .zip with review reminder, opens a prefilled GitHub issue. User-initiated; no
  auto-send (Privacy).
- Settings: new Logs (level / size / open / export / clear) and Advanced (run mode /
  config path / open Debug panel / reset-to-defaults — preserves terms + logs) sections;
  ISettingsService.LogLevel persisted and applied at startup.

EN/VI strings + AutomationProperties added. Dry-run deferred. 87 tests pass
(store/filter/report-template/catalog-errors/settings/DI/resx); 0-warning Release build;
Log Viewer smoke-verified live in dark mode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 13:25:08 +07:00
poli0981andClaude Opus 4.8 adb898702b Phase 5a fixes: "System default" language revert + dark-mode contrast
- Language: "System default" now reverts to the OS culture. SetCulture had
  overwritten CultureInfo.CurrentUICulture, so "follow OS" resolved to the
  last-picked language. LocalizationManager captures the OS culture once
  (SystemCulture) and uses it for the follow-OS option (+ test).
- Dark-mode contrast:
  - Console / command-preview boxes used MaterialDesignTextFieldBoxBackground,
    which renders light in dark mode (shadowed by MaterialDesign2.Defaults, not
    refreshed by runtime SetTheme) -> light text on light box. Switched to
    MaterialDesignToolBarBackground, which follows the theme.
  - "Confirm before Dangerous" was IsEnabled=False (dimmed to near-unreadable in
    dark mode); now non-interactive (IsHitTestVisible/Focusable=False) at full
    contrast with a lock icon.
  - Danger badge text White -> near-black for AA contrast on the badge.

Verified by launching in Dark mode and capturing the console + Settings; 59 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 12:38:56 +07:00
poli0981andClaude Opus 4.8 d49531385a Phase 5a: Settings screen, runtime theme/font/language, in-shell navigation
Foundation slice of Phase 5 (polish):
- Settings model: AppTheme/FontScale enums + 9 new ISettingsService settings
  (theme, language, font size, sidebar/badges, confirm-caution, restore point,
  auto-scroll, warn-on-cancel), persisted to config.json (string enums).
- Runtime i18n, no restart: LocalizationManager (INotifyPropertyChanged indexer) +
  LocExtension now returns a live Binding, so {res:Loc} flips language instantly;
  catalog display strings refresh in place on culture change.
- ThemeService (Light/Dark/System via MaterialDesign PaletteHelper, tracks OS) and
  FontScaleService (AppFontSize DynamicResource); applied at startup from settings.
- In-shell navigation: MainWindow content swaps between CatalogView (extracted) and
  a new SettingsView via CurrentSection; opened by the sidebar gear / View menu / Ctrl+,.
- Settings screen: Appearance (live theme/lang/font + sidebar/badges), Behavior &
  Safety (Dangerous-confirm locked on), Updates (auto-check + Check now + version),
  About (version, GPLv3/GitHub links, "no data collected"). EN/VI strings + a11y names.
- Consumption: confirmation honors ConfirmCaution (Dangerous always confirms); restore
  point, auto-scroll, warn-on-cancel, sidebar-collapse and badges read the settings.

Tests: settings round-trip + defaults, LocalizationManager culture flip, Settings UI
key coverage EN/VI. 58 tests pass; 0-warning Release build; clean startup smoke.

Diagnostics (Log Viewer/Debug/crash handler) are 5b; Home/favorites/full a11y are 5c.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 00:07:37 +07:00
poli0981 292326ad2b Merge pull request #7 from poli0981/claude/phase4-velopack
Phase 4: Velopack auto-update
2026-06-17 23:26:28 +07:00
poli0981 95dfa87a18 Merge pull request #5 from poli0981/claude/catalog-expansion
Catalog: add 37 backlog commands (41 → 78)
2026-06-17 23:23:46 +07:00