Skip to content

🐛 Fix: hide uninstall option for core libraries - #433

Merged
MFA-X-AI merged 1 commit into
XpressAI:masterfrom
rabea-al:fix/core-uninstall
Aug 20, 2025
Merged

MFA-X-AI merged 1 commit into
XpressAI:masterfrom
rabea-al:fix/core-uninstall

Conversation

@rabea-al

Copy link
Copy Markdown
Contributor

Description

This PR fixes a bug where the "Uninstall" option still appeared in the context menu for core libraries such as CONTROLFLOW, even though they are supposed to be protected.

The issue was due to comparing the raw libraryName with the CORE_LIBS set, while normalizeLibraryName() was returning a path-like string (xai_components/xai_controlflow). The fix extracts the last part of the path using .split('/').pop() before comparing.

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 core library context menu

  1. Go to the "Libraries" panel in the sidebar.
  2. Right-click on a known core library (e.g. CONTROLFLOW).
  3. Verify that the "Uninstall" option does NOT appear in the context menu.

2. Test non-core library context menu

  1. Right-click on a non-core library (e.g. actors, gradio, etc.).
  2. Verify that the "Uninstall" option does appear in the context menu.
  3. Click "Uninstall" and confirm that the library is successfully removed and notification appears.

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/core-uninstall

@MFA-X-AI
MFA-X-AI merged commit c318191 into XpressAI:master Aug 20, 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