feat: add plugin history with filters and expandable execution logs#952
feat: add plugin history with filters and expandable execution logs#952aditisb1212-lab wants to merge 22 commits into
Conversation
|
@aditisb1212-lab is attempting to deploy a commit to the Darshan's projects Team on Vercel. A member of the Team first needs to authorize it. |
adikulkarni006
left a comment
There was a problem hiding this comment.
"Approved. Functionally it's perfect. Just a couple of optional nits (variable naming/formatting) – feel free to address them in a follow-up PR if you want. Merging this now."
There was a problem hiding this comment.
Pull request overview
Adds a richer “Plugin History” experience to the frontend plugins UI (filters + expandable I/O), and extends backend logging so failed plugin runs are captured in plugin_logs, supporting better auditability and debugging.
Changes:
- Updated
PluginsPanelto include client-side filtering (plugin + date) and expandable input/output rendering for each execution. - Added a new
PluginHistorycomponent with similar filtering and expand/collapse behavior. - Extended backend plugin log retrieval to support optional filtering parameters, and updated plugin execution logging to record failures.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| frontend/src/components/PluginsPanel.jsx | Adds filtering UI + expandable execution details to the existing plugin logs view. |
| frontend/src/components/PluginHistory.jsx | Introduces a standalone plugin history component (currently not referenced elsewhere). |
| backend/services/db_service.py | Extends plugin log querying with optional filters; refactors insert query formatting. |
| backend/routes/plugins.py | Updates run logging to record both success and failure cases (but currently introduces indentation/scope bugs). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Check the changes again and please inform any mistakes |
|
Sir please check again now and review it. |
Plugin History UI
Summary
This PR adds a Plugin History panel to the Plugins section, allowing users to view and inspect previous plugin executions. The history includes filtering, execution status, timestamps, and expandable input/output details to improve auditing and debugging.
Changes Made
Frontend
Added a Plugin History section to the Plugins panel.
Displayed plugin execution history with:
Added filtering by:
Added expandable Show More / Show Less functionality to view complete input and output.
Improved accessibility by adding
aria-labelattributes to filter inputs.Updated SQLite timestamp parsing to ISO UTC format for consistent date filtering across browsers.
Backend
Expected Behavior
Testing
Closes #482