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

Address issues with web UI #145

Merged
merged 6 commits into from Mar 30, 2023
Merged

Address issues with web UI #145

merged 6 commits into from Mar 30, 2023

Conversation

fabianishere
Copy link
Member

Summary

This pull request addresses several issues that have been reported for the OpenDC web UI.

Implementation Notes ⚒️

  • Update dependencies for web UI
  • Inform user when deleted topology is still used
  • Do not offset hover layer after dragging
  • Fix access to machines on lower shelves
  • Do not allow selection of empty unit
  • Fix rack deletion

Fixes #135, #136, #137, #138, #139

This change updates the dependencies for the web UI to the latest
available version where possible.
This change fixes #135 which showed that trying to delete a topology
used by a scenario would result in nothing happening in the UI and a 500
error being returned by the server. We check whether a scenario still
references the topology and show an error to the user if that happens.

Fixes #135
This change fixes #136 which reported that the grid and cursor will fall
out of sync when dragging or moving the grid when placing rooms or
objects.

Fixes #136
This change addresses #137 which reports that machines on shelves lower
than the top shelve cannot be accessed and doing so will cause the UI to
disappear and an error message to be generated.

The issue was caused by using the incorrect logic for selecting the
machine at a certain rack position.

Fixes #137
This change fixes #138 which reports that when adding a unit to a
machine, if the user does not select a unit and presses add, the UI will
crash. We now disable the add button until the user has selected a unit.
This change fixes #139 which reports that racks cannot be deleted. This
was due to the tileId property being dropped in the backend for racks.
Instead, we use the tileId passed in the action directly.
@fabianishere fabianishere merged commit 0db9d47 into master Mar 30, 2023
7 checks passed
@fabianishere fabianishere deleted the bug/web-ui branch March 30, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment