Skip to content

(feat-redraw)Update animation handling#661

Merged
delthazor merged 5 commits into
mainfrom
rework-dynamic-graph-drawing5
Jul 7, 2026
Merged

(feat-redraw)Update animation handling#661
delthazor merged 5 commits into
mainfrom
rework-dynamic-graph-drawing5

Conversation

@delthazor

@delthazor delthazor commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Description

Re-enable the button-click pulse in agentic mode, driving it from the live graph via selectAnimationSequence/deriveAnimationSequenceFromGraph instead of the static authored sequence, so pulses target real backend node/edge ids. The BFS derivation now also pulses re-entrant fan-in / back-to-source edges so no edge that the static sequence animated goes missing, while still scheduling each node once to terminate. The latest graph snapshot is read from refs at animation start to avoid re-triggering mid-pulse.

Topology graphs should be rendered dynamically based on backend provided data. This was partially done before, but was mostly reverted, due to stylistic and structural reasons, e.g.: specific icons were not rendered correctly, nodes not appearing as they should, etc.

This change aims to make animations and highlights in sync with the original statically defined sequences.

This PR is not a standalone change, it is a part of a chain of smaller changes reviewed independently.

The previous PR, this one immediately depends on:
#659

The dynamic graph rendering change, that this PR logically depends on:
#657

The follow-up PR is here:
#663

Other corresponding PRs:
#656
#658

Issue Link

No specific issue was opened for the change.

Type of Change

  • Bugfix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

misi-bp
misi-bp previously approved these changes Jun 29, 2026

@misi-bp misi-bp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I left a single comment here with a nice to have recommendation.
The whole utils folder will be reorganized soon so that's why it is not urgent to fix it now. Up 2 U.

Base automatically changed from rework-dynamic-graph-drawing4 to rework-dynamic-graph-drawing3 July 2, 2026 07:55
@delthazor delthazor force-pushed the rework-dynamic-graph-drawing3 branch from bb87f3d to 26a831f Compare July 2, 2026 09:46
Base automatically changed from rework-dynamic-graph-drawing3 to main July 6, 2026 11:12
@delthazor delthazor dismissed stale reviews from misi-bp and mihaialexandrescu July 6, 2026 11:12

The base branch was changed.

delthazor and others added 4 commits July 6, 2026 13:14
The group container only ever served as a faint background box. Hide it
(hidden: true) so it is never rendered, while keeping it in the topology
so children still resolve parentId/extent. Dimensions move from style to
top-level width/height because extent clamping reads node.width when a
node is hidden (never measured), otherwise children collapse to origin.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: pdobrei <pdobrei@cisco.com>
Since the logistics group became a hidden layout anchor, the code that
only existed to draw/size a visible group box is now dead:

- delete the unused topologyGroupLayout.ts module (stale duplicate of
  layoutCompactGroup)
- write the fitted group size to the node's top-level width/height (what
  extent clamping reads) instead of the moot style write
- drop the dead "logistics-group" branch in nodeSlugKey (the group has no
  edges and is never an author alias)
- shrink the group node data to {} in both renderers (never displayed)

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: pdobrei <pdobrei@cisco.com>
Re-enable the button-click pulse in agentic mode, driving it from the live
graph via selectAnimationSequence/deriveAnimationSequenceFromGraph instead of
the static authored sequence, so pulses target real backend node/edge ids. The
BFS derivation now also pulses re-entrant fan-in / back-to-source edges so no
edge that the static sequence animated goes missing, while still scheduling
each node once to terminate. The latest graph snapshot is read from refs at
animation start to avoid re-triggering mid-pulse.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: pdobrei <pdobrei@cisco.com>
Recruiter had some issues to assign correct advertised URL-s to discovered agents, and timeout through JSONRPC was way too common. Also unnecessary middleware nodes were appearing during communication, which are now hidden.

Signed-off-by: pdobrei <pdobrei@cisco.com>
@delthazor delthazor force-pushed the rework-dynamic-graph-drawing5 branch from dd8a841 to e8797e3 Compare July 6, 2026 12:00
pregnor
pregnor previously approved these changes Jul 6, 2026

@pregnor pregnor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, but get an approval from Misi on the FE stuff.

Loose specifications causes. CI test runs to fail on incorrect agent card tests. Made that stricter, so exact requirements are plain, and tests follows them.

Signed-off-by: pdobrei <pdobrei@cisco.com>
@delthazor delthazor merged commit ce177a8 into main Jul 7, 2026
24 checks passed
@delthazor delthazor deleted the rework-dynamic-graph-drawing5 branch July 7, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants