Skip to content

Add Recycle Bin dashboard widget and Windows query helper#652

Merged
multiplex55 merged 1 commit intomasterfrom
codex/create-recycle-bin-widget-module
Jan 8, 2026
Merged

Add Recycle Bin dashboard widget and Windows query helper#652
multiplex55 merged 1 commit intomasterfrom
codex/create-recycle-bin-widget-module

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

Motivation

  • Expose Recycle Bin size and item count in the dashboard so users can view and clean it from the UI with the same caching/refresh semantics as other widgets.
  • Allow control over automatic refresh frequency and provide a manual header refresh to match other dashboard widgets.

Description

  • Added src/dashboard/widgets/recycle_bin.rs implementing RecycleBinWidget with refresh_interval_secs and manual_refresh_only settings, a header Refresh button with tooltip, human-readable size formatting, item count display, and a Clean button that triggers the recycle:clean action.
  • Added RecycleBinInfo and query_recycle_bin to src/launcher.rs, using SHQueryRecycleBinW on Windows and returning None on non-Windows targets.
  • Extended DashboardDataSnapshot and DashboardDataCache in src/dashboard/data_cache.rs with RecycleBinSnapshot, refresh_recycle_bin, and maybe_refresh_recycle_bin, and wired the recycle-bin refresh into refresh_all and the widget cache flow.
  • Registered and exported the new widget in src/dashboard/widgets/mod.rs and wired up its default settings UI factory.

Testing

  • Ran cargo fmt to format the changes, which completed successfully.
  • No automated unit or integration tests were executed for this PR.

Codex Task

@multiplex55 multiplex55 merged commit 05e8a57 into master Jan 8, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/create-recycle-bin-widget-module branch January 9, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant