Skip to content

update asset tree to be interactive#2025

Open
Ahmad-Wahid wants to merge 6 commits into
mainfrom
feat/update-assets-tree
Open

update asset tree to be interactive#2025
Ahmad-Wahid wants to merge 6 commits into
mainfrom
feat/update-assets-tree

Conversation

@Ahmad-Wahid

@Ahmad-Wahid Ahmad-Wahid commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Description

This PR migrates the asset tree macro from Vega to ECharts and refreshes the visual design. It introduces interactive navigation (roam/pan), improved tooltip and click behavior, and updated node styling (icons, labels, highlight states) to provide a clearer and more engaging tree experience.

Look & Feel

  • Before:
    image
  • After:
image

Sign-off

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>
@Ahmad-Wahid Ahmad-Wahid self-assigned this Mar 14, 2026
@Ahmad-Wahid Ahmad-Wahid linked an issue Mar 14, 2026 that may be closed by this pull request
@Ahmad-Wahid Ahmad-Wahid requested a review from nhoening March 14, 2026 04:28
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 flexmeasures | 🛠️ Build #31803170 | 📁 Comparing ea7afcb against latest (c6bb60f)


🔍 Preview build

Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
File Status
api/v3_0.html 📝 modified

@Ahmad-Wahid Ahmad-Wahid removed the request for review from nhoening March 14, 2026 04:32
@nhoening

Copy link
Copy Markdown
Member

It looks nicer indeed.
But can you explain how it is more interactive?

@nhoening

Copy link
Copy Markdown
Member

Ah wait, the PR description says how.

@nhoening

Copy link
Copy Markdown
Member

It's rather cool.
However, here is an example where for me the new look is overlapping too much, so I cannot see the real structure:

Screenshot from 2026-03-21 00-39-33 Screenshot from 2026-03-21 00-38-45

Also, the type icon is very dominant now, which is a pity if the type is not well supported.

# Conflicts:
#	flexmeasures/ui/templates/_macros.html
Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>
Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>
Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>
@Ahmad-Wahid

Copy link
Copy Markdown
Contributor Author

The current status look like this:

image

The icons and the text remain inside the asset objects.

The only issue with the design is that when we zoom out the area shrinks and we can see the tree only in that area.

here is the example:
image

@nhoening

Copy link
Copy Markdown
Member

let me know when I should/can test

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>
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.

Improve Asset Tree Interactivity and Visual Design

2 participants