Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #329: Draw rectangles around Sites/Locations/Racks #462

Merged
merged 8 commits into from
Mar 3, 2024

Conversation

dreng
Copy link
Collaborator

@dreng dreng commented Mar 2, 2024

This PR adds the ability to draw rectangles around Sites, Locations and Racks.

Three new checkboxes have been added to the filter form:
new_options

You can combine them as you like. You may show only sites...
sites
locations...
locations
racks...
racks
a combination...
sites_racks
or simply all of them.
sites_locations_racks

If you move device icons around, the rectangles will follow and will be redrawn.

group_feature.mp4

I thought it would be cool to be able to click on a rectangle in order to select all group members. Unfortunately I didn't manage to implement that. Either the graph listener interferes with my canvas listener or I'm doing something wrong. I gave up for now but if some of you guys have a good idea how to get it to work, don't hesitate to tell.

@mattieserver
Copy link
Collaborator

Looks good to me.
I guess there will be a few cases where we have an overlap of rectangles but there is not much we can do about it.

@dreng dreng marked this pull request as ready for review March 3, 2024 16:50
@dreng dreng merged commit b92b012 into netbox-community:develop Mar 3, 2024
@dreng dreng deleted the 329_rectangles branch March 30, 2024 09:43
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