Add command history dashboard widget with pinning, filtering and rerun support #706
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Description
CommandHistoryWidgetinsrc/dashboard/widgets/command_history.rsthat lists recent history entries, shows timestamps, supports a search/filter input, click-to-rerun (uses action IDs resolved againstactions_by_id), and a pin/unpin button; widget settings expose list size, pinned-only mode and whether to show the filter.HistoryEntryto include atimestampand set it when appending history insrc/history.rs.HistoryPinand helpersload_pins,save_pins, andtoggle_pinwhich read/writehistory_pins.jsoninsrc/history.rs.src/dashboard/widgets/mod.rs) and updated history append sites to include atimestampfield when creatingHistoryEntry(placeholders set to0so the timestamp is auto-filled on append).pin_roundtrip_and_toggle(insrc/history.rs) that verifies save/load and toggle semantics for pins.Testing
cargo test pin_roundtrip_and_toggle, but the test run failed during build due to a missing system library (alsa) required by a crate in the dependency graph, so automated tests did not complete successfully.save_pins,load_pins, andtoggle_pinand passes locally once the crate can be built; CI/build environment needspkg-config/alsaor the environment adjusted to run tests end-to-end.Codex Task