Skip to content

revert comp parser notif - #422

Merged
MFA-X-AI merged 2 commits into
XpressAI:masterfrom
rabea-al:fix/revert-comp-parser-notif
Jul 10, 2025
Merged

MFA-X-AI merged 2 commits into
XpressAI:masterfrom
rabea-al:fix/revert-comp-parser-notif

Conversation

@rabea-al

Copy link
Copy Markdown
Contributor

Description

This PR Improves error toasts for Python components by showing detailed info (file path, line number and error type)

  • Reverted the component parsing saving notification, and replaced it with JupyterLab notification.

  • Structured the toast message to display the file path, line number, and error type by utilizing the new error_info returned from the backend.

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

1. Test: Triggering Toast Notification on Syntax Error

  1. Created a test Python component file with a forced SyntaxError (e.g., missing colon or invalid expression).

  2. Saved the file to trigger parsing via Xircuits component loader.

  3. Observed toast notification showing:

    • Full file path
    • Exact line number
    • Error type and message

Tested on? Specify Version.

  • Windows
  • Linux Fedora
  • Mac
  • Others (State here -> xxx )

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch rabea-al/xircuits/fix/revert-comp-parser-notif

@MFA-X-AI
MFA-X-AI merged commit 33d53e4 into XpressAI:master Jul 10, 2025
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.

2 participants