Skip to content

🐛 Various Light Mode Fixes - #374

Merged
treo merged 7 commits into
masterfrom
paul/pan-background
Feb 5, 2025
Merged

treo merged 7 commits into
masterfrom
paul/pan-background

Conversation

@treo

@treo treo commented Feb 3, 2025 •

Copy link
Copy Markdown
Member

Description

This started out as a fix to background panning. But as more people tried out light mode, we found more edge cases, and they are fixed here too.

Background Panning

In #373 a small goodie was that we finally made the background move alongside everything else when you panned across the canvas. Unfortunately, the implementation seems to have only worked by accident.

This PR replaces that implementation with a more robust one that worked in all my test cases.

Xai.Xaibo.-.Jupyterlab.2025-02-03.13-26-30-1.mp4

Workflow Nodes

image

Sidebar Colors

image

Preview in Tool Tips

image

Context menu in Dialogs

Some semi-recent change made the right-click menu in dialogs unavailable. According to git the thing that makes it not available has been in place since early 2022. We assume that some recent bug fix made the event propagate to this place instead of being stopped early - and thereby not preventing the default behavior.

The fix in this PR simply explicitly allows the right-click on input and textarea elements by not calling the library handler that would disable the default behavior.

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

The tests cover all the cases in which the previous implementation may not have worked.

The outcome for all tests should be that the background should move alongside everything else.

1. Works on startup

1. Start Xircuits with a Xircuits file open
2. Move the canvas

**2. Works when opening a new Xircuits file **

  1. Open a xircuits file
  2. Move the canvas
  3. Switch to first xircuits file
  4. Move canvas

**3. Works after moving nodes **

  1. Open a xircuits file and move a node around
  2. Move the canvas

**4. Works side by side **

  1. Open two xircuits files side by side
  2. Move the canvas on them, only the on being moved should change

Tested on?

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

@treo
treo requested a review from MFA-X-AI February 3, 2025 12:34
@github-actions

github-actions Bot commented Feb 3, 2025

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/paul/pan-background

@treo treo changed the title 🐛 Fix background panning 🐛 Various Light Mode Fixes Feb 4, 2025
@treo
treo merged commit a3e65b7 into master Feb 5, 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