Skip to content

refactor: inspection panel and playground#11907

Merged
Adam-Aghili merged 41 commits intomainfrom
refactor/inspection-playground
Feb 26, 2026
Merged

refactor: inspection panel and playground#11907
Adam-Aghili merged 41 commits intomainfrom
refactor/inspection-playground

Conversation

@viktoravelino
Copy link
Collaborator

@viktoravelino viktoravelino commented Feb 25, 2026

Jira: LE-383
Jira: LE-384

Summary

Combines two related frontend refactors — the Inspection Panel and Playground — into a single cohesive PR that
improves the canvas editing experience and chat UI.

Playground - #11899
Inspection Panel - #11863

Inspection Panel

  • Canvas controls toggle: Added a dedicated Inspection Panel toggle button (using SlidersHorizontal icon) to the
    bottom-left canvas controls, with active-state highlighting and disabled state when no node is selected
  • Decoupled from node rendering: Removed inspectionPanelVisible coupling from GenericNode — the node toolbar, edit
    button, and description now render unconditionally, preventing visual shifts on the canvas when toggling the panel
  • Smarter field filtering: Hidden handle, readonly, and connected fields from the Inspection Panel so only
    editable/advanced parameters are shown
  • Scoped edge subscriptions: Edge subscription in InspectionPanelFields is now scoped to connected fields for the
    selected node only (perf improvement)

Playground

  • Fullscreen by default: Playground now opens in fullscreen mode; updated all affected E2E tests to use sidebar
    elements (session more menu, new-chat button, close button) instead of header elements hidden in fullscreen
  • Textarea resize refactor: Simplified chat input textarea resizing logic — removed unnecessary state and refs,
    replaced manual height calculation with a cleaner requestAnimationFrame-based approach
  • Bot message cleanup: Refactored BotMessage component — extracted message grouping logic into message-utils.ts
    with unit tests, simplified rendering and reduced code by ~35 lines
  • Message update mutation: Improved usePutUpdateMessages to use optimistic updates with proper cache invalidation
  • UI polish: Wider session sidebar (218px → 236px), smoother content block animations, fixed null/undefined error
    rendering, standardized button icons (Play for disabled playground, distinct icon for inspection toggle), added missing
    data-testid attributes

Test Updates

  • Updated ~12 E2E tests to work with fullscreen playground (use sidebar controls instead of header controls)
  • Skipped logs tests temporarily while logs button is being removed
  • Added unit tests for new message grouping utilities

Summary by CodeRabbit

Release Notes

  • New Features

    • Inspector panel now toggleable directly from the main toolbar for improved accessibility.
  • UI/Style

    • Repositioned canvas controls to bottom-left corner with enhanced layout.
    • Refined chat input sizing and message display styling.
    • Reduced animation transitions for smoother interactions.
    • Improved node editing interface and inspector panel visibility.
  • Bug Fixes

    • Fixed readonly field filtering in inspection panel.
    • Enhanced chat input overflow and height calculation behavior.

viktoravelino and others added 29 commits February 23, 2026 06:51
Descriptions and edit button now render unconditionally, preventing
visual changes on canvas when toggling the inspector panel.
The toggle button became disabled immediately after closing the panel
because selectedNode was derived from inspectionPanelVisible. Now
selectedNode is based solely on the current node selection, keeping
the toggle enabled as long as a node is selected.
Replace PanelRight/PanelRightClose with SlidersHorizontal to avoid
confusion with the Playground button which uses PanelRightOpen. Add
bg-accent background highlight when the panel is active.
* address state in chat

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* update font size

---------

Co-authored-by: himavarshagoutham <himavarshajan17@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
The playground now opens in fullscreen mode, which covers the toolbar
button (playground-btn-flow-io). Updated the freeze test to use the
close button inside the playground header instead.
The playground now opens in fullscreen, covering the toolbar button.
Use playground-close-button instead to close the playground.
Use playground-close-button to close and exit fullscreen before
accessing the more menu which is hidden in fullscreen mode.
The chat-header-more-menu is hidden in fullscreen mode. Use the
session sidebar more menu instead to access message logs.
The clear-chat option is only available in the chat-header-more-menu
which is hidden in fullscreen mode. Exit fullscreen first.
Use sidebar new-chat button and session more menu instead of
header elements that are hidden in fullscreen mode.
Use sidebar session more menu and new-chat button instead of header
elements that are hidden or overlapped in fullscreen mode.
@viktoravelino viktoravelino self-assigned this Feb 25, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2026
@Adam-Aghili Adam-Aghili added this pull request to the merge queue Feb 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2026
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 26, 2026
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 26, 2026
@viktoravelino viktoravelino added this pull request to the merge queue Feb 26, 2026
@viktoravelino viktoravelino removed this pull request from the merge queue due to a manual request Feb 26, 2026
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 26, 2026
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 26, 2026
@viktoravelino viktoravelino added this pull request to the merge queue Feb 26, 2026
@viktoravelino viktoravelino removed this pull request from the merge queue due to a manual request Feb 26, 2026
@viktoravelino viktoravelino added this pull request to the merge queue Feb 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Feb 26, 2026
@viktoravelino viktoravelino added this pull request to the merge queue Feb 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2026
@Adam-Aghili Adam-Aghili added this pull request to the merge queue Feb 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2026
@Adam-Aghili Adam-Aghili merged commit 7c43e4c into main Feb 26, 2026
88 checks passed
@Adam-Aghili Adam-Aghili deleted the refactor/inspection-playground branch February 26, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor Maintenance tasks and housekeeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants