Skip to content

🔍 In-Canvas Search - #417

Merged
MFA-X-AI merged 6 commits into
masterfrom
mansour-canvas-search
Jul 16, 2025
Merged

MFA-X-AI merged 6 commits into
masterfrom
mansour-canvas-search

Conversation

@mansouralawi

@mansouralawi mansouralawi commented Jul 4, 2025 •

Copy link
Copy Markdown
Member

Description

This pull request introduces a new, context-aware search feature for Xircuits Canvas. Users can now press Ctrl + F (or ⌘ + F on Mac) to open a search bar that:

  • Searches only within the active canvas (each canvas has its own independent search instance)
  • Highlights all matches and visually distinguishes the current match
  • Centers the canvas viewport on the selected match
  • Adapts its styling to both dark and light themes

This enhancement makes it faster to locate and navigate to specific components on large or complex canvases.

search_feature

References

  • n/a

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

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

1. Open Canvas and invoke search

  1. Create or open an existing canvas containing multiple components.
  2. Press Ctrl + F.
  3. Verify that only a search bar appears, and existing browser find panes do not open.

2. Search & navigation

  1. Enter a component name or partial match.
  2. Confirm that all matching components are highlighted in the canvas.
  3. Use the “Next” / “Previous” controls to cycle through matches.
  4. Ensure the viewport recenters on each selected match.

3. Theme responsiveness

  1. Toggle between light and dark modes in the application.
  2. Open the in-canvas search bar and verify its colors adapt appropriately without impairing readability.

4. Canvas isolation

  1. Open two canvases side-by-side.
  2. Perform a search in the first canvas—ensure the second canvas remains unaffected.

Tested on? Specify Version.

  • Windows 11
  • [] macOS 12.6
  • [] Linux Ubuntu 22.04

Notes

  • N/A

@github-actions

github-actions Bot commented Jul 4, 2025

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/mansour-canvas-search

@MFA-X-AI MFA-X-AI left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR! This is super helpful for large workflows. I've tested all the functionalities, seems to work very well.

I'm seeing a conflict to main due to the recent bugfix, could you resolve that? Otherwise great work!

@mansouralawi
mansouralawi force-pushed the mansour-canvas-search branch from b519d45 to 14eff53 Compare July 15, 2025 17:40
@mansouralawi
mansouralawi requested a review from MFA-X-AI July 15, 2025 18:03
@MFA-X-AI
MFA-X-AI merged commit 13bc0ea into master Jul 16, 2025
@mansouralawi
mansouralawi deleted the mansour-canvas-search branch August 20, 2025 06:26
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