Skip to content

feat: add plugin history with filters and expandable execution logs#952

Open
aditisb1212-lab wants to merge 22 commits into
imDarshanGK:mainfrom
aditisb1212-lab:patch-2
Open

feat: add plugin history with filters and expandable execution logs#952
aditisb1212-lab wants to merge 22 commits into
imDarshanGK:mainfrom
aditisb1212-lab:patch-2

Conversation

@aditisb1212-lab

@aditisb1212-lab aditisb1212-lab commented Jul 4, 2026

Copy link
Copy Markdown

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:

    • Plugin name
    • Input (truncated)
    • Output (truncated)
    • Timestamp
    • Success/Failure status
  • Added filtering by:

    • Plugin name
    • Date range (start date and end date)
  • Added expandable Show More / Show Less functionality to view complete input and output.

  • Improved accessibility by adding aria-label attributes to filter inputs.

  • Updated SQLite timestamp parsing to ISO UTC format for consistent date filtering across browsers.

Backend

  • Extended plugin execution logging to record both successful and failed plugin executions.
  • Improved plugin log retrieval to support filtering.
  • Fixed exception handling and indentation issues in the plugin execution route to ensure reliable error logging.

Expected Behavior

  • Users can view the history of previously executed plugins.
  • Users can filter history by plugin name and date range.
  • Each history entry displays execution status, timestamp, input, and output.
  • Clicking Show More expands the full input and output.
  • Failed plugin executions are also logged for better debugging.

Testing

  • Verified plugin execution history is displayed correctly.
  • Verified plugin name filtering.
  • Verified date range filtering.
  • Verified success and failure status indicators.
  • Verified expandable input/output.
  • Verified timestamps display correctly after SQLite timestamp conversion.
  • Verified plugin history refreshes after running a plugin.

Closes #482

@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

@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
adikulkarni006 previously approved these changes Jul 6, 2026

@adikulkarni006 adikulkarni006 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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."

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 PluginsPanel to include client-side filtering (plugin + date) and expandable input/output rendering for each execution.
  • Added a new PluginHistory component 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.

Comment thread frontend/src/components/PluginsPanel.jsx Outdated
Comment thread frontend/src/components/PluginsPanel.jsx Outdated
Comment thread frontend/src/components/PluginsPanel.jsx
Comment thread frontend/src/components/PluginHistory.jsx Outdated
Comment thread frontend/src/components/PluginHistory.jsx Outdated
Comment thread frontend/src/components/PluginHistory.jsx Outdated
Comment thread backend/routes/plugins.py Outdated
Comment thread backend/routes/plugins.py Outdated
@aditisb1212-lab

Copy link
Copy Markdown
Author

Check the changes again and please inform any mistakes

@aditisb1212-lab

Copy link
Copy Markdown
Author

Sir please check again now and review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add plugin execution history panel showing past runs and results

3 participants