Skip to content

Add selected node action tray - #4

Merged
relyen-dev merged 2 commits into
mainfrom
feature/selected-node-action-tray
May 26, 2026
Merged

Add selected node action tray#4
relyen-dev merged 2 commits into
mainfrom
feature/selected-node-action-tray

Conversation

@relyen-dev

Copy link
Copy Markdown
Owner

Summary

  • add a compact selected-node tray inside graph nodes
  • keep the first tray limited to Done/Undo and Clear actions
  • use existing graph outputs for done toggling and selection clearing without new persisted state
  • add focused graph component coverage for tray visibility and actions

Test plan

  • npm.cmd test -- apps/web/src/features/graph/production-graph.component.test.ts
  • git diff --check

Review

  • Implementation reviewed by a separate subagent; no findings remained.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a compact “selected node” action tray to production graph nodes, allowing users to toggle a node’s done state and clear the current selection without introducing new persisted state.

Changes:

  • Render a selected-node tray inside graph nodes with “Done/Undo” and “Clear” actions.
  • Add component methods to generate tray labels/titles and emit existing outputs for actions.
  • Add focused template tests covering tray visibility, done toggling, and selection clearing.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
apps/web/src/features/graph/production-graph.component.ts Adds tray helper methods and click handlers that emit existing outputs.
apps/web/src/features/graph/production-graph.component.html Renders the selected-node tray UI within selected nodes.
apps/web/src/features/graph/production-graph.component.css Styles the selected-node tray and its buttons.
apps/web/src/features/graph/production-graph.component.test.ts Adds coverage for tray rendering and action behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +109 to +113
@if (isNodeSelected(node.id)) {
<div
class="selected-node-tray"
aria-label="Selected node actions"
(pointerdown)="stopNodeControlEvent($event)"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Good catch. Added role="group" to the tray container so the existing accessible label is exposed as a labelled control group, and added a focused test assertion for the role/label. Verified with npm.cmd test -- apps/web/src/features/graph/production-graph.component.test.ts and git diff --check.

@relyen-dev
relyen-dev merged commit c595d83 into main May 26, 2026
1 check passed
@relyen-dev
relyen-dev deleted the feature/selected-node-action-tray branch May 26, 2026 04:44
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