1792 Commits
Author SHA1 Message Date
Chris Titus b1b01a53c6 Update sponsors in README (#5307) 2026-12-01 09:35:40 -06:00
Chris Titus 0006bba70d Update sponsors in README (#5304) 2026-11-30 09:30:59 -06:00
70c23c8064 fix(tweaks): update classic context menu registry workaround (#5253)
* fix(tweaks): update classic context menu registry workaround

fix(tweaks): update classic context menu registry workaround

* fix(tweaks): make classic context menu undo safe

* Complete context menu retries and unattended setup

* Keep unattended setup running after context menu errors

* Recover unattended context menu registration after partial failures

* fix(tweaks): limit classic-menu restart to the current session

---------

Co-authored-by: Chris Titus <contact@christitus.com>
Co-authored-by: Chris Titus <7896101+ChrisTitusTech@users.noreply.github.com>
2026-11-18 16:39:31 -06:00
2095298530 chore(gh): repo prettifying (#5260)
* chore(gh): repo prettifying

* Fine, that makes sense

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* This commit is generated by Copilot, I do understand that it can't be a slop, please do not scream at me, I ahave uwutism

* This another PR was also done by Copilot to satisfy CodeRabbit

* chore: remove docs from release drafter

Approved by @seanh1995. Kinda

* chore: bug report prettify

* chore: freaking tabbed markdown, sadistic way to structurize

* chore: exclude automated PRs from labeling and release list

* MAN OUTTA THE BOARD, MAN OUTTA THE BOARD

* fix(ci): handle merged PRs without discussion references

* fix(ci): preserve manual labels and narrow changelog exclusions

* Revert "fix(ci): preserve manual labels and narrow changelog exclusions"

This reverts commit ca07eda58e.

* Revert "fix(ci): handle merged PRs without discussion references"

This reverts commit 766a57e52f.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <7896101+ChrisTitusTech@users.noreply.github.com>
2026-11-18 16:10:44 -06:00
Muhammad Naufal MahdiandChris Titus 335b7ec239 fix(ui): state the wait limit in the close prompt (#5259)
* fix(ui): state the wait limit in the close prompt

The close prompt offered to let a running job finish in the console but did
not say that WinUtil stops the job after 120 minutes. A user who picked that
option lost a long install at the limit.

The prompt now names the limit. A test reads the default from
Wait-WinUtilRemainingWork and fails when the two numbers disagree.

* Clarify that closing requests a job stop

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-18 15:03:20 -06:00
Malin FossumandChris Titus 43eaecbacf docs(tweaks): say the Services tweak keeps changed startup types (#5258)
* docs(tweaks): say the Services tweak keeps changed startup types

Services - Set to Manual only changes a service whose startup type is
still the default the tweak expects, and undo only restores a service
that still has the type the tweak set. The guide said this for Windows
Search Indexing but not for the Services tweak, which led to a feature
request for behaviour that already exists (#5254).

* Explain state-based service undo accurately

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-18 15:02:43 -06:00
Malin Fossum a9f8e6279c fix(tweaks): skip missing Explorer view keys in Automatic Folder Discovery (#5241)
* fix(tweaks): skip missing Explorer view keys in Automatic Folder Discovery

Explorer creates the Bags and BagMRU keys only after a folder view has
been saved, and the tweak removes both. On a fresh profile, or on a second
apply or undo, Remove-Item fails with "Cannot find path ... BagMRU" and the
Standard preset reports an error for nothing.

Guard each removal with Test-Path in both InvokeScript and UndoScript so
the tweak stays idempotent. The AllFolders key and the FolderType value
are still written when the keys are absent.

Pester drives the real scripts through Invoke-WinUtilTweaks with the
registry cmdlets mocked, covering apply and undo with the keys present
and missing.

Resolves #5234

* test(tweaks): cover Bags present with BagMRU missing

Applying the tweak recreates Bags\AllFolders, so a second apply finds Bags without BagMRU. That is the state from the report, and the tests only covered both keys present or both missing.
2026-11-18 15:01:31 -06:00
sql 07c513d88e fix: prevent FOSS badges from clipping (#5251) 2026-11-18 13:57:41 -06:00
Chris Titus 6ce3ec7f42 Update sponsors in README (#5262) 2026-11-17 09:30:59 -06:00
Ivan Lepekha 06146fe50d chore(gh): WinOneShot addressation (#5257)
* chore(gh): WinOneShot addressation

PR to prevent #5255

* Fine... I hate Coderabbit
2026-11-15 12:56:20 -06:00
Chris Titus 8ec33e211f Fix Daniel's messup. Nano seconds is a QWORD value NOT DWORD 2026-11-13 13:47:49 -06:00
Chris Titus 74607a0613 chore: Update generated dev docs and JSON links (#5248) 26.11.13 2026-11-12 23:20:00 -06:00
Vyas DevgnaandChris Titus 2ef5e5dc78 feat: queue actions while a job is running, with reorder and cancel (#5207)
* Queue user actions instead of refusing them while a job runs

Start-WinUtilJob -QueueIfBusy parks the job in $sync.JobQueue under the
same lock as the busy test, and Clear-WinUtilActiveJob starts the next
one when a job ends, failed or not. A clock button in the top bar lists
the running and queued jobs and reorders or cancels the queued ones.
Closing the window warns about and discards anything still queued.

* Hold the freed job slot for the queue until its head starts

Clear-WinUtilActiveJob sets \.JobHandoff while queued work remains,
so a new action queues behind the head instead of taking the slot in
the gap before the dispatch runs. Closing with only queued work left
now prompts, and discarding it closes without a console wait.

* Ignore a queued job that repeats work already queued

A second click on the same action with the same selection while the slot
is busy queued the work again, so it ran several times. Jobs are compared
by name and a serialisation of their parameters inside the queue lock.

* Shut the queue atomically when a queued-only close is accepted

The check that nothing started during the prompt and the shutdown flag,
queue clear and handoff reset now happen in one SyncRoot step, so a
handoff either wins and the running-job question is asked again, or is
refused as WinUtil is closing. The XAML test now checks the queue
button's own click handler.

* Stop the queue handing out the slot when the running job is stopped on close

Answering No to the close question set ForceClose but not the shutdown flag,
so the stopped job ending could start a queued one while the window closed.
Both close branches now share Stop-WinUtilQueuedWork, which sets the flag,
clears the queue and ends any handoff under the lock.

* Keep queued operations accessible in a bounded scrolling list

* Snapshot the package manager for queued upgrades

* Prevent queued work from racing close decisions

* Name queued job actions for assistive technology

* Preserve repeated queue actions after intervening work

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 22:01:08 -06:00
Vyas DevgnaandChris Titus 8c549c5034 feat(install): bundle app icons and speed up the app list (#5199)
* feat(install): bundle app icons in the script

config/icons.json holds a 64x64 PNG per application, taken from Dashboard Icons, gilbarbara/logos, Simple Icons, Chocolatey and project repos, so the Install tab draws them without a network request or a cache. Get-WinUtilAppIcon decodes each one once into a frozen bitmap. tools/New-WinUtilIcon.ps1 adds or replaces one.

* feat(install): faster, responsive app cards

Build each category's cards from one XAML parse with shared handlers instead of control by control, build the default tab before the window is shown, fit the cards to the width of each row, draw icons on a theme-aware plate, and make the cards 10% larger.

* feat(install): lift icons off the card with a soft shadow

Replace the solid plate behind each icon with a very light blurred shadow whose colour follows the theme (dark under the light theme, pale under the dark one), enough to separate the logo from the card without a visible box.

* fix(install): keep the card width when the theme changes

The theme loader re-applied a default AppEntryCardWidth, so switching theme shrank the cards back to their minimum. The width is set from the list's size, so it is no longer a theme value.

* fix(install): address review feedback on the app card layout

Refit the cards when the list's scrollbar appears or goes, not only when the window resizes. Keep a card at its minimum width in a viewport narrower than that. Restore the install-rendering test, whose mock had been replaced by a copy of the whole file.

* feat(install): ship icons as one PNG per app in config/icons

Replace the separate icons.json with config/icons/<key>.png, 48x48, so a contributor adding an app drops one image named after its key next to the applications.json entry. Compile.ps1 embeds the folder, the icons shrink from 64px to 48px (about +0.30 MB in winutil.ps1 instead of +0.42 MB), and a test checks that every icon is named after an app and stays under 8 KB.

* fix(install): match the icon doc example to the real key and avoid locking the source

The architecture example used a WPFInstall prefixed key, but applications.json keys have no prefix and the icon file is named after the unprefixed key. New-WinUtilIcon.ps1 now reads its input into memory, so an existing icon can be passed as its own input.

* fix(install): dispose the graphics object in the icon tool

* Preserve icon card dimensions during theme integration

* Document bundled application icons and card sizing

* fix: preserve catalog casing when generating app icons

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 21:16:56 -06:00
deagusandChris Titus e7c3dbbda8 Restore WaaSMedicSvc and clear SYSTEM deny rules in Restore Defaults (#5233)
* Restore WaaSMedicSvc and clear SYSTEM deny rules in Restore Defaults

Restore Defaults stopped touching WaaSMedicSvc when its Set-Service call
was removed, because the launch protected service denies that call. A
machine where another tweak tool disabled the service therefore stayed
disabled, and Set-Service can also fail on update service keys where such
a tool denied SYSTEM write access.

Remove SYSTEM deny rules from the update service keys before restoring
startup types, and set WaaSMedicSvc back to Manual through its registry
start value. Failures are logged as warnings and the workflow continues.

* Document Windows Default service key recovery

Note that Windows Default removes SYSTEM deny rules from update service
registry keys and sets WaaSMedicSvc back to Manual.

* docs: clarify update service repair limitations

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 21:06:06 -06:00
06904b0da5 fix(tweaks): don't fail the Telemetry tweak when Defender is unavailable (#5193)
* fix(tweaks): don't fail the Telemetry tweak when Defender is unavailable

Set-MpPreference throws 0x800106ba when Defender is not running or
installed, so the Telemetry tweak reported an error even though there
was nothing to change on that PC (issue #5190). Catch it and warn
instead, in both the apply and undo scripts, and add a config test that
keeps every Set-MpPreference call guarded.

* test(configs): require each Set-MpPreference call to be guarded

The previous check only looked for the word 'catch' somewhere in the
script, so an unrelated catch block could satisfy it. Walk the
PowerShell AST instead: every Set-MpPreference command must sit in a
try body and pass -ErrorAction Stop.

* fix(tweaks): rethrow Telemetry Defender failures other than availability

The catch-all added for #5190 also swallowed genuine failures, such as a
rejected preference change. Only 0x800106ba (Defender's provider
unavailable) is treated as benign now; anything else rethrows so the
tweak still counts and logs it as failed.

* test(configs): run the Telemetry Defender guard against both outcomes

Execute the extracted try/catch with a mocked Set-MpPreference:
0x800106ba must warn and continue, any other failure must rethrow.

* test(configs): exercise the Defender HResult path

The unavailable-Defender test threw a string containing 0x800106ba, so only the message match was covered. Throw a structured COMException whose message omits the code so the HResult branch is required to pass.

* Tighten Defender unavailable error guard and coverage

---------

Co-authored-by: OpenCode <opencode@localhost>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 21:05:16 -06:00
CompourriandChris Titus 0420eb402d feat(ui): add working view to Install and Tweaks tabs (#5147)
* feat(ui): add working view to Install and Tweaks tabs

While Install/Uninstall/Upgrade or Tweaks/Undo runs, the tab content is replaced with the same spinning arrow used by the Win11 Creator working page, with the live job status beneath it. The bottom progress bar keeps reporting as before.

A new Set-WinUtilWorkingView helper owns the show/hide per tab area, Start-WinUtilJob drives it for its jobs, and Step-WinUtilJob mirrors status into whichever working labels are visible.

* fix(ui): restore app list and working view independently

A dispatcher failure while re-enabling the app list skipped hiding the working view, leaving the panel covering the tab. Each restoration now has its own guard in both the worker and scheduling-failure cleanup paths, with the slot release unchanged.

* fix: keep upgrade working view owned by its job

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 21:04:57 -06:00
dependabot[bot]andChris Titus 3f8ede2017 chore(deps): bump astral-sh/setup-uv from 10.3.2 to 10.3.3 (#5229)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.3.2 to 10.3.3.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v10.3.2...v10.3.3)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 21:02:26 -06:00
v5freake-collabandChris Titus 82860a3222 Update README.md (#5192)
Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 21:01:58 -06:00
OmarandChris Titus f09c4902d1 Skip disabling BitLocker when the system drive is already decrypted (#5162)
* fix(tweaks): skip BitLocker disable on decrypted drives

* Make non-terminating logging fixture independent of error policy

* Surface failures when disabling BitLocker

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 13:12:21 -06:00
Vyas DevgnaandChris Titus 9da0d85a6c fix(ui): keep maximized window title bar on screen (#5197)
* fix(ui): keep maximized window title bar on screen

WindowChrome with CaptionHeight=0 makes Windows place a maximized window past the monitor edges by the resize frame plus the padded border, clipping the title bar and caption buttons. While maximized, inset the window border and WPFMainGrid by one resize-border thickness each. Restored layout is unchanged.

* Make non-terminating logging fixture independent of error policy

* Fit maximized content to the monitor work area

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 13:12:08 -06:00
Malin FossumandChris Titus 5bf08e4599 Add tweak to disable Windows Search indexing (WSearch) (#5223)
* Add tweak to disable Windows Search indexing (WSearch)

Adds WPFTweaksDisableSearchIndexing under Advanced Tweaks - CAUTION. It
sets the WSearch service to Disabled through the service schema, so the
KeepServiceStartup gate and the OriginalType undo path apply, and stops
the running indexer in InvokeScript so disk activity drops without a
reboot. UndoScript starts the service again after undo restores
Automatic. Both scripts check Get-Service first so a missing service
does not log an error. OriginalType is Automatic rather than delayed
start, matching how the Services and Telemetry tweaks already record
delayed-start defaults.

The description carries the slow-search warning the request asked for,
the tweaks guide gets one paragraph, and configs.Tests.ps1 pins the
schema, category and stop/start scripts.

* Stop or start WSearch only after its startup type actually changed

Review feedback on #5223: with KeepServiceStartup on, a WSearch the
user had moved to Manual skips the startup change, but the InvokeScript
still stopped the running service. The scripts now act only when the
service entry produced the expected state: stop when StartType is
Disabled, start again on undo when it is Automatic.

The review also claimed PowerShell 7 reports delayed-start services as
AutomaticDelayedStart. Get-Service returns the plain Automatic value on
both 7.6 and 5.1 for a delayed-start service such as BITS, so the
Automatic OriginalType passes the apply gate on a default install and
stays as is.

Also rewrites the test's regexes, which held a literal line break inside
the character class, to '.*' that cannot cross the script's embedded
newlines.

* Warn when KeepServiceStartup leaves a service startup type alone

When a service already sits at a startup type the tweak does not expect,
KeepServiceStartup skips it without a word, so the tweak logs "completed"
having changed nothing. For the Windows Search tweak this means a WSearch
the user had moved to Manual stays running while the log looks fine.
Report the skip as a WARN line and a console warning, naming the current
and the expected startup type, so the user can see why the tweak had no
effect. Apply and undo both get the line; the tests pin both.

* Document the startup-type guards for the Windows Search tweak

The guide said undo always restores Automatic and starts the service.
Since 86c66e9 the stop and start only run once the startup type actually
changed, and since 2876e5c a preserved startup type is logged as a
warning. Say so in the tweak paragraph and in the general undo rule.

* Make non-terminating logging fixture independent of error policy

* Test search indexing apply and undo behavior

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-11-03 13:11:56 -06:00
Chris Titus 2406e326b1 Update sponsors in README (#5231) 2026-11-02 09:31:08 -06:00
Sean (ANGRYxScotsman) b521c90ea5 Fix session log missing everything after the window opens (#5210)
* Write the session log from every runspace instead of a transcript

The session log was a Start-Transcript on the main thread, and
Write-WinUtilLog wrote through the host so the transcript would pick its
lines up. A transcript only records the runspace that started it, though,
so everything logged from the UI thread or a job worker went to the
console and never reached the file. An exported log stopped at "Starting
the interface thread." no matter what happened afterwards.

Write-WinUtilLog now appends through one writer kept in $sync, opened on
first use and flushed on every line, so any runspace can log to the same
file. Other processes can still read it while it is open, which the
environment report's log bundle relies on. Close-WinUtilLog releases it
on both exits in place of Stop-Transcript, and the first entry records
the WinUtil, PowerShell and Windows versions the transcript header used
to carry. The console echo goes through Write-WinUtilHost.

* Write banners, progress and error lines straight to the host

Write-Host also emits an information record, so anything that collects a
runspace's Write-Host output into the log would pick these up as well:
a boxed banner per job, a line for every progress frame, and a second
copy of an error Write-WinUtilErrorRecord has already logged. They are
console-only, so they now go through Write-WinUtilHost, which writes to
the host directly and looks the same on screen.

* Log Write-Host output from job bodies

The job layer already merged a body's warning and error streams into its
output so they reached the log, but Write-Host went to the console only.
Tweaks, services, registry and DNS changes all report what they did with
Write-Host, so none of "Set ... to ..." or "Setting Service ..." ever
made it into the file.

The body's information stream is merged too, and every record goes to
Write-WinUtilStreamRecord. Write-Host lines are logged and shown again
with their original colours, since redirecting them takes them off the
console. Warnings and non-terminating errors are logged as before.

* Log the UI thread's output while the window is open

The UI runspace's warnings and errors collect on its PowerShell object.
Main logged them only after the window closed, too late for a report
exported during the session, and never logged its Write-Host output,
which is what toggles report through.

The main thread has nothing to do while the window is open, so instead
of blocking it now wakes every 250 ms and moves those streams into the
log, then empties them once more after the window closes. Warnings and
Write-Host lines are already on the console, so they are only written
to the file. Non-terminating errors were never shown, so they are
printed too.

* Describe the new session log wiring in the architecture docs

The logging section said Write-WinUtilLog wrote through the host so a
transcript could capture it, and the threading example showed the main
thread blocking on the window. Both have changed: every thread writes
the file through one shared writer, jobs and the main thread collect
Write-Host output, warnings and errors into it, and banners and progress
use Write-WinUtilHost to stay out of it.

* Replace the transcript logging rule in AGENTS.md

The old rule told agents to write through the host so Start-Transcript
would capture log lines. That is what lost every entry from the UI
thread and the jobs. The rule now says not to use a transcript for the
session log, to log through Write-WinUtilLog, and to use
Write-WinUtilHost for console-only output.

* Write the session log with a UTF-8 BOM

Windows PowerShell 5.1's Get-Content reads a file without a BOM as the
system ANSI code page. The log was written as BOM-less UTF-8, so the
environment report's log bundle turned any non-ASCII text, such as
localized warnings, package names or user paths, into mojibake.

The writer now emits the BOM, as Add-Content -Encoding UTF8 did on 5.1
before. StreamWriter only writes it to an empty file, so reopening the
log after Close-WinUtilLog does not put a second one mid-file.

* Describe the session log in SPEC.md's runtime model

The runtime model covered runspaces and $sync but said nothing about
logging. It now records that every runspace logs through
Write-WinUtilLog's shared writer, that job output and the UI runspace's
streams are collected into the session file, and that console-only
output uses Write-WinUtilHost.
2026-10-30 13:48:01 -05:00
Sean (ANGRYxScotsman) 418a60cb55 Revert back the docs workflow generator step from #5220 (#5222)
* Revert back the docs workflow generator step

Running devdocs-generator.ps1 during deployment published reference pages
built from main, ahead of what the released script (stable or pre-release)
actually contains. Renamed or removed tweaks also lost their pages while the
stable config still linked to them. Reference pages are only regenerated by
the pre-release workflow again, from the same commit the release is built
from, and the docs workflow goes back to triggering on docs/** only.

* Revert back SPEC notes on when reference pages update

The docs workflow no longer regenerates reference pages, so drop that
from the Docs Site section and go back to saying Tweak Explorer reference
links work once the pre-release docs-update PR is merged and redeployed.

* Revert back docs pages describing generation during deployment

The docs README and architecture page said the deployment workflow runs
the generator before building Astro. That is no longer the case, so the
added paragraph and the Documentation Build section come out.

* Revert back generator guide notes on the docs workflow

The guide again says docs.yaml only builds and deploys the committed site
and that JSON links are committed by the pre-release workflow. The note on
JSON-quoted frontmatter stays, since the escaping fix is kept.

* Regenerate OOSU reference page with the escaping fix

The page was last generated in #5219 by the old generator, which left a
bare backslash in %LocalAppData%\winutil. YAML reads that as an invalid
escape and the docs build fails. With the docs workflow no longer
regenerating pages on deploy, the committed page has to build as-is, so
this is the fixed generator's output for it.

* Keep the stable-config condition for Tweak Explorer links

Tweak Explorer reads config from the latest stable release, so a link only
shows once that release's config carries it. Say that alongside when the
reference page itself is deployed.
2026-10-30 11:54:28 -05:00
Chris Titus 113f0d6e93 fix(docs): escape generated metadata before site builds (#5220)
* fix(docs): escape generated metadata before site builds

* docs: align generator guide with deployment builds

* docs: clarify stable-release reference link availability
2026-10-28 16:05:17 -05:00
Chris Titus a94bf5d700 chore: Update generated dev docs and JSON links (#5219) 26.10.28 2026-10-28 15:30:30 -05:00
e0244b3374 Refactor core UI rendering, search matching, and service maintenance loops (#4906)
* refactor: optimize UI elements rendering, search filtering, and service loops

- Replace O(N^2) array concatenations with generic lists in GUI item rendering and tweak checks
- Convert slow pipeline loops (ForEach-Object) to direct foreach runtime enumeration
- Replace wildcard regex matches in app and tweak search with fast string index lookups
- Add timeout protection and batch file cleanup in ISO mounting workflows
- Prevent file-locking exceptions when logging within an active transcript session
- Streamline Windows Update service repair routines and throttle progress updates during DLL reregistration
- Ensure command quote resilience in sanity tests when invoking nested Windows PowerShell parsers

* fix: resolve review feedback on PR #4906

- Find-TweaksByNameOrDescription: respect collapsed category state on
  search reset (mirrors Find-AppsByNameOrDescription); rename $matches
  to $isMatch to avoid shadowing the PS automatic variable
- Invoke-WinUtilCurrentSystem: treat a missing service as a mismatch
  instead of silently passing validation
- Invoke-WinUtilISO: dismount ISO before throwing timeout error to
  prevent stale mounts; restore per-workdir log file for diagnostics
- Test-WinUtilPackageManager: check both managers when both -winget and
  -choco switches are passed
- Invoke-WPFFixesUpdate: restore per-service PercentComplete in the
  Stop-Service loop; abort on failure instead of silently continuing

* fix: keep the Win11 ISO log outside the work directory

Write the modify log to <workDir>.log in %TEMP% instead of a file gated
on $sync["Win11ISOWorkDir"], which is only assigned after a successful
run. The log now starts at the first line, before the work directory is
created, and survives the cleanup that removes that directory, so early
failures leave a diagnostic behind.

Update the empty-search tweak test for the collapsed-category reset
behavior and cover the expanded branch as well.

* test: assert category markers survive the empty-search reset

The reset branch leaves Label.Content alone while the search branch
rewrites "+ X" to "- X". Without these assertions a reset that started
rewriting the marker would desync the label from its collapsed items
and still pass.

* fix: restore UI tweak filtering support for ScrollViewers and StackPanels

* fix(UI): Preserve collapsed state of tweaks categories during search

* test(search): validate real WPF controls in PowerShell 5.1

* test(search): verify the Pester version in WPF validation

---------

Co-authored-by: AI Agent <bot@example.com>
Co-authored-by: vyas-devgna <vyas-devgna@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 15:25:01 -05:00
dependabot[bot]andChris Titus fff1c18e19 chore(deps): bump astral-sh/setup-uv from 10.3.0 to 10.3.2 (#5203)
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.3.0 to 10.3.2.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v10.3.0...v10.3.2)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 14:32:40 -05:00
Chris Titus c02032cc36 fix(security): safely import remote configs and quote workflow refs (#5218)
* fix(security): treat remote configurations as data

* fix(ci): pass branch refs as quoted shell data

* docs(security): recommend authenticated configuration transport
2026-10-28 14:25:19 -05:00
dependabot[bot]andChris Titus 82a2aa2264 chore(deps): bump astro from 7.3.2 to 7.4.3 in /docs (#5217)
* chore(deps): bump astro from 7.3.2 to 7.4.3 in /docs

Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 7.3.2 to 7.4.3.
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@7.4.3/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-version: 7.4.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(deps): normalize the Astro manifest Git blob

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 14:02:29 -05:00
dependabot[bot]andChris Titus fdb9a4f9ee chore(deps): bump sharp from 0.35.4 to 0.35.5 in /docs (#5215)
* chore(deps): bump sharp from 0.35.4 to 0.35.5 in /docs

Bumps [sharp](https://github.com/lovell/sharp) from 0.35.4 to 0.35.5.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Commits](https://github.com/lovell/sharp/compare/v0.35.4...v0.35.5)

---
updated-dependencies:
- dependency-name: sharp
  dependency-version: 0.35.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(deps): normalize the Sharp manifest Git blob

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 14:02:21 -05:00
dependabot[bot] 6590e5cfce chore(deps): bump smol-toml from 1.7.1 to 1.9.1 in /docs (#5216)
Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.7.1 to 1.9.1.
- [Release notes](https://github.com/squirrelchat/smol-toml/releases)
- [Commits](https://github.com/squirrelchat/smol-toml/compare/v1.7.1...v1.9.1)

---
updated-dependencies:
- dependency-name: smol-toml
  dependency-version: 1.9.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-28 14:01:07 -05:00
dependabot[bot] 78bfcd5d2a chore(deps): bump zod from 4.6.1 to 4.6.7 in /docs (#5214)
Bumps [zod](https://github.com/colinhacks/zod) from 4.6.1 to 4.6.7.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.6.1...v4.6.7)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.6.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-28 14:01:00 -05:00
dependabot[bot]andChris Titus 582571be1c chore(deps): bump postcss-selector-parser from 6.1.4 to 6.1.5 in /docs (#5212)
Bumps [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser) from 6.1.4 to 6.1.5.
- [Release notes](https://github.com/postcss/postcss-selector-parser/releases)
- [Changelog](https://github.com/postcss/postcss-selector-parser/blob/6.1.5/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-selector-parser/compare/6.1.4...6.1.5)

---
updated-dependencies:
- dependency-name: postcss-selector-parser
  dependency-version: 6.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 13:50:42 -05:00
dependabot[bot]andChris Titus ef9f779b0b chore(deps): bump undici from 8.10.2 to 8.12.3 in /docs (#5211)
Bumps [undici](https://github.com/nodejs/undici) from 8.10.2 to 8.12.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v8.10.2...v8.12.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 8.12.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 13:50:40 -05:00
dependabot[bot]andChris Titus f30c1f041d chore(deps): bump pillow from 12.3.0 to 13.0.0 in /tools/title-screen (#5195)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 12.3.0 to 13.0.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/12.3.0...13.0.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 13.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 13:47:07 -05:00
Sean (ANGRYxScotsman)andChris Titus e7af142320 (5 of 5) Improve accent contrast and Tweak Explorer controls in the docs (#5181)
* Reorganize docs components into overrides, landing and lib folders

Starlight component overrides now live in src/components/overrides/, the
landing-page-only CornerCard in src/components/landing/, and the shared site
links in src/lib/. This leaves room for the docs UI and landing components that
follow without crowding a single components folder. Only paths change here.

* Add React, GSAP and Lenis to the docs site

Registers the @astrojs/react integration and sets the JSX options in
tsconfig so .jsx components can be used as islands. GSAP (with @gsap/react)
and Lenis are for the landing-page scroll motion added later on.

* Define the hairline colour for the light theme

The light theme set --sl-color-hairline-light and -shade but not
--sl-color-hairline itself, so borders that use it fell back to Starlight's
default instead of matching the other light-theme hairlines.

* Vendor React Bits components for the landing page

Adds Beams, BorderGlow, DotGrid, GlareHover and ShinyText from React Bits
with their licence. Each file notes its source and the only local change,
dropping the Next.js 'use client' directive, which Astro doesn't need.

* Rebuild the docs header with React search, nav and theme toggle

Replaces Starlight's header pieces with our own: a search dialog over the
Pagefind index (Ctrl/Cmd+K), a top navigation with dropdowns and a mobile
panel on splash pages, social links, and a light/dark theme toggle. The
interactive parts are React islands; the header itself stays Astro.

ThemeSelect is overridden with the same toggle, so ThemeProvider no longer
has to keep Starlight's select pickers in sync and only applies the theme
before paint. Icons are Starlight's, as real .svg files under assets/icons/.

* Replace the docs sidebar and its mobile menu button

The sidebar is now our own server-rendered Astro list (recursive for nested
groups) and the narrow-screen menu button is a small React island. Because the
island wrapper breaks Starlight's sibling selector for opening the sidebar,
the open state is read from body[data-mobile-menu-expanded] instead.

* Replace the table of contents with React scroll-spy versions

Both the wide-screen table of contents and the collapsible narrow-screen one
share a useActiveHeading hook that tracks which heading is being read, so the
current entry stays highlighted as the page scrolls.

* Override the page title and pagination

Page titles get a breadcrumb built from the sidebar, kept out of the search
index with data-pagefind-ignore. Pagination is restyled to match the rest of
the docs UI. Both are plain Astro since neither needs client-side code.

* Add scroll motion and React Bits effects to the landing page

The hero gets an interactive dot grid background, a pill eyebrow with
shimmering text, and a glare sweep over the screenshot. Below it, a stats row
counts the generated tweak and feature pages, the solution cards gain a
border glow, the feature list becomes a single column with a sticky heading
and progress bar, and the CTA sits on WebGL light beams.

landing-motion.js drives the rest with GSAP and Lenis: hero entrance, trust
bar marquee, problem list and timeline highlights, odometer stats, a closing
wordmark, and a back-to-top button. index.mdx only enables it when the
visitor doesn't prefer reduced motion, and the hero shows anyway after 4s if
the script never runs.

* Add a custom 404 page

Uses the splash hero with an error eyebrow and links back to the home page
and guides, plus the landing page's entrance animation. Without a hero
image, the hero collapses to one centred column that fills the screen.

* Document the docs site's React UI and folder layout

The docs README and SPEC now explain that Starlight still owns routing,
Markdown and the search index while the UI comes from component overrides,
with static parts in Astro and interactive parts as React islands. The
README's project tree covers the new folders, and SPEC notes the vendored
React Bits licence and that landing motion is skipped for reduced motion.

* Keep third-party frontend code inspection inside the container

Adds a project learning that React Bits sources, npm registry metadata and
package tarballs are fetched and reviewed inside the winutil-astro container
rather than with host curl or python, and that only the reviewed files are
committed.

* Make the docs container's Astro cache writable

The .astro tmpfs was mounted root-owned, but the container runs as the
node user, so Astro failed with EACCES when writing its content cache.
Mount it world-writable instead.

* Build the docs image on Node 24

Make the Node version a build argument, defaulting to 24 and set from
docker-compose.yml, so it can be changed in one place without editing
the FROM line. The docs site builds cleanly on Node 24.

* Install Playwright browsers in the docs image

Bake Chromium, Firefox and WebKit plus their system libraries into the
image so browser checks against the docs site can run inside the
container instead of on the host. The browsers go to a shared path
owned by the node user so they stay usable after the USER switch.

* Comment the docs Dockerfile's install and user steps

Note why dependencies are copied and installed before the rest of the
source, why lifecycle scripts are left enabled, and why the image
switches to the node user.

* Give the docs container a fixed name

With a fixed name the running dev server can be reached with
`docker exec winutil-astro ...`, e.g. to run Playwright checks against
it, without looking up the generated compose name first.

* Raise libuv's thread pool size in the docs container

Node's default pool of four threads is easily saturated by Vite and
Astro's file I/O over the Docker Desktop bind mount, which slows the
dev server and builds. Allow 32 threads instead.

* Pin Playwright in the docs image

The Dockerfile ran npx playwright install with no Playwright in
package.json, so every image build pulled whichever release was newest
on npm and installed browser builds to match it. Add @playwright/test
as a pinned dev dependency, install from the lockfile with npm ci, and
pass --no-install so a missing package fails the build instead of
falling back to a fresh download.

* Install Playwright browsers before copying the docs source

The browser install ran after COPY . ., so any edit under docs/
invalidated that layer and the next build downloaded every browser
again. It only depends on package.json, so run it right after npm ci,
where it stays cached until the Playwright pin changes.

* Document Playwright in the docs container

The docs image now installs Playwright browsers pinned through
package.json, but nothing said so. Add the Playwright command to the
docs README, note that bumping the pin needs an image rebuild, and tell
agents to run browser checks in the container against the pinned
version. The README also said the image runs npm install; it now runs
npm ci.

* Skip the trust strip when the bar has no width

trustStrip() clones the bar until the track is wider than the
viewport. If the bar were ever hidden, each clone would add no width
and the loop would never finish, hanging the landing page. Leave the
bar alone when it has no width.

* Explain the empty catch in the theme toggle

The localStorage write was wrapped in an empty catch, which reads like
a swallowed error and trips the no-empty lint rule. Say why it's safe
to ignore: the theme still changes, it just isn't remembered.

* Attach the Pagefind retry handler once per load

loadPagefind() added a new catch handler to the cached promise on every
call, and reset it with an assignment inside an arrow expression. Only
attach it when a load starts, so a failed load is still forgotten and
retried on the next search.

* Set the landing cards' surface from the theme in CSS

LandingGlowCard picked the card background from useStarlightTheme(),
which is always dark on the server, so light-theme visitors saw dark
cards until each one hydrated as it scrolled into view. Pass a CSS
variable that theme.css sets per theme instead. BorderGlow only applies
its light border and shadow when it's given a hex colour, so those
styles are repeated for the light theme alongside the variable.

* Fall back to dark when the theme script can't read storage

localStorage.getItem throws when the browser blocks storage, which
stopped the pre-paint script before it set data-theme and left the page
without a theme. Catch the error and use the dark default, as the theme
toggle already does for its write.

* Keep Enter in search from opening the previous query's results

The result list stays on screen while the next query loads, and Enter
opened its highlighted entry, so typing a new query and pressing Enter
straight away went to a result for the old one. Remember which query
the results came from and ignore the arrow keys and Enter until they
match what's in the box.

* Make the previous query's search results unclickable while loading

Blocking the keys still left the old result links clickable while the
next query loaded, so a click could open a result for the previous
query. Mark the list inert and dim it until the results match what's in
the box.

* Keep the back-to-top button visible at the bottom of the page

The button's ScrollTrigger ended at 'max' and used toggleClass, which
removes the class on leaving the end as well as the start. Reaching the
bottom of the page hid the button, right where it's most useful. Add
the class on entering and only remove it when scrolling back above the
start.

* Take the hidden back-to-top button out of the tab order

The hidden button only had zero opacity and no pointer events, so Tab
could still land on an invisible control. Hide it with visibility as
well, delayed until the fade-out has finished.

* Only point search's active descendant at a usable result

The search input set aria-activedescendant whenever there were results,
including when the list isn't rendered because search is unavailable,
and while it's inert with the previous query's results. Screen readers
then announced nothing or a stale result. Use the same conditions as
the list.

* Hide the narrow-screen table of contents on wide screens

The mobile table of contents is server-rendered at every width and only
hidden by Starlight's wrapper from 72rem up. Hide it at the same
breakpoint in its own styles, so it doesn't depend on that wrapper.

* Put the hero screenshot's shadow on its GlareHover wrapper

GlareHover clips everything inside it to its rounded box, so the
shadow on .wu-window was cut off and never showed. Move the shadow and
the window's max-width onto GlareHover's root from the hero's own
styles, which leaves the vendored component untouched.

* Skip the table of contents marker when no heading is active

On a page with no headings, active is undefined, and the marker effect
queried a link for "#undefined". Return early instead.

* Return focus to the nav button when Escape closes its menu

Escape closed the open dropdown or the mobile nav panel but left focus
on the link inside it, which was now hidden, so the next key press lost
the keyboard user's place. Move focus back to the button that opened
the menu before closing it.

* Return focus to the toggle when Escape closes the mobile contents

Same as the nav menus: Escape hid the narrow-screen table of contents
while one of its links had focus. Move focus back to the toggle first.

* Retry search when the dialog reopens after Pagefind failed

If Pagefind couldn't load its index, for example because the
connection dropped, it kept that failed load, and reopening the dialog
left the typed query showing as unavailable until it was edited. Throw
the failed instance away with destroy() so the next attempt starts
over, and run the query again whenever the dialog opens.

* Only show the production-build search note on the dev server

When search failed on the live site it said search was only available
in production builds, which is meant for people running the dev
server. Show that note in dev only, and otherwise say search couldn't
load.

* Return focus to the menu button when Escape closes the sidebar

On narrow screens, Escape closed the sidebar while one of its links had
focus, leaving focus on a hidden link. Move focus back to the menu
button first, as the nav menus do.

* Render the hero eyebrow in the right theme colour before hydration

The eyebrow's text colour came from useStarlightTheme(), which is
always dark on the server, so light-theme visitors briefly saw the
dark theme's low-contrast grey. Give the server-rendered text a CSS
variable that follows the theme; ShinyText still takes over once it
hydrates.

* Leave Enter alone in search while an input method is composing

With a Japanese, Chinese or Korean input method, Enter commits the
candidate text, but the search box treated it as opening the
highlighted result. Ignore the arrow keys and Enter while the key event
is part of a composition.

* Move focus to the page title after back-to-top

Activating back-to-top with the keyboard scrolled to the top but left
focus on the button, which then hid itself at the bottom of the page,
so the next Tab jumped to the footer and scrolled back down. Once the
scroll finishes, focus the page title the way the skip link targets it.

* Keep search shortcuts off while the results are hidden

When a search failed, the result list was hidden, but results left
over from an earlier query were still there. Typing that query again
made them current, so Enter opened a result that wasn't on screen. Use
one condition for whether the list is showing, for the list itself,
the active descendant and the keyboard shortcuts.

* Leave the landing cards' pointer glow off for reduced motion

The solution cards' BorderGlow follows the pointer around the border
and has no reduced-motion handling of its own, so it still lit up for
visitors who prefer reduced motion, unlike the rest of the landing
page's effects. Hide its glow layers for them and keep the plain
border.

* Only reset Pagefind for the search that's still current

A search that had already been replaced still destroyed the shared
Pagefind instance if it failed late, which could break the newer
search using that instance and show it as unavailable. Leave the reset
and the status to the current search.

* Announce search results and notes to screen readers

The "no results" and "couldn't load" notes were inserted without a live
region, so a screen reader user typing in the search box never heard
that a search had finished or found nothing. Keep one status element in
the dialog for the note, and give it a visually hidden result count
when there are results.

* Fix keyboard, screen reader and resize gaps in the docs UI

Search gets the combobox pattern its results list expects, and only
points aria-controls at the list while it's shown. It now tracks the
newest search, which resets Pagefind on failure even after the dialog
has closed, so the first reopen works once the connection is back.

The header dropdowns, the narrow-screen nav panel and the narrow-screen
contents list close when focus moves out of them, instead of staying
open over the page. The nav panel also closes on an outside click; that
check uses the event's path, because the menu button swaps its icon and
the original target is already detached by then.

The table of contents marker is measured again on resize, so it stays
beside the active entry when entries rewrap. The theme toggle is
labelled with the theme it switches to. The trust strip refills its
copies when the window gets wider, so rotating a phone or widening the
window no longer leaves a blank gap in the loop.

* Keep the active search result in view and its links out of tab order

New results that arrived with the first one already active didn't
scroll it into view, so after scrolling the pane down a new search kept
the old offset and Enter opened a result that was off screen. Scroll
the active result into view when the results change as well.

Each result link was also its own tab stop inside a listbox option, so
focus and the highlighted result could disagree. Results are picked
from the search box with the arrow keys, so take the links out of the
tab order; they still open on click.

* Let the trust strip be paused without hovering

The strip scrolls without end and could only be paused by hovering
with a mouse, so keyboard and touch users had no way to stop it.
Clicking or tapping the strip now pauses it until the next click or
tap, and it stops for good the first time the keyboard is used on the
page. Hovering still pauses it as before.

* Finish tearing down Pagefind before searching again

After a failed search, the reset cleared the cached Pagefind before its
destroy() had finished. A retry straight away could set Pagefind up
again while the old teardown was still running, and when that finished
it wiped the new instance, so the retry failed even with the
connection back. Keep the teardown around and have the next load wait
for it.

* Retry Pagefind's script and close menus across breakpoints

If Pagefind's script itself failed to load, Chromium kept that failed
module download for the rest of the page, so search stayed unavailable
after the connection came back until a reload. A retry now asks for
the script under a new URL; the first load keeps the normal one.

The header dropdowns and the narrow-screen contents list could also be
left open across a breakpoint when focus wasn't inside them, as with a
click in Safari, and came back open when the window was resized back.
Close the header menus whenever they swap at 50em, and the contents
list once it's hidden from 72rem up.

* Add a Config Builder component for building -Config files

A React island that lets people pick apps, tweaks, toggles, features and
AppX packages and download them as a WinUtil config, with the -Config
command to run it. It can also open an existing export, including the
old grouped format, and lists any keys the current release doesn't have.

The catalog is fetched in the browser from the latest stable release tag
rather than bundled from the repo, because -Config runs the stable
release and rejects the whole import on any key it doesn't know. The
config JSON keeps raw line breaks inside InvokeScript strings, which
ConvertFrom-Json accepts and JSON.parse doesn't, so those are escaped
before parsing.

* Add the Config Builder page

Gives the builder its own full-width page at /config-builder/ rather
than a guide, since it's a tool rather than reading material. It's a
top-level sidebar entry next to Store so it stays reachable from the
mobile menu on docs pages, where the header links aren't shown.

* Let the header nav take a list of plain links

SiteNav only knew about the Store link, so a second top-level link had
nowhere to go. It now takes a links array beside the dropdown groups,
rendered in both the desktop nav and the mobile panel, with the same
external-link handling the dropdowns use.

* Link the Config Builder from the header nav

Adds Config Builder as a top-level header link before Store, so it's one
click away from any page, including the landing page and splash pages
where there's no sidebar.

* Point the Automation guide at the Config Builder

The guide only described exporting a config from WinUtil itself. It now
mentions building one in the browser as an alternative.

* Document the Config Builder in the docs README and spec

Adds the config-builder folder to the README's project tree, and notes
in SPEC.md why the page loads its catalog from the latest release
instead of bundling the repo's config files.

* Revoke the Config Builder's download URL after the click

download() revoked the blob URL straight after link.click(). Some
browsers read the blob asynchronously, so revoking in the same task can
cancel the download. Defer the revoke to the next task.

* Keep the Config Builder's selection when a file has nothing to load

Opening any JSON object without WinUtil keys, or a file whose keys the
current release doesn't have, replaced the selection with nothing and
reported zero selections loaded. WinUtil's own import leaves the
selection alone when no key is usable, so do the same and say why.

* Say when the Config Builder can't copy to the clipboard

A blocked clipboard write cleared the Copied state and showed nothing,
so the button looked like it did nothing. Show a notice that points at
selecting the text instead.

* Give each Config Builder download its own file name

Every download was saved as winutil-config.json. If that file was
already in Downloads, Chrome and Edge saved the new one as
"winutil-config (1).json", and the copied command still ran the old
file, silently applying the previous selection. Name each download
with a timestamp and show that exact name in the command.

* Run the release the Config Builder's catalog came from

The command launched https://christitus.com/win, which follows whatever
release is latest when it runs. If a release came out between loading
the page and running the command, a key it dropped would make WinUtil
reject the whole config. Launch the same release's winutil.ps1 by its
tag instead, which is the asset christitus.com/win redirects to, and
say so on the page.

* Include milliseconds in Config Builder download names

The timestamp only went down to the second, so two downloads in the
same second got the same name and the browser could rename the second
one. Add milliseconds so each download's name is its own.

* Read UTF-16 WinUtil exports in the Config Builder

WinUtil writes its export with Out-File, which in Windows PowerShell
5.1 produces UTF-16 with a byte order mark. File.text() always decodes
UTF-8, so a real export opened in the builder failed to parse and was
reported as not a WinUtil config. Read the bytes and pick the decoder
from the byte order mark, falling back to UTF-8.

* Only let the Config Builder's command be copied after a download

The command points at the last downloaded file, so after changing the
selection it still ran the earlier file's selections, not the ones on
screen. Keep the JSON that was last downloaded, and disable copying the
command until the current selection has been downloaded, with the hint
saying to download first.

* Announce Config Builder notices to screen readers

Notices such as a file that couldn't be loaded or a blocked clipboard
only appeared on screen, so screen reader users weren't told about
them. Keep the notice element in the page as a status region, visually
hidden while it's empty, so new notices are announced.

* Move release config loading into a shared module

The Tweak Explorer needs the same latest-release lookup and lenient JSON
parsing that the Config Builder had inline, so both now go through
src/lib/winutil-release.js instead of each carrying its own copy.

* Handle GitHub's rate limit in the Config Builder

The catalog's release lookup goes through GitHub's API, which only
allows 60 anonymous requests an hour per IP address, and a shared
connection can use that up. When it was, the builder only said "GitHub
returned 403". Say plainly that the rate limit has been reached and to
try again later, and keep the release lookup for the browser session
so reloading or coming back to the page doesn't spend more requests.

* Add a Tweak Explorer component

Lists every tweak and toggle from the latest release with the registry
values, service startup types and scripts it changes next to what Undo
restores. Search covers registry paths, service names and script bodies,
and filters narrow by category, preset, kind of change, and whether the
tweak can be fully undone.

* Explain the GitHub rate limit message in the FAQ

The Config Builder now tells people when GitHub's rate limit has been
reached. Add an FAQ entry explaining why that happens, that everyone on
a shared connection counts towards the same limit, and what to do.

* Add the Tweak Explorer page

Gives people a way to check what a tweak does before running it, and
calls out the tweaks Undo can't fully reverse so they know to make a
restore point first.

* Launch the Config Builder's command with christitus.com/win

The command was pinned to the release the catalog came from, so a
release published between building the config and running it couldn't
reject a key it had dropped. In practice that window is tiny, while a
pinned GitHub URL is unfamiliar to paste into an elevated shell and a
saved command keeps running an old release. Go back to the official
launcher the rest of the docs use, which always runs the current
release, and drop the page's note about the pinned release.

* Add a helper for building and reading Config Builder links

Both the Config Builder and the Tweak Explorer need to put a selection in
a /config-builder/#key,key link, and the builder needs to read it back.
Keeping the format in one place means the two can't drift apart. Hashes
that aren't a list of WPF keys are ignored, since Starlight uses the hash
for heading anchors too.

* Let the Config Builder share and open selections as links

People pass setups around on Discord and the forums as JSON files. Share
link copies a URL with the selection in the hash and also puts it in the
address bar in case the clipboard is blocked. Opening one, or changing the
hash in an open tab, loads it the same way as Open a config, including the
notice for keys the current release doesn't have.

* Group the Config Builder and Tweak Explorer under Tools in the sidebar

With two tool pages, a single top-level Config Builder entry no longer
fits, so both sit in a Tools group after Help.

* Let the Tweak Explorer hand picked tweaks to the Config Builder

Each open tweak gets an Add to config toggle, and once anything is picked
a link above the list opens those tweaks in the builder. Picks are
collected here rather than linking each tweak separately, because the
builder keeps nothing between visits and a per-tweak link would replace
whatever was already selected there.

* Move the tool pages into a Tools menu in the header

Replaces the standalone Config Builder link with a Tools dropdown that
holds both tool pages, matching the sidebar.

* Explain share links on the Config Builder and Tweak Explorer pages

Covers the Share link button and how to send tweaks from the explorer to
the builder.

* Document the Tools pages in the docs README and spec

Both pages read config from the latest release rather than the repo, so
new entries show up without a docs rebuild. Preset names, importable key
prefixes and tweak change fields are still hard-coded, so list where they
live and what they mirror in WinUtil.

* Document the share link format in the docs README and spec

Links end up posted in public, so changing the hash format would break
them. Note where the format lives and that the builder has to keep
reading it.

* Use the readable accent for the page breadcrumb

The breadcrumb above each page title used --sl-color-accent, which only
reaches about 4.2:1 against the dark background, under the 4.5:1 WCAG
AA needs for text this size. Switch it to --sl-color-accent-high like
the other accent-coloured text on the site.

* Ask agents to update the Tools pages alongside config changes

Adding a preset, key prefix or new kind of tweak change silently leaves
the Config Builder and Tweak Explorer behind unless they're updated in
the same change.

* List loadKeys as a dependency of the Config Builder's link effect

The hashchange effect called loadKeys but only listed catalog, which
the hooks lint rule reports as a missing dependency. Memoize loadKeys
on the catalog and its key set and list it, so the effect still only
re-subscribes when the catalog loads.

* Use the readable accent for landing page text

The timeline step numbers and the secondary button's hover label had
the same low-contrast accent as the breadcrumb in dark mode. Switch
them to --sl-color-accent-high too; borders and icons keep the brand
blue.

* Show the GitHub rate limit message in the Tweak Explorer

The shared release loader now reports a used-up GitHub rate limit, but
the Tweak Explorer still wrapped every error in "Couldn't load the
tweaks from GitHub (...)". Show the rate limit message on its own, as
the Config Builder does.

* Point at the address bar when a share link can't be copied

Share link also puts the link in the address bar, so when the clipboard
is blocked the general "select the text" notice sends people looking
for text that isn't on the page. Say the link is in the address bar
instead.

* Match the Tweak Explorer's controls to the Config Builder

The two Tools pages sit next to each other but sized the same controls
differently. Give the Explorer's search field the Builder's 2rem height
and padding, and its chips the Builder's padding and text colour.

* Make the GitHub rate limit FAQ entry cover every page that hits it

The entry only mentioned the Config Builder, but the Tweak Explorer
loads from GitHub the same way and shows the same message, and later
pages may too. Word it for any page that loads from GitHub, naming the
two that do now.

* Read share links whose commas were encoded

Some chat and mail apps percent-encode the commas when they pass a link
along, and the builder then ignored the whole selection because %2C
isn't part of a key. Treat %2C as a comma when reading the link.

* Keep the Tweak Explorer's focus ring visible

Each tweak card clips its contents with overflow: hidden, and the
expand button fills the card, so the browser's focus outline was cut
off and keyboard users couldn't see which tweak was focused. Draw the
outline inside the button instead.

* fix(docs): pin generated configs to their catalog release

* fix(docs): describe available undo without promising reversibility

* fix(docs): lock page scrolling while the mobile sidebar is open

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 13:10:06 -05:00
Sean (ANGRYxScotsman)andChris Titus 4c82f39215 (4 of 5) Add share links to the Config Builder and Tweak Explorer (#5180)
* Reorganize docs components into overrides, landing and lib folders

Starlight component overrides now live in src/components/overrides/, the
landing-page-only CornerCard in src/components/landing/, and the shared site
links in src/lib/. This leaves room for the docs UI and landing components that
follow without crowding a single components folder. Only paths change here.

* Add React, GSAP and Lenis to the docs site

Registers the @astrojs/react integration and sets the JSX options in
tsconfig so .jsx components can be used as islands. GSAP (with @gsap/react)
and Lenis are for the landing-page scroll motion added later on.

* Define the hairline colour for the light theme

The light theme set --sl-color-hairline-light and -shade but not
--sl-color-hairline itself, so borders that use it fell back to Starlight's
default instead of matching the other light-theme hairlines.

* Vendor React Bits components for the landing page

Adds Beams, BorderGlow, DotGrid, GlareHover and ShinyText from React Bits
with their licence. Each file notes its source and the only local change,
dropping the Next.js 'use client' directive, which Astro doesn't need.

* Rebuild the docs header with React search, nav and theme toggle

Replaces Starlight's header pieces with our own: a search dialog over the
Pagefind index (Ctrl/Cmd+K), a top navigation with dropdowns and a mobile
panel on splash pages, social links, and a light/dark theme toggle. The
interactive parts are React islands; the header itself stays Astro.

ThemeSelect is overridden with the same toggle, so ThemeProvider no longer
has to keep Starlight's select pickers in sync and only applies the theme
before paint. Icons are Starlight's, as real .svg files under assets/icons/.

* Replace the docs sidebar and its mobile menu button

The sidebar is now our own server-rendered Astro list (recursive for nested
groups) and the narrow-screen menu button is a small React island. Because the
island wrapper breaks Starlight's sibling selector for opening the sidebar,
the open state is read from body[data-mobile-menu-expanded] instead.

* Replace the table of contents with React scroll-spy versions

Both the wide-screen table of contents and the collapsible narrow-screen one
share a useActiveHeading hook that tracks which heading is being read, so the
current entry stays highlighted as the page scrolls.

* Override the page title and pagination

Page titles get a breadcrumb built from the sidebar, kept out of the search
index with data-pagefind-ignore. Pagination is restyled to match the rest of
the docs UI. Both are plain Astro since neither needs client-side code.

* Add scroll motion and React Bits effects to the landing page

The hero gets an interactive dot grid background, a pill eyebrow with
shimmering text, and a glare sweep over the screenshot. Below it, a stats row
counts the generated tweak and feature pages, the solution cards gain a
border glow, the feature list becomes a single column with a sticky heading
and progress bar, and the CTA sits on WebGL light beams.

landing-motion.js drives the rest with GSAP and Lenis: hero entrance, trust
bar marquee, problem list and timeline highlights, odometer stats, a closing
wordmark, and a back-to-top button. index.mdx only enables it when the
visitor doesn't prefer reduced motion, and the hero shows anyway after 4s if
the script never runs.

* Add a custom 404 page

Uses the splash hero with an error eyebrow and links back to the home page
and guides, plus the landing page's entrance animation. Without a hero
image, the hero collapses to one centred column that fills the screen.

* Document the docs site's React UI and folder layout

The docs README and SPEC now explain that Starlight still owns routing,
Markdown and the search index while the UI comes from component overrides,
with static parts in Astro and interactive parts as React islands. The
README's project tree covers the new folders, and SPEC notes the vendored
React Bits licence and that landing motion is skipped for reduced motion.

* Keep third-party frontend code inspection inside the container

Adds a project learning that React Bits sources, npm registry metadata and
package tarballs are fetched and reviewed inside the winutil-astro container
rather than with host curl or python, and that only the reviewed files are
committed.

* Make the docs container's Astro cache writable

The .astro tmpfs was mounted root-owned, but the container runs as the
node user, so Astro failed with EACCES when writing its content cache.
Mount it world-writable instead.

* Build the docs image on Node 24

Make the Node version a build argument, defaulting to 24 and set from
docker-compose.yml, so it can be changed in one place without editing
the FROM line. The docs site builds cleanly on Node 24.

* Install Playwright browsers in the docs image

Bake Chromium, Firefox and WebKit plus their system libraries into the
image so browser checks against the docs site can run inside the
container instead of on the host. The browsers go to a shared path
owned by the node user so they stay usable after the USER switch.

* Comment the docs Dockerfile's install and user steps

Note why dependencies are copied and installed before the rest of the
source, why lifecycle scripts are left enabled, and why the image
switches to the node user.

* Give the docs container a fixed name

With a fixed name the running dev server can be reached with
`docker exec winutil-astro ...`, e.g. to run Playwright checks against
it, without looking up the generated compose name first.

* Raise libuv's thread pool size in the docs container

Node's default pool of four threads is easily saturated by Vite and
Astro's file I/O over the Docker Desktop bind mount, which slows the
dev server and builds. Allow 32 threads instead.

* Pin Playwright in the docs image

The Dockerfile ran npx playwright install with no Playwright in
package.json, so every image build pulled whichever release was newest
on npm and installed browser builds to match it. Add @playwright/test
as a pinned dev dependency, install from the lockfile with npm ci, and
pass --no-install so a missing package fails the build instead of
falling back to a fresh download.

* Install Playwright browsers before copying the docs source

The browser install ran after COPY . ., so any edit under docs/
invalidated that layer and the next build downloaded every browser
again. It only depends on package.json, so run it right after npm ci,
where it stays cached until the Playwright pin changes.

* Document Playwright in the docs container

The docs image now installs Playwright browsers pinned through
package.json, but nothing said so. Add the Playwright command to the
docs README, note that bumping the pin needs an image rebuild, and tell
agents to run browser checks in the container against the pinned
version. The README also said the image runs npm install; it now runs
npm ci.

* Skip the trust strip when the bar has no width

trustStrip() clones the bar until the track is wider than the
viewport. If the bar were ever hidden, each clone would add no width
and the loop would never finish, hanging the landing page. Leave the
bar alone when it has no width.

* Explain the empty catch in the theme toggle

The localStorage write was wrapped in an empty catch, which reads like
a swallowed error and trips the no-empty lint rule. Say why it's safe
to ignore: the theme still changes, it just isn't remembered.

* Attach the Pagefind retry handler once per load

loadPagefind() added a new catch handler to the cached promise on every
call, and reset it with an assignment inside an arrow expression. Only
attach it when a load starts, so a failed load is still forgotten and
retried on the next search.

* Set the landing cards' surface from the theme in CSS

LandingGlowCard picked the card background from useStarlightTheme(),
which is always dark on the server, so light-theme visitors saw dark
cards until each one hydrated as it scrolled into view. Pass a CSS
variable that theme.css sets per theme instead. BorderGlow only applies
its light border and shadow when it's given a hex colour, so those
styles are repeated for the light theme alongside the variable.

* Fall back to dark when the theme script can't read storage

localStorage.getItem throws when the browser blocks storage, which
stopped the pre-paint script before it set data-theme and left the page
without a theme. Catch the error and use the dark default, as the theme
toggle already does for its write.

* Keep Enter in search from opening the previous query's results

The result list stays on screen while the next query loads, and Enter
opened its highlighted entry, so typing a new query and pressing Enter
straight away went to a result for the old one. Remember which query
the results came from and ignore the arrow keys and Enter until they
match what's in the box.

* Make the previous query's search results unclickable while loading

Blocking the keys still left the old result links clickable while the
next query loaded, so a click could open a result for the previous
query. Mark the list inert and dim it until the results match what's in
the box.

* Keep the back-to-top button visible at the bottom of the page

The button's ScrollTrigger ended at 'max' and used toggleClass, which
removes the class on leaving the end as well as the start. Reaching the
bottom of the page hid the button, right where it's most useful. Add
the class on entering and only remove it when scrolling back above the
start.

* Take the hidden back-to-top button out of the tab order

The hidden button only had zero opacity and no pointer events, so Tab
could still land on an invisible control. Hide it with visibility as
well, delayed until the fade-out has finished.

* Only point search's active descendant at a usable result

The search input set aria-activedescendant whenever there were results,
including when the list isn't rendered because search is unavailable,
and while it's inert with the previous query's results. Screen readers
then announced nothing or a stale result. Use the same conditions as
the list.

* Hide the narrow-screen table of contents on wide screens

The mobile table of contents is server-rendered at every width and only
hidden by Starlight's wrapper from 72rem up. Hide it at the same
breakpoint in its own styles, so it doesn't depend on that wrapper.

* Put the hero screenshot's shadow on its GlareHover wrapper

GlareHover clips everything inside it to its rounded box, so the
shadow on .wu-window was cut off and never showed. Move the shadow and
the window's max-width onto GlareHover's root from the hero's own
styles, which leaves the vendored component untouched.

* Skip the table of contents marker when no heading is active

On a page with no headings, active is undefined, and the marker effect
queried a link for "#undefined". Return early instead.

* Return focus to the nav button when Escape closes its menu

Escape closed the open dropdown or the mobile nav panel but left focus
on the link inside it, which was now hidden, so the next key press lost
the keyboard user's place. Move focus back to the button that opened
the menu before closing it.

* Return focus to the toggle when Escape closes the mobile contents

Same as the nav menus: Escape hid the narrow-screen table of contents
while one of its links had focus. Move focus back to the toggle first.

* Retry search when the dialog reopens after Pagefind failed

If Pagefind couldn't load its index, for example because the
connection dropped, it kept that failed load, and reopening the dialog
left the typed query showing as unavailable until it was edited. Throw
the failed instance away with destroy() so the next attempt starts
over, and run the query again whenever the dialog opens.

* Only show the production-build search note on the dev server

When search failed on the live site it said search was only available
in production builds, which is meant for people running the dev
server. Show that note in dev only, and otherwise say search couldn't
load.

* Return focus to the menu button when Escape closes the sidebar

On narrow screens, Escape closed the sidebar while one of its links had
focus, leaving focus on a hidden link. Move focus back to the menu
button first, as the nav menus do.

* Render the hero eyebrow in the right theme colour before hydration

The eyebrow's text colour came from useStarlightTheme(), which is
always dark on the server, so light-theme visitors briefly saw the
dark theme's low-contrast grey. Give the server-rendered text a CSS
variable that follows the theme; ShinyText still takes over once it
hydrates.

* Leave Enter alone in search while an input method is composing

With a Japanese, Chinese or Korean input method, Enter commits the
candidate text, but the search box treated it as opening the
highlighted result. Ignore the arrow keys and Enter while the key event
is part of a composition.

* Move focus to the page title after back-to-top

Activating back-to-top with the keyboard scrolled to the top but left
focus on the button, which then hid itself at the bottom of the page,
so the next Tab jumped to the footer and scrolled back down. Once the
scroll finishes, focus the page title the way the skip link targets it.

* Keep search shortcuts off while the results are hidden

When a search failed, the result list was hidden, but results left
over from an earlier query were still there. Typing that query again
made them current, so Enter opened a result that wasn't on screen. Use
one condition for whether the list is showing, for the list itself,
the active descendant and the keyboard shortcuts.

* Leave the landing cards' pointer glow off for reduced motion

The solution cards' BorderGlow follows the pointer around the border
and has no reduced-motion handling of its own, so it still lit up for
visitors who prefer reduced motion, unlike the rest of the landing
page's effects. Hide its glow layers for them and keep the plain
border.

* Only reset Pagefind for the search that's still current

A search that had already been replaced still destroyed the shared
Pagefind instance if it failed late, which could break the newer
search using that instance and show it as unavailable. Leave the reset
and the status to the current search.

* Announce search results and notes to screen readers

The "no results" and "couldn't load" notes were inserted without a live
region, so a screen reader user typing in the search box never heard
that a search had finished or found nothing. Keep one status element in
the dialog for the note, and give it a visually hidden result count
when there are results.

* Fix keyboard, screen reader and resize gaps in the docs UI

Search gets the combobox pattern its results list expects, and only
points aria-controls at the list while it's shown. It now tracks the
newest search, which resets Pagefind on failure even after the dialog
has closed, so the first reopen works once the connection is back.

The header dropdowns, the narrow-screen nav panel and the narrow-screen
contents list close when focus moves out of them, instead of staying
open over the page. The nav panel also closes on an outside click; that
check uses the event's path, because the menu button swaps its icon and
the original target is already detached by then.

The table of contents marker is measured again on resize, so it stays
beside the active entry when entries rewrap. The theme toggle is
labelled with the theme it switches to. The trust strip refills its
copies when the window gets wider, so rotating a phone or widening the
window no longer leaves a blank gap in the loop.

* Keep the active search result in view and its links out of tab order

New results that arrived with the first one already active didn't
scroll it into view, so after scrolling the pane down a new search kept
the old offset and Enter opened a result that was off screen. Scroll
the active result into view when the results change as well.

Each result link was also its own tab stop inside a listbox option, so
focus and the highlighted result could disagree. Results are picked
from the search box with the arrow keys, so take the links out of the
tab order; they still open on click.

* Let the trust strip be paused without hovering

The strip scrolls without end and could only be paused by hovering
with a mouse, so keyboard and touch users had no way to stop it.
Clicking or tapping the strip now pauses it until the next click or
tap, and it stops for good the first time the keyboard is used on the
page. Hovering still pauses it as before.

* Finish tearing down Pagefind before searching again

After a failed search, the reset cleared the cached Pagefind before its
destroy() had finished. A retry straight away could set Pagefind up
again while the old teardown was still running, and when that finished
it wiped the new instance, so the retry failed even with the
connection back. Keep the teardown around and have the next load wait
for it.

* Retry Pagefind's script and close menus across breakpoints

If Pagefind's script itself failed to load, Chromium kept that failed
module download for the rest of the page, so search stayed unavailable
after the connection came back until a reload. A retry now asks for
the script under a new URL; the first load keeps the normal one.

The header dropdowns and the narrow-screen contents list could also be
left open across a breakpoint when focus wasn't inside them, as with a
click in Safari, and came back open when the window was resized back.
Close the header menus whenever they swap at 50em, and the contents
list once it's hidden from 72rem up.

* Add a Config Builder component for building -Config files

A React island that lets people pick apps, tweaks, toggles, features and
AppX packages and download them as a WinUtil config, with the -Config
command to run it. It can also open an existing export, including the
old grouped format, and lists any keys the current release doesn't have.

The catalog is fetched in the browser from the latest stable release tag
rather than bundled from the repo, because -Config runs the stable
release and rejects the whole import on any key it doesn't know. The
config JSON keeps raw line breaks inside InvokeScript strings, which
ConvertFrom-Json accepts and JSON.parse doesn't, so those are escaped
before parsing.

* Add the Config Builder page

Gives the builder its own full-width page at /config-builder/ rather
than a guide, since it's a tool rather than reading material. It's a
top-level sidebar entry next to Store so it stays reachable from the
mobile menu on docs pages, where the header links aren't shown.

* Let the header nav take a list of plain links

SiteNav only knew about the Store link, so a second top-level link had
nowhere to go. It now takes a links array beside the dropdown groups,
rendered in both the desktop nav and the mobile panel, with the same
external-link handling the dropdowns use.

* Link the Config Builder from the header nav

Adds Config Builder as a top-level header link before Store, so it's one
click away from any page, including the landing page and splash pages
where there's no sidebar.

* Point the Automation guide at the Config Builder

The guide only described exporting a config from WinUtil itself. It now
mentions building one in the browser as an alternative.

* Document the Config Builder in the docs README and spec

Adds the config-builder folder to the README's project tree, and notes
in SPEC.md why the page loads its catalog from the latest release
instead of bundling the repo's config files.

* Revoke the Config Builder's download URL after the click

download() revoked the blob URL straight after link.click(). Some
browsers read the blob asynchronously, so revoking in the same task can
cancel the download. Defer the revoke to the next task.

* Keep the Config Builder's selection when a file has nothing to load

Opening any JSON object without WinUtil keys, or a file whose keys the
current release doesn't have, replaced the selection with nothing and
reported zero selections loaded. WinUtil's own import leaves the
selection alone when no key is usable, so do the same and say why.

* Say when the Config Builder can't copy to the clipboard

A blocked clipboard write cleared the Copied state and showed nothing,
so the button looked like it did nothing. Show a notice that points at
selecting the text instead.

* Give each Config Builder download its own file name

Every download was saved as winutil-config.json. If that file was
already in Downloads, Chrome and Edge saved the new one as
"winutil-config (1).json", and the copied command still ran the old
file, silently applying the previous selection. Name each download
with a timestamp and show that exact name in the command.

* Run the release the Config Builder's catalog came from

The command launched https://christitus.com/win, which follows whatever
release is latest when it runs. If a release came out between loading
the page and running the command, a key it dropped would make WinUtil
reject the whole config. Launch the same release's winutil.ps1 by its
tag instead, which is the asset christitus.com/win redirects to, and
say so on the page.

* Include milliseconds in Config Builder download names

The timestamp only went down to the second, so two downloads in the
same second got the same name and the browser could rename the second
one. Add milliseconds so each download's name is its own.

* Read UTF-16 WinUtil exports in the Config Builder

WinUtil writes its export with Out-File, which in Windows PowerShell
5.1 produces UTF-16 with a byte order mark. File.text() always decodes
UTF-8, so a real export opened in the builder failed to parse and was
reported as not a WinUtil config. Read the bytes and pick the decoder
from the byte order mark, falling back to UTF-8.

* Only let the Config Builder's command be copied after a download

The command points at the last downloaded file, so after changing the
selection it still ran the earlier file's selections, not the ones on
screen. Keep the JSON that was last downloaded, and disable copying the
command until the current selection has been downloaded, with the hint
saying to download first.

* Announce Config Builder notices to screen readers

Notices such as a file that couldn't be loaded or a blocked clipboard
only appeared on screen, so screen reader users weren't told about
them. Keep the notice element in the page as a status region, visually
hidden while it's empty, so new notices are announced.

* Move release config loading into a shared module

The Tweak Explorer needs the same latest-release lookup and lenient JSON
parsing that the Config Builder had inline, so both now go through
src/lib/winutil-release.js instead of each carrying its own copy.

* Handle GitHub's rate limit in the Config Builder

The catalog's release lookup goes through GitHub's API, which only
allows 60 anonymous requests an hour per IP address, and a shared
connection can use that up. When it was, the builder only said "GitHub
returned 403". Say plainly that the rate limit has been reached and to
try again later, and keep the release lookup for the browser session
so reloading or coming back to the page doesn't spend more requests.

* Add a Tweak Explorer component

Lists every tweak and toggle from the latest release with the registry
values, service startup types and scripts it changes next to what Undo
restores. Search covers registry paths, service names and script bodies,
and filters narrow by category, preset, kind of change, and whether the
tweak can be fully undone.

* Explain the GitHub rate limit message in the FAQ

The Config Builder now tells people when GitHub's rate limit has been
reached. Add an FAQ entry explaining why that happens, that everyone on
a shared connection counts towards the same limit, and what to do.

* Add the Tweak Explorer page

Gives people a way to check what a tweak does before running it, and
calls out the tweaks Undo can't fully reverse so they know to make a
restore point first.

* Launch the Config Builder's command with christitus.com/win

The command was pinned to the release the catalog came from, so a
release published between building the config and running it couldn't
reject a key it had dropped. In practice that window is tiny, while a
pinned GitHub URL is unfamiliar to paste into an elevated shell and a
saved command keeps running an old release. Go back to the official
launcher the rest of the docs use, which always runs the current
release, and drop the page's note about the pinned release.

* Add a helper for building and reading Config Builder links

Both the Config Builder and the Tweak Explorer need to put a selection in
a /config-builder/#key,key link, and the builder needs to read it back.
Keeping the format in one place means the two can't drift apart. Hashes
that aren't a list of WPF keys are ignored, since Starlight uses the hash
for heading anchors too.

* Let the Config Builder share and open selections as links

People pass setups around on Discord and the forums as JSON files. Share
link copies a URL with the selection in the hash and also puts it in the
address bar in case the clipboard is blocked. Opening one, or changing the
hash in an open tab, loads it the same way as Open a config, including the
notice for keys the current release doesn't have.

* Group the Config Builder and Tweak Explorer under Tools in the sidebar

With two tool pages, a single top-level Config Builder entry no longer
fits, so both sit in a Tools group after Help.

* Let the Tweak Explorer hand picked tweaks to the Config Builder

Each open tweak gets an Add to config toggle, and once anything is picked
a link above the list opens those tweaks in the builder. Picks are
collected here rather than linking each tweak separately, because the
builder keeps nothing between visits and a per-tweak link would replace
whatever was already selected there.

* Move the tool pages into a Tools menu in the header

Replaces the standalone Config Builder link with a Tools dropdown that
holds both tool pages, matching the sidebar.

* Explain share links on the Config Builder and Tweak Explorer pages

Covers the Share link button and how to send tweaks from the explorer to
the builder.

* Document the Tools pages in the docs README and spec

Both pages read config from the latest release rather than the repo, so
new entries show up without a docs rebuild. Preset names, importable key
prefixes and tweak change fields are still hard-coded, so list where they
live and what they mirror in WinUtil.

* Document the share link format in the docs README and spec

Links end up posted in public, so changing the hash format would break
them. Note where the format lives and that the builder has to keep
reading it.

* Ask agents to update the Tools pages alongside config changes

Adding a preset, key prefix or new kind of tweak change silently leaves
the Config Builder and Tweak Explorer behind unless they're updated in
the same change.

* List loadKeys as a dependency of the Config Builder's link effect

The hashchange effect called loadKeys but only listed catalog, which
the hooks lint rule reports as a missing dependency. Memoize loadKeys
on the catalog and its key set and list it, so the effect still only
re-subscribes when the catalog loads.

* Show the GitHub rate limit message in the Tweak Explorer

The shared release loader now reports a used-up GitHub rate limit, but
the Tweak Explorer still wrapped every error in "Couldn't load the
tweaks from GitHub (...)". Show the rate limit message on its own, as
the Config Builder does.

* Point at the address bar when a share link can't be copied

Share link also puts the link in the address bar, so when the clipboard
is blocked the general "select the text" notice sends people looking
for text that isn't on the page. Say the link is in the address bar
instead.

* Make the GitHub rate limit FAQ entry cover every page that hits it

The entry only mentioned the Config Builder, but the Tweak Explorer
loads from GitHub the same way and shows the same message, and later
pages may too. Word it for any page that loads from GitHub, naming the
two that do now.

* Read share links whose commas were encoded

Some chat and mail apps percent-encode the commas when they pass a link
along, and the builder then ignored the whole selection because %2C
isn't part of a key. Treat %2C as a comma when reading the link.

* fix(docs): pin generated configs to their catalog release

* fix(docs): describe available undo without promising reversibility

* fix(docs): lock page scrolling while the mobile sidebar is open

* fix(docs): label AppX removal and correct tool guidance

* fix(docs): identify the enabled toggle state in config actions

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 12:54:19 -05:00
Sean (ANGRYxScotsman)andChris Titus bf75a3d854 (3 of 5) Add a Tweak Explorer page to the docs (#5179)
* Reorganize docs components into overrides, landing and lib folders

Starlight component overrides now live in src/components/overrides/, the
landing-page-only CornerCard in src/components/landing/, and the shared site
links in src/lib/. This leaves room for the docs UI and landing components that
follow without crowding a single components folder. Only paths change here.

* Add React, GSAP and Lenis to the docs site

Registers the @astrojs/react integration and sets the JSX options in
tsconfig so .jsx components can be used as islands. GSAP (with @gsap/react)
and Lenis are for the landing-page scroll motion added later on.

* Define the hairline colour for the light theme

The light theme set --sl-color-hairline-light and -shade but not
--sl-color-hairline itself, so borders that use it fell back to Starlight's
default instead of matching the other light-theme hairlines.

* Vendor React Bits components for the landing page

Adds Beams, BorderGlow, DotGrid, GlareHover and ShinyText from React Bits
with their licence. Each file notes its source and the only local change,
dropping the Next.js 'use client' directive, which Astro doesn't need.

* Rebuild the docs header with React search, nav and theme toggle

Replaces Starlight's header pieces with our own: a search dialog over the
Pagefind index (Ctrl/Cmd+K), a top navigation with dropdowns and a mobile
panel on splash pages, social links, and a light/dark theme toggle. The
interactive parts are React islands; the header itself stays Astro.

ThemeSelect is overridden with the same toggle, so ThemeProvider no longer
has to keep Starlight's select pickers in sync and only applies the theme
before paint. Icons are Starlight's, as real .svg files under assets/icons/.

* Replace the docs sidebar and its mobile menu button

The sidebar is now our own server-rendered Astro list (recursive for nested
groups) and the narrow-screen menu button is a small React island. Because the
island wrapper breaks Starlight's sibling selector for opening the sidebar,
the open state is read from body[data-mobile-menu-expanded] instead.

* Replace the table of contents with React scroll-spy versions

Both the wide-screen table of contents and the collapsible narrow-screen one
share a useActiveHeading hook that tracks which heading is being read, so the
current entry stays highlighted as the page scrolls.

* Override the page title and pagination

Page titles get a breadcrumb built from the sidebar, kept out of the search
index with data-pagefind-ignore. Pagination is restyled to match the rest of
the docs UI. Both are plain Astro since neither needs client-side code.

* Add scroll motion and React Bits effects to the landing page

The hero gets an interactive dot grid background, a pill eyebrow with
shimmering text, and a glare sweep over the screenshot. Below it, a stats row
counts the generated tweak and feature pages, the solution cards gain a
border glow, the feature list becomes a single column with a sticky heading
and progress bar, and the CTA sits on WebGL light beams.

landing-motion.js drives the rest with GSAP and Lenis: hero entrance, trust
bar marquee, problem list and timeline highlights, odometer stats, a closing
wordmark, and a back-to-top button. index.mdx only enables it when the
visitor doesn't prefer reduced motion, and the hero shows anyway after 4s if
the script never runs.

* Add a custom 404 page

Uses the splash hero with an error eyebrow and links back to the home page
and guides, plus the landing page's entrance animation. Without a hero
image, the hero collapses to one centred column that fills the screen.

* Document the docs site's React UI and folder layout

The docs README and SPEC now explain that Starlight still owns routing,
Markdown and the search index while the UI comes from component overrides,
with static parts in Astro and interactive parts as React islands. The
README's project tree covers the new folders, and SPEC notes the vendored
React Bits licence and that landing motion is skipped for reduced motion.

* Keep third-party frontend code inspection inside the container

Adds a project learning that React Bits sources, npm registry metadata and
package tarballs are fetched and reviewed inside the winutil-astro container
rather than with host curl or python, and that only the reviewed files are
committed.

* Make the docs container's Astro cache writable

The .astro tmpfs was mounted root-owned, but the container runs as the
node user, so Astro failed with EACCES when writing its content cache.
Mount it world-writable instead.

* Build the docs image on Node 24

Make the Node version a build argument, defaulting to 24 and set from
docker-compose.yml, so it can be changed in one place without editing
the FROM line. The docs site builds cleanly on Node 24.

* Install Playwright browsers in the docs image

Bake Chromium, Firefox and WebKit plus their system libraries into the
image so browser checks against the docs site can run inside the
container instead of on the host. The browsers go to a shared path
owned by the node user so they stay usable after the USER switch.

* Comment the docs Dockerfile's install and user steps

Note why dependencies are copied and installed before the rest of the
source, why lifecycle scripts are left enabled, and why the image
switches to the node user.

* Give the docs container a fixed name

With a fixed name the running dev server can be reached with
`docker exec winutil-astro ...`, e.g. to run Playwright checks against
it, without looking up the generated compose name first.

* Raise libuv's thread pool size in the docs container

Node's default pool of four threads is easily saturated by Vite and
Astro's file I/O over the Docker Desktop bind mount, which slows the
dev server and builds. Allow 32 threads instead.

* Pin Playwright in the docs image

The Dockerfile ran npx playwright install with no Playwright in
package.json, so every image build pulled whichever release was newest
on npm and installed browser builds to match it. Add @playwright/test
as a pinned dev dependency, install from the lockfile with npm ci, and
pass --no-install so a missing package fails the build instead of
falling back to a fresh download.

* Install Playwright browsers before copying the docs source

The browser install ran after COPY . ., so any edit under docs/
invalidated that layer and the next build downloaded every browser
again. It only depends on package.json, so run it right after npm ci,
where it stays cached until the Playwright pin changes.

* Document Playwright in the docs container

The docs image now installs Playwright browsers pinned through
package.json, but nothing said so. Add the Playwright command to the
docs README, note that bumping the pin needs an image rebuild, and tell
agents to run browser checks in the container against the pinned
version. The README also said the image runs npm install; it now runs
npm ci.

* Skip the trust strip when the bar has no width

trustStrip() clones the bar until the track is wider than the
viewport. If the bar were ever hidden, each clone would add no width
and the loop would never finish, hanging the landing page. Leave the
bar alone when it has no width.

* Explain the empty catch in the theme toggle

The localStorage write was wrapped in an empty catch, which reads like
a swallowed error and trips the no-empty lint rule. Say why it's safe
to ignore: the theme still changes, it just isn't remembered.

* Attach the Pagefind retry handler once per load

loadPagefind() added a new catch handler to the cached promise on every
call, and reset it with an assignment inside an arrow expression. Only
attach it when a load starts, so a failed load is still forgotten and
retried on the next search.

* Set the landing cards' surface from the theme in CSS

LandingGlowCard picked the card background from useStarlightTheme(),
which is always dark on the server, so light-theme visitors saw dark
cards until each one hydrated as it scrolled into view. Pass a CSS
variable that theme.css sets per theme instead. BorderGlow only applies
its light border and shadow when it's given a hex colour, so those
styles are repeated for the light theme alongside the variable.

* Fall back to dark when the theme script can't read storage

localStorage.getItem throws when the browser blocks storage, which
stopped the pre-paint script before it set data-theme and left the page
without a theme. Catch the error and use the dark default, as the theme
toggle already does for its write.

* Keep Enter in search from opening the previous query's results

The result list stays on screen while the next query loads, and Enter
opened its highlighted entry, so typing a new query and pressing Enter
straight away went to a result for the old one. Remember which query
the results came from and ignore the arrow keys and Enter until they
match what's in the box.

* Make the previous query's search results unclickable while loading

Blocking the keys still left the old result links clickable while the
next query loaded, so a click could open a result for the previous
query. Mark the list inert and dim it until the results match what's in
the box.

* Keep the back-to-top button visible at the bottom of the page

The button's ScrollTrigger ended at 'max' and used toggleClass, which
removes the class on leaving the end as well as the start. Reaching the
bottom of the page hid the button, right where it's most useful. Add
the class on entering and only remove it when scrolling back above the
start.

* Take the hidden back-to-top button out of the tab order

The hidden button only had zero opacity and no pointer events, so Tab
could still land on an invisible control. Hide it with visibility as
well, delayed until the fade-out has finished.

* Only point search's active descendant at a usable result

The search input set aria-activedescendant whenever there were results,
including when the list isn't rendered because search is unavailable,
and while it's inert with the previous query's results. Screen readers
then announced nothing or a stale result. Use the same conditions as
the list.

* Hide the narrow-screen table of contents on wide screens

The mobile table of contents is server-rendered at every width and only
hidden by Starlight's wrapper from 72rem up. Hide it at the same
breakpoint in its own styles, so it doesn't depend on that wrapper.

* Put the hero screenshot's shadow on its GlareHover wrapper

GlareHover clips everything inside it to its rounded box, so the
shadow on .wu-window was cut off and never showed. Move the shadow and
the window's max-width onto GlareHover's root from the hero's own
styles, which leaves the vendored component untouched.

* Skip the table of contents marker when no heading is active

On a page with no headings, active is undefined, and the marker effect
queried a link for "#undefined". Return early instead.

* Return focus to the nav button when Escape closes its menu

Escape closed the open dropdown or the mobile nav panel but left focus
on the link inside it, which was now hidden, so the next key press lost
the keyboard user's place. Move focus back to the button that opened
the menu before closing it.

* Return focus to the toggle when Escape closes the mobile contents

Same as the nav menus: Escape hid the narrow-screen table of contents
while one of its links had focus. Move focus back to the toggle first.

* Retry search when the dialog reopens after Pagefind failed

If Pagefind couldn't load its index, for example because the
connection dropped, it kept that failed load, and reopening the dialog
left the typed query showing as unavailable until it was edited. Throw
the failed instance away with destroy() so the next attempt starts
over, and run the query again whenever the dialog opens.

* Only show the production-build search note on the dev server

When search failed on the live site it said search was only available
in production builds, which is meant for people running the dev
server. Show that note in dev only, and otherwise say search couldn't
load.

* Return focus to the menu button when Escape closes the sidebar

On narrow screens, Escape closed the sidebar while one of its links had
focus, leaving focus on a hidden link. Move focus back to the menu
button first, as the nav menus do.

* Render the hero eyebrow in the right theme colour before hydration

The eyebrow's text colour came from useStarlightTheme(), which is
always dark on the server, so light-theme visitors briefly saw the
dark theme's low-contrast grey. Give the server-rendered text a CSS
variable that follows the theme; ShinyText still takes over once it
hydrates.

* Leave Enter alone in search while an input method is composing

With a Japanese, Chinese or Korean input method, Enter commits the
candidate text, but the search box treated it as opening the
highlighted result. Ignore the arrow keys and Enter while the key event
is part of a composition.

* Move focus to the page title after back-to-top

Activating back-to-top with the keyboard scrolled to the top but left
focus on the button, which then hid itself at the bottom of the page,
so the next Tab jumped to the footer and scrolled back down. Once the
scroll finishes, focus the page title the way the skip link targets it.

* Keep search shortcuts off while the results are hidden

When a search failed, the result list was hidden, but results left
over from an earlier query were still there. Typing that query again
made them current, so Enter opened a result that wasn't on screen. Use
one condition for whether the list is showing, for the list itself,
the active descendant and the keyboard shortcuts.

* Leave the landing cards' pointer glow off for reduced motion

The solution cards' BorderGlow follows the pointer around the border
and has no reduced-motion handling of its own, so it still lit up for
visitors who prefer reduced motion, unlike the rest of the landing
page's effects. Hide its glow layers for them and keep the plain
border.

* Only reset Pagefind for the search that's still current

A search that had already been replaced still destroyed the shared
Pagefind instance if it failed late, which could break the newer
search using that instance and show it as unavailable. Leave the reset
and the status to the current search.

* Announce search results and notes to screen readers

The "no results" and "couldn't load" notes were inserted without a live
region, so a screen reader user typing in the search box never heard
that a search had finished or found nothing. Keep one status element in
the dialog for the note, and give it a visually hidden result count
when there are results.

* Fix keyboard, screen reader and resize gaps in the docs UI

Search gets the combobox pattern its results list expects, and only
points aria-controls at the list while it's shown. It now tracks the
newest search, which resets Pagefind on failure even after the dialog
has closed, so the first reopen works once the connection is back.

The header dropdowns, the narrow-screen nav panel and the narrow-screen
contents list close when focus moves out of them, instead of staying
open over the page. The nav panel also closes on an outside click; that
check uses the event's path, because the menu button swaps its icon and
the original target is already detached by then.

The table of contents marker is measured again on resize, so it stays
beside the active entry when entries rewrap. The theme toggle is
labelled with the theme it switches to. The trust strip refills its
copies when the window gets wider, so rotating a phone or widening the
window no longer leaves a blank gap in the loop.

* Keep the active search result in view and its links out of tab order

New results that arrived with the first one already active didn't
scroll it into view, so after scrolling the pane down a new search kept
the old offset and Enter opened a result that was off screen. Scroll
the active result into view when the results change as well.

Each result link was also its own tab stop inside a listbox option, so
focus and the highlighted result could disagree. Results are picked
from the search box with the arrow keys, so take the links out of the
tab order; they still open on click.

* Let the trust strip be paused without hovering

The strip scrolls without end and could only be paused by hovering
with a mouse, so keyboard and touch users had no way to stop it.
Clicking or tapping the strip now pauses it until the next click or
tap, and it stops for good the first time the keyboard is used on the
page. Hovering still pauses it as before.

* Finish tearing down Pagefind before searching again

After a failed search, the reset cleared the cached Pagefind before its
destroy() had finished. A retry straight away could set Pagefind up
again while the old teardown was still running, and when that finished
it wiped the new instance, so the retry failed even with the
connection back. Keep the teardown around and have the next load wait
for it.

* Retry Pagefind's script and close menus across breakpoints

If Pagefind's script itself failed to load, Chromium kept that failed
module download for the rest of the page, so search stayed unavailable
after the connection came back until a reload. A retry now asks for
the script under a new URL; the first load keeps the normal one.

The header dropdowns and the narrow-screen contents list could also be
left open across a breakpoint when focus wasn't inside them, as with a
click in Safari, and came back open when the window was resized back.
Close the header menus whenever they swap at 50em, and the contents
list once it's hidden from 72rem up.

* Add a Config Builder component for building -Config files

A React island that lets people pick apps, tweaks, toggles, features and
AppX packages and download them as a WinUtil config, with the -Config
command to run it. It can also open an existing export, including the
old grouped format, and lists any keys the current release doesn't have.

The catalog is fetched in the browser from the latest stable release tag
rather than bundled from the repo, because -Config runs the stable
release and rejects the whole import on any key it doesn't know. The
config JSON keeps raw line breaks inside InvokeScript strings, which
ConvertFrom-Json accepts and JSON.parse doesn't, so those are escaped
before parsing.

* Add the Config Builder page

Gives the builder its own full-width page at /config-builder/ rather
than a guide, since it's a tool rather than reading material. It's a
top-level sidebar entry next to Store so it stays reachable from the
mobile menu on docs pages, where the header links aren't shown.

* Let the header nav take a list of plain links

SiteNav only knew about the Store link, so a second top-level link had
nowhere to go. It now takes a links array beside the dropdown groups,
rendered in both the desktop nav and the mobile panel, with the same
external-link handling the dropdowns use.

* Link the Config Builder from the header nav

Adds Config Builder as a top-level header link before Store, so it's one
click away from any page, including the landing page and splash pages
where there's no sidebar.

* Point the Automation guide at the Config Builder

The guide only described exporting a config from WinUtil itself. It now
mentions building one in the browser as an alternative.

* Document the Config Builder in the docs README and spec

Adds the config-builder folder to the README's project tree, and notes
in SPEC.md why the page loads its catalog from the latest release
instead of bundling the repo's config files.

* Revoke the Config Builder's download URL after the click

download() revoked the blob URL straight after link.click(). Some
browsers read the blob asynchronously, so revoking in the same task can
cancel the download. Defer the revoke to the next task.

* Keep the Config Builder's selection when a file has nothing to load

Opening any JSON object without WinUtil keys, or a file whose keys the
current release doesn't have, replaced the selection with nothing and
reported zero selections loaded. WinUtil's own import leaves the
selection alone when no key is usable, so do the same and say why.

* Say when the Config Builder can't copy to the clipboard

A blocked clipboard write cleared the Copied state and showed nothing,
so the button looked like it did nothing. Show a notice that points at
selecting the text instead.

* Give each Config Builder download its own file name

Every download was saved as winutil-config.json. If that file was
already in Downloads, Chrome and Edge saved the new one as
"winutil-config (1).json", and the copied command still ran the old
file, silently applying the previous selection. Name each download
with a timestamp and show that exact name in the command.

* Run the release the Config Builder's catalog came from

The command launched https://christitus.com/win, which follows whatever
release is latest when it runs. If a release came out between loading
the page and running the command, a key it dropped would make WinUtil
reject the whole config. Launch the same release's winutil.ps1 by its
tag instead, which is the asset christitus.com/win redirects to, and
say so on the page.

* Include milliseconds in Config Builder download names

The timestamp only went down to the second, so two downloads in the
same second got the same name and the browser could rename the second
one. Add milliseconds so each download's name is its own.

* Read UTF-16 WinUtil exports in the Config Builder

WinUtil writes its export with Out-File, which in Windows PowerShell
5.1 produces UTF-16 with a byte order mark. File.text() always decodes
UTF-8, so a real export opened in the builder failed to parse and was
reported as not a WinUtil config. Read the bytes and pick the decoder
from the byte order mark, falling back to UTF-8.

* Only let the Config Builder's command be copied after a download

The command points at the last downloaded file, so after changing the
selection it still ran the earlier file's selections, not the ones on
screen. Keep the JSON that was last downloaded, and disable copying the
command until the current selection has been downloaded, with the hint
saying to download first.

* Announce Config Builder notices to screen readers

Notices such as a file that couldn't be loaded or a blocked clipboard
only appeared on screen, so screen reader users weren't told about
them. Keep the notice element in the page as a status region, visually
hidden while it's empty, so new notices are announced.

* Move release config loading into a shared module

The Tweak Explorer needs the same latest-release lookup and lenient JSON
parsing that the Config Builder had inline, so both now go through
src/lib/winutil-release.js instead of each carrying its own copy.

* Handle GitHub's rate limit in the Config Builder

The catalog's release lookup goes through GitHub's API, which only
allows 60 anonymous requests an hour per IP address, and a shared
connection can use that up. When it was, the builder only said "GitHub
returned 403". Say plainly that the rate limit has been reached and to
try again later, and keep the release lookup for the browser session
so reloading or coming back to the page doesn't spend more requests.

* Add a Tweak Explorer component

Lists every tweak and toggle from the latest release with the registry
values, service startup types and scripts it changes next to what Undo
restores. Search covers registry paths, service names and script bodies,
and filters narrow by category, preset, kind of change, and whether the
tweak can be fully undone.

* Explain the GitHub rate limit message in the FAQ

The Config Builder now tells people when GitHub's rate limit has been
reached. Add an FAQ entry explaining why that happens, that everyone on
a shared connection counts towards the same limit, and what to do.

* Add the Tweak Explorer page

Gives people a way to check what a tweak does before running it, and
calls out the tweaks Undo can't fully reverse so they know to make a
restore point first.

* Launch the Config Builder's command with christitus.com/win

The command was pinned to the release the catalog came from, so a
release published between building the config and running it couldn't
reject a key it had dropped. In practice that window is tiny, while a
pinned GitHub URL is unfamiliar to paste into an elevated shell and a
saved command keeps running an old release. Go back to the official
launcher the rest of the docs use, which always runs the current
release, and drop the page's note about the pinned release.

* Group the Config Builder and Tweak Explorer under Tools in the sidebar

With two tool pages, a single top-level Config Builder entry no longer
fits, so both sit in a Tools group after Help.

* Move the tool pages into a Tools menu in the header

Replaces the standalone Config Builder link with a Tools dropdown that
holds both tool pages, matching the sidebar.

* Document the Tools pages in the docs README and spec

Both pages read config from the latest release rather than the repo, so
new entries show up without a docs rebuild. Preset names, importable key
prefixes and tweak change fields are still hard-coded, so list where they
live and what they mirror in WinUtil.

* Ask agents to update the Tools pages alongside config changes

Adding a preset, key prefix or new kind of tweak change silently leaves
the Config Builder and Tweak Explorer behind unless they're updated in
the same change.

* Show the GitHub rate limit message in the Tweak Explorer

The shared release loader now reports a used-up GitHub rate limit, but
the Tweak Explorer still wrapped every error in "Couldn't load the
tweaks from GitHub (...)". Show the rate limit message on its own, as
the Config Builder does.

* Make the GitHub rate limit FAQ entry cover every page that hits it

The entry only mentioned the Config Builder, but the Tweak Explorer
loads from GitHub the same way and shows the same message, and later
pages may too. Word it for any page that loads from GitHub, naming the
two that do now.

* fix(docs): pin generated configs to their catalog release

* fix(docs): describe available undo without promising reversibility

* fix(docs): lock page scrolling while the mobile sidebar is open

* fix(docs): address TOC, search focus, and undo review feedback

* fix(docs): keep expanded tweak scripts scrollable on phones

* fix(docs): show registry-backed tweak dropdown states

* fix(docs): distinguish partial undo from one-way changes

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 12:25:55 -05:00
Sean (ANGRYxScotsman)andChris Titus 7c7211cd47 (2 of 5) Add a Config Builder page to the docs (#5178)
* Reorganize docs components into overrides, landing and lib folders

Starlight component overrides now live in src/components/overrides/, the
landing-page-only CornerCard in src/components/landing/, and the shared site
links in src/lib/. This leaves room for the docs UI and landing components that
follow without crowding a single components folder. Only paths change here.

* Add React, GSAP and Lenis to the docs site

Registers the @astrojs/react integration and sets the JSX options in
tsconfig so .jsx components can be used as islands. GSAP (with @gsap/react)
and Lenis are for the landing-page scroll motion added later on.

* Define the hairline colour for the light theme

The light theme set --sl-color-hairline-light and -shade but not
--sl-color-hairline itself, so borders that use it fell back to Starlight's
default instead of matching the other light-theme hairlines.

* Vendor React Bits components for the landing page

Adds Beams, BorderGlow, DotGrid, GlareHover and ShinyText from React Bits
with their licence. Each file notes its source and the only local change,
dropping the Next.js 'use client' directive, which Astro doesn't need.

* Rebuild the docs header with React search, nav and theme toggle

Replaces Starlight's header pieces with our own: a search dialog over the
Pagefind index (Ctrl/Cmd+K), a top navigation with dropdowns and a mobile
panel on splash pages, social links, and a light/dark theme toggle. The
interactive parts are React islands; the header itself stays Astro.

ThemeSelect is overridden with the same toggle, so ThemeProvider no longer
has to keep Starlight's select pickers in sync and only applies the theme
before paint. Icons are Starlight's, as real .svg files under assets/icons/.

* Replace the docs sidebar and its mobile menu button

The sidebar is now our own server-rendered Astro list (recursive for nested
groups) and the narrow-screen menu button is a small React island. Because the
island wrapper breaks Starlight's sibling selector for opening the sidebar,
the open state is read from body[data-mobile-menu-expanded] instead.

* Replace the table of contents with React scroll-spy versions

Both the wide-screen table of contents and the collapsible narrow-screen one
share a useActiveHeading hook that tracks which heading is being read, so the
current entry stays highlighted as the page scrolls.

* Override the page title and pagination

Page titles get a breadcrumb built from the sidebar, kept out of the search
index with data-pagefind-ignore. Pagination is restyled to match the rest of
the docs UI. Both are plain Astro since neither needs client-side code.

* Add scroll motion and React Bits effects to the landing page

The hero gets an interactive dot grid background, a pill eyebrow with
shimmering text, and a glare sweep over the screenshot. Below it, a stats row
counts the generated tweak and feature pages, the solution cards gain a
border glow, the feature list becomes a single column with a sticky heading
and progress bar, and the CTA sits on WebGL light beams.

landing-motion.js drives the rest with GSAP and Lenis: hero entrance, trust
bar marquee, problem list and timeline highlights, odometer stats, a closing
wordmark, and a back-to-top button. index.mdx only enables it when the
visitor doesn't prefer reduced motion, and the hero shows anyway after 4s if
the script never runs.

* Add a custom 404 page

Uses the splash hero with an error eyebrow and links back to the home page
and guides, plus the landing page's entrance animation. Without a hero
image, the hero collapses to one centred column that fills the screen.

* Document the docs site's React UI and folder layout

The docs README and SPEC now explain that Starlight still owns routing,
Markdown and the search index while the UI comes from component overrides,
with static parts in Astro and interactive parts as React islands. The
README's project tree covers the new folders, and SPEC notes the vendored
React Bits licence and that landing motion is skipped for reduced motion.

* Keep third-party frontend code inspection inside the container

Adds a project learning that React Bits sources, npm registry metadata and
package tarballs are fetched and reviewed inside the winutil-astro container
rather than with host curl or python, and that only the reviewed files are
committed.

* Make the docs container's Astro cache writable

The .astro tmpfs was mounted root-owned, but the container runs as the
node user, so Astro failed with EACCES when writing its content cache.
Mount it world-writable instead.

* Build the docs image on Node 24

Make the Node version a build argument, defaulting to 24 and set from
docker-compose.yml, so it can be changed in one place without editing
the FROM line. The docs site builds cleanly on Node 24.

* Install Playwright browsers in the docs image

Bake Chromium, Firefox and WebKit plus their system libraries into the
image so browser checks against the docs site can run inside the
container instead of on the host. The browsers go to a shared path
owned by the node user so they stay usable after the USER switch.

* Comment the docs Dockerfile's install and user steps

Note why dependencies are copied and installed before the rest of the
source, why lifecycle scripts are left enabled, and why the image
switches to the node user.

* Give the docs container a fixed name

With a fixed name the running dev server can be reached with
`docker exec winutil-astro ...`, e.g. to run Playwright checks against
it, without looking up the generated compose name first.

* Raise libuv's thread pool size in the docs container

Node's default pool of four threads is easily saturated by Vite and
Astro's file I/O over the Docker Desktop bind mount, which slows the
dev server and builds. Allow 32 threads instead.

* Pin Playwright in the docs image

The Dockerfile ran npx playwright install with no Playwright in
package.json, so every image build pulled whichever release was newest
on npm and installed browser builds to match it. Add @playwright/test
as a pinned dev dependency, install from the lockfile with npm ci, and
pass --no-install so a missing package fails the build instead of
falling back to a fresh download.

* Install Playwright browsers before copying the docs source

The browser install ran after COPY . ., so any edit under docs/
invalidated that layer and the next build downloaded every browser
again. It only depends on package.json, so run it right after npm ci,
where it stays cached until the Playwright pin changes.

* Document Playwright in the docs container

The docs image now installs Playwright browsers pinned through
package.json, but nothing said so. Add the Playwright command to the
docs README, note that bumping the pin needs an image rebuild, and tell
agents to run browser checks in the container against the pinned
version. The README also said the image runs npm install; it now runs
npm ci.

* Skip the trust strip when the bar has no width

trustStrip() clones the bar until the track is wider than the
viewport. If the bar were ever hidden, each clone would add no width
and the loop would never finish, hanging the landing page. Leave the
bar alone when it has no width.

* Explain the empty catch in the theme toggle

The localStorage write was wrapped in an empty catch, which reads like
a swallowed error and trips the no-empty lint rule. Say why it's safe
to ignore: the theme still changes, it just isn't remembered.

* Attach the Pagefind retry handler once per load

loadPagefind() added a new catch handler to the cached promise on every
call, and reset it with an assignment inside an arrow expression. Only
attach it when a load starts, so a failed load is still forgotten and
retried on the next search.

* Set the landing cards' surface from the theme in CSS

LandingGlowCard picked the card background from useStarlightTheme(),
which is always dark on the server, so light-theme visitors saw dark
cards until each one hydrated as it scrolled into view. Pass a CSS
variable that theme.css sets per theme instead. BorderGlow only applies
its light border and shadow when it's given a hex colour, so those
styles are repeated for the light theme alongside the variable.

* Fall back to dark when the theme script can't read storage

localStorage.getItem throws when the browser blocks storage, which
stopped the pre-paint script before it set data-theme and left the page
without a theme. Catch the error and use the dark default, as the theme
toggle already does for its write.

* Keep Enter in search from opening the previous query's results

The result list stays on screen while the next query loads, and Enter
opened its highlighted entry, so typing a new query and pressing Enter
straight away went to a result for the old one. Remember which query
the results came from and ignore the arrow keys and Enter until they
match what's in the box.

* Make the previous query's search results unclickable while loading

Blocking the keys still left the old result links clickable while the
next query loaded, so a click could open a result for the previous
query. Mark the list inert and dim it until the results match what's in
the box.

* Keep the back-to-top button visible at the bottom of the page

The button's ScrollTrigger ended at 'max' and used toggleClass, which
removes the class on leaving the end as well as the start. Reaching the
bottom of the page hid the button, right where it's most useful. Add
the class on entering and only remove it when scrolling back above the
start.

* Take the hidden back-to-top button out of the tab order

The hidden button only had zero opacity and no pointer events, so Tab
could still land on an invisible control. Hide it with visibility as
well, delayed until the fade-out has finished.

* Only point search's active descendant at a usable result

The search input set aria-activedescendant whenever there were results,
including when the list isn't rendered because search is unavailable,
and while it's inert with the previous query's results. Screen readers
then announced nothing or a stale result. Use the same conditions as
the list.

* Hide the narrow-screen table of contents on wide screens

The mobile table of contents is server-rendered at every width and only
hidden by Starlight's wrapper from 72rem up. Hide it at the same
breakpoint in its own styles, so it doesn't depend on that wrapper.

* Put the hero screenshot's shadow on its GlareHover wrapper

GlareHover clips everything inside it to its rounded box, so the
shadow on .wu-window was cut off and never showed. Move the shadow and
the window's max-width onto GlareHover's root from the hero's own
styles, which leaves the vendored component untouched.

* Skip the table of contents marker when no heading is active

On a page with no headings, active is undefined, and the marker effect
queried a link for "#undefined". Return early instead.

* Return focus to the nav button when Escape closes its menu

Escape closed the open dropdown or the mobile nav panel but left focus
on the link inside it, which was now hidden, so the next key press lost
the keyboard user's place. Move focus back to the button that opened
the menu before closing it.

* Return focus to the toggle when Escape closes the mobile contents

Same as the nav menus: Escape hid the narrow-screen table of contents
while one of its links had focus. Move focus back to the toggle first.

* Retry search when the dialog reopens after Pagefind failed

If Pagefind couldn't load its index, for example because the
connection dropped, it kept that failed load, and reopening the dialog
left the typed query showing as unavailable until it was edited. Throw
the failed instance away with destroy() so the next attempt starts
over, and run the query again whenever the dialog opens.

* Only show the production-build search note on the dev server

When search failed on the live site it said search was only available
in production builds, which is meant for people running the dev
server. Show that note in dev only, and otherwise say search couldn't
load.

* Return focus to the menu button when Escape closes the sidebar

On narrow screens, Escape closed the sidebar while one of its links had
focus, leaving focus on a hidden link. Move focus back to the menu
button first, as the nav menus do.

* Render the hero eyebrow in the right theme colour before hydration

The eyebrow's text colour came from useStarlightTheme(), which is
always dark on the server, so light-theme visitors briefly saw the
dark theme's low-contrast grey. Give the server-rendered text a CSS
variable that follows the theme; ShinyText still takes over once it
hydrates.

* Leave Enter alone in search while an input method is composing

With a Japanese, Chinese or Korean input method, Enter commits the
candidate text, but the search box treated it as opening the
highlighted result. Ignore the arrow keys and Enter while the key event
is part of a composition.

* Move focus to the page title after back-to-top

Activating back-to-top with the keyboard scrolled to the top but left
focus on the button, which then hid itself at the bottom of the page,
so the next Tab jumped to the footer and scrolled back down. Once the
scroll finishes, focus the page title the way the skip link targets it.

* Keep search shortcuts off while the results are hidden

When a search failed, the result list was hidden, but results left
over from an earlier query were still there. Typing that query again
made them current, so Enter opened a result that wasn't on screen. Use
one condition for whether the list is showing, for the list itself,
the active descendant and the keyboard shortcuts.

* Leave the landing cards' pointer glow off for reduced motion

The solution cards' BorderGlow follows the pointer around the border
and has no reduced-motion handling of its own, so it still lit up for
visitors who prefer reduced motion, unlike the rest of the landing
page's effects. Hide its glow layers for them and keep the plain
border.

* Only reset Pagefind for the search that's still current

A search that had already been replaced still destroyed the shared
Pagefind instance if it failed late, which could break the newer
search using that instance and show it as unavailable. Leave the reset
and the status to the current search.

* Announce search results and notes to screen readers

The "no results" and "couldn't load" notes were inserted without a live
region, so a screen reader user typing in the search box never heard
that a search had finished or found nothing. Keep one status element in
the dialog for the note, and give it a visually hidden result count
when there are results.

* Fix keyboard, screen reader and resize gaps in the docs UI

Search gets the combobox pattern its results list expects, and only
points aria-controls at the list while it's shown. It now tracks the
newest search, which resets Pagefind on failure even after the dialog
has closed, so the first reopen works once the connection is back.

The header dropdowns, the narrow-screen nav panel and the narrow-screen
contents list close when focus moves out of them, instead of staying
open over the page. The nav panel also closes on an outside click; that
check uses the event's path, because the menu button swaps its icon and
the original target is already detached by then.

The table of contents marker is measured again on resize, so it stays
beside the active entry when entries rewrap. The theme toggle is
labelled with the theme it switches to. The trust strip refills its
copies when the window gets wider, so rotating a phone or widening the
window no longer leaves a blank gap in the loop.

* Keep the active search result in view and its links out of tab order

New results that arrived with the first one already active didn't
scroll it into view, so after scrolling the pane down a new search kept
the old offset and Enter opened a result that was off screen. Scroll
the active result into view when the results change as well.

Each result link was also its own tab stop inside a listbox option, so
focus and the highlighted result could disagree. Results are picked
from the search box with the arrow keys, so take the links out of the
tab order; they still open on click.

* Let the trust strip be paused without hovering

The strip scrolls without end and could only be paused by hovering
with a mouse, so keyboard and touch users had no way to stop it.
Clicking or tapping the strip now pauses it until the next click or
tap, and it stops for good the first time the keyboard is used on the
page. Hovering still pauses it as before.

* Finish tearing down Pagefind before searching again

After a failed search, the reset cleared the cached Pagefind before its
destroy() had finished. A retry straight away could set Pagefind up
again while the old teardown was still running, and when that finished
it wiped the new instance, so the retry failed even with the
connection back. Keep the teardown around and have the next load wait
for it.

* Retry Pagefind's script and close menus across breakpoints

If Pagefind's script itself failed to load, Chromium kept that failed
module download for the rest of the page, so search stayed unavailable
after the connection came back until a reload. A retry now asks for
the script under a new URL; the first load keeps the normal one.

The header dropdowns and the narrow-screen contents list could also be
left open across a breakpoint when focus wasn't inside them, as with a
click in Safari, and came back open when the window was resized back.
Close the header menus whenever they swap at 50em, and the contents
list once it's hidden from 72rem up.

* Add a Config Builder component for building -Config files

A React island that lets people pick apps, tweaks, toggles, features and
AppX packages and download them as a WinUtil config, with the -Config
command to run it. It can also open an existing export, including the
old grouped format, and lists any keys the current release doesn't have.

The catalog is fetched in the browser from the latest stable release tag
rather than bundled from the repo, because -Config runs the stable
release and rejects the whole import on any key it doesn't know. The
config JSON keeps raw line breaks inside InvokeScript strings, which
ConvertFrom-Json accepts and JSON.parse doesn't, so those are escaped
before parsing.

* Add the Config Builder page

Gives the builder its own full-width page at /config-builder/ rather
than a guide, since it's a tool rather than reading material. It's a
top-level sidebar entry next to Store so it stays reachable from the
mobile menu on docs pages, where the header links aren't shown.

* Let the header nav take a list of plain links

SiteNav only knew about the Store link, so a second top-level link had
nowhere to go. It now takes a links array beside the dropdown groups,
rendered in both the desktop nav and the mobile panel, with the same
external-link handling the dropdowns use.

* Link the Config Builder from the header nav

Adds Config Builder as a top-level header link before Store, so it's one
click away from any page, including the landing page and splash pages
where there's no sidebar.

* Point the Automation guide at the Config Builder

The guide only described exporting a config from WinUtil itself. It now
mentions building one in the browser as an alternative.

* Document the Config Builder in the docs README and spec

Adds the config-builder folder to the README's project tree, and notes
in SPEC.md why the page loads its catalog from the latest release
instead of bundling the repo's config files.

* Revoke the Config Builder's download URL after the click

download() revoked the blob URL straight after link.click(). Some
browsers read the blob asynchronously, so revoking in the same task can
cancel the download. Defer the revoke to the next task.

* Keep the Config Builder's selection when a file has nothing to load

Opening any JSON object without WinUtil keys, or a file whose keys the
current release doesn't have, replaced the selection with nothing and
reported zero selections loaded. WinUtil's own import leaves the
selection alone when no key is usable, so do the same and say why.

* Say when the Config Builder can't copy to the clipboard

A blocked clipboard write cleared the Copied state and showed nothing,
so the button looked like it did nothing. Show a notice that points at
selecting the text instead.

* Give each Config Builder download its own file name

Every download was saved as winutil-config.json. If that file was
already in Downloads, Chrome and Edge saved the new one as
"winutil-config (1).json", and the copied command still ran the old
file, silently applying the previous selection. Name each download
with a timestamp and show that exact name in the command.

* Run the release the Config Builder's catalog came from

The command launched https://christitus.com/win, which follows whatever
release is latest when it runs. If a release came out between loading
the page and running the command, a key it dropped would make WinUtil
reject the whole config. Launch the same release's winutil.ps1 by its
tag instead, which is the asset christitus.com/win redirects to, and
say so on the page.

* Include milliseconds in Config Builder download names

The timestamp only went down to the second, so two downloads in the
same second got the same name and the browser could rename the second
one. Add milliseconds so each download's name is its own.

* Read UTF-16 WinUtil exports in the Config Builder

WinUtil writes its export with Out-File, which in Windows PowerShell
5.1 produces UTF-16 with a byte order mark. File.text() always decodes
UTF-8, so a real export opened in the builder failed to parse and was
reported as not a WinUtil config. Read the bytes and pick the decoder
from the byte order mark, falling back to UTF-8.

* Only let the Config Builder's command be copied after a download

The command points at the last downloaded file, so after changing the
selection it still ran the earlier file's selections, not the ones on
screen. Keep the JSON that was last downloaded, and disable copying the
command until the current selection has been downloaded, with the hint
saying to download first.

* Announce Config Builder notices to screen readers

Notices such as a file that couldn't be loaded or a blocked clipboard
only appeared on screen, so screen reader users weren't told about
them. Keep the notice element in the page as a status region, visually
hidden while it's empty, so new notices are announced.

* Handle GitHub's rate limit in the Config Builder

The catalog's release lookup goes through GitHub's API, which only
allows 60 anonymous requests an hour per IP address, and a shared
connection can use that up. When it was, the builder only said "GitHub
returned 403". Say plainly that the rate limit has been reached and to
try again later, and keep the release lookup for the browser session
so reloading or coming back to the page doesn't spend more requests.

* Explain the GitHub rate limit message in the FAQ

The Config Builder now tells people when GitHub's rate limit has been
reached. Add an FAQ entry explaining why that happens, that everyone on
a shared connection counts towards the same limit, and what to do.

* Launch the Config Builder's command with christitus.com/win

The command was pinned to the release the catalog came from, so a
release published between building the config and running it couldn't
reject a key it had dropped. In practice that window is tiny, while a
pinned GitHub URL is unfamiliar to paste into an elevated shell and a
saved command keeps running an old release. Go back to the official
launcher the rest of the docs use, which always runs the current
release, and drop the page's note about the pinned release.

* fix(docs): pin generated configs to their catalog release

* fix(docs): lock page scrolling while the mobile sidebar is open

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 11:32:54 -05:00
Sean (ANGRYxScotsman)andChris Titus ab50aa55d6 (1 of 5) Rebuild the docs site UI with React (#5177)
* Reorganize docs components into overrides, landing and lib folders

Starlight component overrides now live in src/components/overrides/, the
landing-page-only CornerCard in src/components/landing/, and the shared site
links in src/lib/. This leaves room for the docs UI and landing components that
follow without crowding a single components folder. Only paths change here.

* Add React, GSAP and Lenis to the docs site

Registers the @astrojs/react integration and sets the JSX options in
tsconfig so .jsx components can be used as islands. GSAP (with @gsap/react)
and Lenis are for the landing-page scroll motion added later on.

* Define the hairline colour for the light theme

The light theme set --sl-color-hairline-light and -shade but not
--sl-color-hairline itself, so borders that use it fell back to Starlight's
default instead of matching the other light-theme hairlines.

* Vendor React Bits components for the landing page

Adds Beams, BorderGlow, DotGrid, GlareHover and ShinyText from React Bits
with their licence. Each file notes its source and the only local change,
dropping the Next.js 'use client' directive, which Astro doesn't need.

* Rebuild the docs header with React search, nav and theme toggle

Replaces Starlight's header pieces with our own: a search dialog over the
Pagefind index (Ctrl/Cmd+K), a top navigation with dropdowns and a mobile
panel on splash pages, social links, and a light/dark theme toggle. The
interactive parts are React islands; the header itself stays Astro.

ThemeSelect is overridden with the same toggle, so ThemeProvider no longer
has to keep Starlight's select pickers in sync and only applies the theme
before paint. Icons are Starlight's, as real .svg files under assets/icons/.

* Replace the docs sidebar and its mobile menu button

The sidebar is now our own server-rendered Astro list (recursive for nested
groups) and the narrow-screen menu button is a small React island. Because the
island wrapper breaks Starlight's sibling selector for opening the sidebar,
the open state is read from body[data-mobile-menu-expanded] instead.

* Replace the table of contents with React scroll-spy versions

Both the wide-screen table of contents and the collapsible narrow-screen one
share a useActiveHeading hook that tracks which heading is being read, so the
current entry stays highlighted as the page scrolls.

* Override the page title and pagination

Page titles get a breadcrumb built from the sidebar, kept out of the search
index with data-pagefind-ignore. Pagination is restyled to match the rest of
the docs UI. Both are plain Astro since neither needs client-side code.

* Add scroll motion and React Bits effects to the landing page

The hero gets an interactive dot grid background, a pill eyebrow with
shimmering text, and a glare sweep over the screenshot. Below it, a stats row
counts the generated tweak and feature pages, the solution cards gain a
border glow, the feature list becomes a single column with a sticky heading
and progress bar, and the CTA sits on WebGL light beams.

landing-motion.js drives the rest with GSAP and Lenis: hero entrance, trust
bar marquee, problem list and timeline highlights, odometer stats, a closing
wordmark, and a back-to-top button. index.mdx only enables it when the
visitor doesn't prefer reduced motion, and the hero shows anyway after 4s if
the script never runs.

* Add a custom 404 page

Uses the splash hero with an error eyebrow and links back to the home page
and guides, plus the landing page's entrance animation. Without a hero
image, the hero collapses to one centred column that fills the screen.

* Document the docs site's React UI and folder layout

The docs README and SPEC now explain that Starlight still owns routing,
Markdown and the search index while the UI comes from component overrides,
with static parts in Astro and interactive parts as React islands. The
README's project tree covers the new folders, and SPEC notes the vendored
React Bits licence and that landing motion is skipped for reduced motion.

* Keep third-party frontend code inspection inside the container

Adds a project learning that React Bits sources, npm registry metadata and
package tarballs are fetched and reviewed inside the winutil-astro container
rather than with host curl or python, and that only the reviewed files are
committed.

* Make the docs container's Astro cache writable

The .astro tmpfs was mounted root-owned, but the container runs as the
node user, so Astro failed with EACCES when writing its content cache.
Mount it world-writable instead.

* Build the docs image on Node 24

Make the Node version a build argument, defaulting to 24 and set from
docker-compose.yml, so it can be changed in one place without editing
the FROM line. The docs site builds cleanly on Node 24.

* Install Playwright browsers in the docs image

Bake Chromium, Firefox and WebKit plus their system libraries into the
image so browser checks against the docs site can run inside the
container instead of on the host. The browsers go to a shared path
owned by the node user so they stay usable after the USER switch.

* Comment the docs Dockerfile's install and user steps

Note why dependencies are copied and installed before the rest of the
source, why lifecycle scripts are left enabled, and why the image
switches to the node user.

* Give the docs container a fixed name

With a fixed name the running dev server can be reached with
`docker exec winutil-astro ...`, e.g. to run Playwright checks against
it, without looking up the generated compose name first.

* Raise libuv's thread pool size in the docs container

Node's default pool of four threads is easily saturated by Vite and
Astro's file I/O over the Docker Desktop bind mount, which slows the
dev server and builds. Allow 32 threads instead.

* Pin Playwright in the docs image

The Dockerfile ran npx playwright install with no Playwright in
package.json, so every image build pulled whichever release was newest
on npm and installed browser builds to match it. Add @playwright/test
as a pinned dev dependency, install from the lockfile with npm ci, and
pass --no-install so a missing package fails the build instead of
falling back to a fresh download.

* Install Playwright browsers before copying the docs source

The browser install ran after COPY . ., so any edit under docs/
invalidated that layer and the next build downloaded every browser
again. It only depends on package.json, so run it right after npm ci,
where it stays cached until the Playwright pin changes.

* Document Playwright in the docs container

The docs image now installs Playwright browsers pinned through
package.json, but nothing said so. Add the Playwright command to the
docs README, note that bumping the pin needs an image rebuild, and tell
agents to run browser checks in the container against the pinned
version. The README also said the image runs npm install; it now runs
npm ci.

* Skip the trust strip when the bar has no width

trustStrip() clones the bar until the track is wider than the
viewport. If the bar were ever hidden, each clone would add no width
and the loop would never finish, hanging the landing page. Leave the
bar alone when it has no width.

* Explain the empty catch in the theme toggle

The localStorage write was wrapped in an empty catch, which reads like
a swallowed error and trips the no-empty lint rule. Say why it's safe
to ignore: the theme still changes, it just isn't remembered.

* Attach the Pagefind retry handler once per load

loadPagefind() added a new catch handler to the cached promise on every
call, and reset it with an assignment inside an arrow expression. Only
attach it when a load starts, so a failed load is still forgotten and
retried on the next search.

* Set the landing cards' surface from the theme in CSS

LandingGlowCard picked the card background from useStarlightTheme(),
which is always dark on the server, so light-theme visitors saw dark
cards until each one hydrated as it scrolled into view. Pass a CSS
variable that theme.css sets per theme instead. BorderGlow only applies
its light border and shadow when it's given a hex colour, so those
styles are repeated for the light theme alongside the variable.

* Fall back to dark when the theme script can't read storage

localStorage.getItem throws when the browser blocks storage, which
stopped the pre-paint script before it set data-theme and left the page
without a theme. Catch the error and use the dark default, as the theme
toggle already does for its write.

* Keep Enter in search from opening the previous query's results

The result list stays on screen while the next query loads, and Enter
opened its highlighted entry, so typing a new query and pressing Enter
straight away went to a result for the old one. Remember which query
the results came from and ignore the arrow keys and Enter until they
match what's in the box.

* Make the previous query's search results unclickable while loading

Blocking the keys still left the old result links clickable while the
next query loaded, so a click could open a result for the previous
query. Mark the list inert and dim it until the results match what's in
the box.

* Keep the back-to-top button visible at the bottom of the page

The button's ScrollTrigger ended at 'max' and used toggleClass, which
removes the class on leaving the end as well as the start. Reaching the
bottom of the page hid the button, right where it's most useful. Add
the class on entering and only remove it when scrolling back above the
start.

* Take the hidden back-to-top button out of the tab order

The hidden button only had zero opacity and no pointer events, so Tab
could still land on an invisible control. Hide it with visibility as
well, delayed until the fade-out has finished.

* Only point search's active descendant at a usable result

The search input set aria-activedescendant whenever there were results,
including when the list isn't rendered because search is unavailable,
and while it's inert with the previous query's results. Screen readers
then announced nothing or a stale result. Use the same conditions as
the list.

* Hide the narrow-screen table of contents on wide screens

The mobile table of contents is server-rendered at every width and only
hidden by Starlight's wrapper from 72rem up. Hide it at the same
breakpoint in its own styles, so it doesn't depend on that wrapper.

* Put the hero screenshot's shadow on its GlareHover wrapper

GlareHover clips everything inside it to its rounded box, so the
shadow on .wu-window was cut off and never showed. Move the shadow and
the window's max-width onto GlareHover's root from the hero's own
styles, which leaves the vendored component untouched.

* Skip the table of contents marker when no heading is active

On a page with no headings, active is undefined, and the marker effect
queried a link for "#undefined". Return early instead.

* Return focus to the nav button when Escape closes its menu

Escape closed the open dropdown or the mobile nav panel but left focus
on the link inside it, which was now hidden, so the next key press lost
the keyboard user's place. Move focus back to the button that opened
the menu before closing it.

* Return focus to the toggle when Escape closes the mobile contents

Same as the nav menus: Escape hid the narrow-screen table of contents
while one of its links had focus. Move focus back to the toggle first.

* Retry search when the dialog reopens after Pagefind failed

If Pagefind couldn't load its index, for example because the
connection dropped, it kept that failed load, and reopening the dialog
left the typed query showing as unavailable until it was edited. Throw
the failed instance away with destroy() so the next attempt starts
over, and run the query again whenever the dialog opens.

* Only show the production-build search note on the dev server

When search failed on the live site it said search was only available
in production builds, which is meant for people running the dev
server. Show that note in dev only, and otherwise say search couldn't
load.

* Return focus to the menu button when Escape closes the sidebar

On narrow screens, Escape closed the sidebar while one of its links had
focus, leaving focus on a hidden link. Move focus back to the menu
button first, as the nav menus do.

* Render the hero eyebrow in the right theme colour before hydration

The eyebrow's text colour came from useStarlightTheme(), which is
always dark on the server, so light-theme visitors briefly saw the
dark theme's low-contrast grey. Give the server-rendered text a CSS
variable that follows the theme; ShinyText still takes over once it
hydrates.

* Leave Enter alone in search while an input method is composing

With a Japanese, Chinese or Korean input method, Enter commits the
candidate text, but the search box treated it as opening the
highlighted result. Ignore the arrow keys and Enter while the key event
is part of a composition.

* Move focus to the page title after back-to-top

Activating back-to-top with the keyboard scrolled to the top but left
focus on the button, which then hid itself at the bottom of the page,
so the next Tab jumped to the footer and scrolled back down. Once the
scroll finishes, focus the page title the way the skip link targets it.

* Keep search shortcuts off while the results are hidden

When a search failed, the result list was hidden, but results left
over from an earlier query were still there. Typing that query again
made them current, so Enter opened a result that wasn't on screen. Use
one condition for whether the list is showing, for the list itself,
the active descendant and the keyboard shortcuts.

* Leave the landing cards' pointer glow off for reduced motion

The solution cards' BorderGlow follows the pointer around the border
and has no reduced-motion handling of its own, so it still lit up for
visitors who prefer reduced motion, unlike the rest of the landing
page's effects. Hide its glow layers for them and keep the plain
border.

* Only reset Pagefind for the search that's still current

A search that had already been replaced still destroyed the shared
Pagefind instance if it failed late, which could break the newer
search using that instance and show it as unavailable. Leave the reset
and the status to the current search.

* Announce search results and notes to screen readers

The "no results" and "couldn't load" notes were inserted without a live
region, so a screen reader user typing in the search box never heard
that a search had finished or found nothing. Keep one status element in
the dialog for the note, and give it a visually hidden result count
when there are results.

* Fix keyboard, screen reader and resize gaps in the docs UI

Search gets the combobox pattern its results list expects, and only
points aria-controls at the list while it's shown. It now tracks the
newest search, which resets Pagefind on failure even after the dialog
has closed, so the first reopen works once the connection is back.

The header dropdowns, the narrow-screen nav panel and the narrow-screen
contents list close when focus moves out of them, instead of staying
open over the page. The nav panel also closes on an outside click; that
check uses the event's path, because the menu button swaps its icon and
the original target is already detached by then.

The table of contents marker is measured again on resize, so it stays
beside the active entry when entries rewrap. The theme toggle is
labelled with the theme it switches to. The trust strip refills its
copies when the window gets wider, so rotating a phone or widening the
window no longer leaves a blank gap in the loop.

* Keep the active search result in view and its links out of tab order

New results that arrived with the first one already active didn't
scroll it into view, so after scrolling the pane down a new search kept
the old offset and Enter opened a result that was off screen. Scroll
the active result into view when the results change as well.

Each result link was also its own tab stop inside a listbox option, so
focus and the highlighted result could disagree. Results are picked
from the search box with the arrow keys, so take the links out of the
tab order; they still open on click.

* Let the trust strip be paused without hovering

The strip scrolls without end and could only be paused by hovering
with a mouse, so keyboard and touch users had no way to stop it.
Clicking or tapping the strip now pauses it until the next click or
tap, and it stops for good the first time the keyboard is used on the
page. Hovering still pauses it as before.

* Finish tearing down Pagefind before searching again

After a failed search, the reset cleared the cached Pagefind before its
destroy() had finished. A retry straight away could set Pagefind up
again while the old teardown was still running, and when that finished
it wiped the new instance, so the retry failed even with the
connection back. Keep the teardown around and have the next load wait
for it.

* Retry Pagefind's script and close menus across breakpoints

If Pagefind's script itself failed to load, Chromium kept that failed
module download for the rest of the page, so search stayed unavailable
after the connection came back until a reload. A retry now asks for
the script under a new URL; the first load keeps the normal one.

The header dropdowns and the narrow-screen contents list could also be
left open across a breakpoint when focus wasn't inside them, as with a
click in Safari, and came back open when the window was resized back.
Close the header menus whenever they swap at 50em, and the contents
list once it's hidden from 72rem up.

* fix(docs): lock page scrolling while the mobile sidebar is open

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-28 11:30:36 -05:00
Vyas Devgna de9331f2e4 feat(ui): refresh light and dark themes (#5198)
* feat(ui): refresh light and dark themes

Softer light palette, deeper blue-slate dark palette, a top-to-bottom background gradient, Segoe UI, rounder buttons, softer shadows and borders, and a single accent colour. Text and layout containers are transparent so the gradient shows through, and cards share a SurfaceBackgroundColor.

* fix(ui): apply the checked tab accent to the rendered border

The checked-state BorderBrush was set on the ToggleButton, but TabToggleButton draws its border through ButtonGlow, which does not bind it, so the accent never showed. Target ButtonGlow directly.

* fix(ui): warm up the light theme

Move the light palette from blue-grey to warm paper tones with a muted teal accent, which is easier on the eyes. Dark is unchanged.

* fix(ui): darken the light hover link colour for contrast

The hover colour on the light cards was about 4.0:1, under the 4.5:1 minimum for normal text. #1B5F5A is 7:1 on cards and above 5.8:1 on the page gradient.
2026-10-28 10:25:32 -05:00
OmarandChris Titus 2f0bdc8fca fix(tweaks): move SvcHost split threshold out of the Services tweak (#5170)
* fix(tweaks): move SvcHost split threshold out of the Services tweak

The Services tweak wrote SvcHostSplitThresholdInKB equal to total physical memory, which disables svchost service splitting. On some machines that leaves XboxGipSvc stuck on Starting (#5115), and the tweak had no undo for the value.
WPFTweaksSvcHostSplitting now owns the write under Advanced Tweaks - CAUTION and restores the Windows client default (0x380000) on undo. A config test keeps the threshold write out of the Services tweak.

* Document service splitting risks and default restore

* Restore test header formatting after merge resolution

* Document legacy service-host recovery and link the maintained guide

* Link service-host splitting to its maintained guide section

* docs: recommend svchost grouping for low-memory systems

* fix(tweaks): persist svchost threshold as a DWORD

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-21 16:46:58 -05:00
Omar a3bdfcc1d6 fix(tweaks): skip Edge uninstall when the installer is absent (#5163) 2026-10-21 16:11:04 -05:00
Malin FossumandChris Titus ce1d6020b7 Show O&O ShutUp10++ download size in progress label and tooltip (#5062)
* Show O&O ShutUp10++ download size in progress label and tooltip

The ShutUp10 button silently downloads about 76 MB on every click. The
progress label now reads "Downloading O&O ShutUp10++ (35% of 76 MB)",
falling back to the plain percentage when the server sends no
Content-Length. Save-WinUtilFile passes the total size to its progress
callback for that.

Button-type tweaks get their Description as a tooltip, which no button
had before, and the ShutUp10 entry gains a Description that says what
will be downloaded and where it is saved.

* Refresh O&O download estimate and use absolute test file URIs

* Qualify O&O download size availability in the guide

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-21 16:01:28 -05:00
CompourriandChris Titus d4a2509e05 feat(ui): show friendly tweak names in progress status (#5148)
* feat(ui): show friendly tweak names in progress status

Tweak apply/undo progress now reads the checkbox label instead of the preset key. A new Get-WinUtilTweakDisplayName helper resolves the Content label from the tweak config and falls back to the key when no label exists.

* Document friendly tweak progress labels

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-21 16:00:58 -05:00
8ca972626b Stop tweak and AppX search from matching the 'Preset key:' tooltip label (#5154)
* Stop tweak/AppX search from matching the Preset key label

Since #4995, checkbox tweaks and AppX entries have the tooltip
"<description>`n`nPreset key: <key>", and Find-TweaksByNameOrDescription
matches against the whole tooltip. Short queries such as "key", "set",
"reset" or "preset" therefore matched every checkbox entry.

Remove the literal "Preset key: " label before matching, so the
description and the key itself stay searchable. Add a Pester case built
with Get-WinUtilEntryToolTip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document searchable tweak and AppX text

* Clarify which tweak controls support preset key search

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-21 15:49:51 -05:00
467e001dcd Add accessible names to Win11 Creator wizard controls (#5152)
The Win11 Creator wizard (#4925) was merged after the top-bar naming
pass in #4992/#4993. Its glyph-only Back/Forward buttons report the
Segoe MDL2 private-use character as their UI Automation name, and the
ISO path box, the edition and USB combo boxes and the status log have
an empty name because their visible labels are separate TextBlocks.

Add AutomationProperties.Name to all six: "Previous Step" and "Next
Step" for the arrows, and the visible label text for the other four.
Cover them with a XAML test.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-21 15:49:09 -05:00
Sean (ANGRYxScotsman)andChris Titus bc2d589e8c Recategorize applications (#5143)
* Recategorize System Informer as Pro Tools

System Informer is a process/system monitoring and malware-detection
tool, matching other diagnostic utilities already listed under Pro
Tools (Process Monitor, HWiNFO, GPU-Z, CPU-Z), not Development.

* Recategorize Notepad++ as Development

Notepad++ is a text/code editor, not multimedia software. It was
filed under Multimedia Tools alongside apps like VLC and GIMP; it
belongs with the other code editors (Sublime Text, VS Code, VSCodium,
Zed) in Development.

* Recategorize Hugo as Development

Hugo is a static site generator/build framework, not a general
utility. It belongs with the other language/framework tooling
(Go, CMake, Node.js, Rust) in Development instead of Utilities.

* Recategorize Tailscale as Pro Tools

Tailscale is a VPN/mesh-networking client, the same kind of tool as
WireGuard, Mullvad VPN, Proton VPN, and OpenVPN Connect, all of which
live under Pro Tools. It was the only VPN client left in Utilities.

* Recategorize MSI Afterburner as Pro Tools

MSI Afterburner is a GPU monitoring/overclocking tool, the same
category as CPU-Z, GPU-Z, HWiNFO, and HWMonitor, all of which live
under Pro Tools. It was the only one of that group left in Utilities.

* Recategorize Rufus as Pro Tools

Rufus and Ventoy both create bootable USB/ISO media, but Ventoy was
in Pro Tools while Rufus was in Utilities. Moved Rufus to match
Ventoy, since bootable-media creation fits the IT/power-user tooling
already grouped there (DDU, CPU-Z, GPU-Z).

---------

Co-authored-by: Chris Titus <contact@christitus.com>
2026-10-21 15:48:25 -05:00