Repository navigation
Integrate overlapping display, dock, lock, and picker fixes - #21230
chessing234 wants to merge 14 commits into
Conversation
Every login screen lets whoever is at the machine put it to sleep or turn it off without signing in, and the hardware power button grants that anyway. Three buttons sit bottom-right of the lock, styled as the password field. A first click arms one and asks; a second click on it acts, and clicking or typing anywhere else disarms it, so a stray click does nothing. The service holds the armed button, so every monitor's view arms and disarms together, and a click on a dark display only lights it. Suspend shows only where the menu offers it, by its own two guards. The actions go straight to logind, like the power key: the menu's omarchy-system closes windows first, which a locked session's absent owner would not want on a reboot logind then refuses. The field reports the action, and its failure, since nothing else can show through the lock.
The standalone theme switcher opens the picker through the generic image-selector path, so themeMode stays false and Delete was silently ignored. Treat a selection from the theme preview directory as a theme for deletion, refresh the extra/stock theme lists on generic opens so they are known on a first open, and reload rows after a deletion in that picker.
…fresh Replace the substring check on currentPath() with an explicit themeDeleteMode flag set from ImagePickerModel.isThemePreviewSource() against the session's theme-selector previews directory: - Only refresh extra/stock theme lists when the generic selector opens theme previews, not on icon or background pickers. - Guard applySelected() during deletion and post-delete refresh in themeDeleteMode so Enter cannot return a just-deleted theme. - Reload rows in updateThemeRows() when themeDeleteMode is active even if currentPath() is empty under a filter or themeRows already matched the post-delete list while imageRows still held the removed theme, and clear awaitingDeleteRefresh once no queued refresh remains. - Add unit tests in test/shell.d/image-picker-test.sh for the generic theme picker delete, apply guard, row refresh, and open flows.
A failed monitor read was handing updateDisplays the raw JSON string, so the panel replaced the display list with that string. Parse it back into the display records first. Lock wake still counts blanks and clears an armed power action, and the extracted wake test can run without the fingerprint timer object.
Reading the timer id throws in the extracted test, where that object is not defined. Check that it exists before asking whether it is running. On the lock screen the timer is always there.
|
@omarchybot @dhh combined the overlapping display, dock, lock, and picker prs so each pair is only reviewed once. |
Confidence Score: 5/5
[High impact] The PR appears safe to merge; both previous findings are fixed and no new blocking issues were found. SummaryThis PR combines display-state recovery, smaller dock surfaces, lock-screen power buttons, and theme-picker fixes.
Reviews (3) · Last reviewed commit: "Keep lock wake activity and power failur..." · Reviewed by Greptile |
|
ready for a look @dhh @ryanrhughes |
|
Thanks for the time you put into this. Some of the fixes you added on top catch real bugs in the original PRs. I'm closing it anyway, along with the other Integrate PRs. Each bundle puts several people's work in one branch. We can't review it one change at a time or revert a single piece. Merging it would also leave every original PR open. That's why our PR template asks for one problem per PR. None of the bundles ran on an Omarchy install either. Please post each fix on the PR it belongs to, so its author can pick it up. If two PRs conflict, a comment on the later one helps us most. A small fix of your own, tested on a real install, is always welcome. Smaller and proven gets merged. Thanks! |
Summary
Four pairs of open PRs edit the same shell surface. Each pair conflicts in one file, and the two Display panel fixes do the same job in different places.
omarchy-monitor-statefail cleanly when Hyprland cannot be read, and keeps the Display panel's last good state when a read is missing, short, or not a display list.onExitedparser was not kept. It replaced the last good list and raced the process exit. The panel still usesapplyState, which marks the state unavailable and leaves the last displays in place.updateDisplaysparses the JSON again. The merged copy had started passing it the raw string.Test plan
test/shell.d/monitor-state-test.shtest/shell.d/monitor-test.sh, including a failed read keeping the last displaystest/shell.d/image-picker-test.sh, including extra-theme deletiontest/shell.d/lock-state-test.sh, including one reblank and no second blank without a waketest/shell.d/dock-test.sh. The shell half then calls GNUpaste, which macOSpasterejects.Screenshots
The dock, lock buttons, display warning, and picker need a running Omarchy session. This host does not have one.