Skip to content

Add tempfiles dashboard widget#653

Merged
multiplex55 merged 2 commits intomasterfrom
codex/implement-tempfiles-widget-with-actions
Jan 8, 2026
Merged

Add tempfiles dashboard widget#653
multiplex55 merged 2 commits intomasterfrom
codex/implement-tempfiles-widget-with-actions

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

Motivation

  • Provide a dashboard widget to list and manage application temp files with configurable display count and refresh behavior.
  • Reuse existing patterns for widgets that cache data, support manual/automatic refresh, and expose a settings UI.

Description

  • Add src/dashboard/widgets/tempfiles.rs implementing TempfilesWidget with TempfilesConfig (limit, refresh_interval_secs, manual_refresh_only), caching via TimedCache, and UI for listing files, showing human-friendly names/aliases, and per-item/clear-all actions using crate::plugins::tempfile::list_files().
  • Implement alias parsing in alias_for to extract user-provided aliases from filenames and present optional original filenames next to aliases.
  • Provide actions: Add opens tempfile:dialog via add_action, per-item Clear triggers tempfile:remove:<path> via remove_action, and Clear all triggers tempfile:clear via clear_all_action.
  • Register the new module in src/dashboard/widgets/mod.rs (mod tempfiles;, pub use tempfiles::TempfilesWidget;) and add a default factory entry in WidgetRegistry::with_defaults with TempfilesWidget::settings_ui.

Testing

  • No automated tests were executed for this change.
  • Manual compile/commit steps were performed during development (no cargo test run in this rollout).

Codex Task

@multiplex55 multiplex55 merged commit 0aac9ff into master Jan 8, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/implement-tempfiles-widget-with-actions 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