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

Field overlay view layer for keep in/out zones #915

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Lewis-Seiden
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@shueja shueja left a comment

Choose a reason for hiding this comment

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

Looks pretty good functionally. Just a few changes.

@@ -242,6 +242,17 @@ class FieldOverlayRoot extends Component<Props, State> {
<FieldImage2024 />
</>
)}

{layers[ViewLayers.FieldOverlays] &&
doc.pathlist.activePath.params.constraints.map((c) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this be just the enabled constraints, and additionally filter out the one that's selected (if any)?

uiState.layers[ViewLayers.Waypoints] &&
uiState.isNavbarWaypointSelected() &&
!this.props.selected
? "rosybrown"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I like this color, but that's not a blocker.

},
FieldOverlays: {
index: 6,
name: "FieldOverlays",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This naming is too vague and inconsistent with internal naming as well (everything is considered an Overlay).

@shueja
Copy link
Collaborator

shueja commented Nov 14, 2024

Clicking a zone in the non-selected layer does not select it. If this is intentional, it's an unexpected break from existing UI norms within the app. If you're going to implement this, keep in mind that a click and drag on the non-selected zone will be hard to catch, since it will be on a different element than the one with the drag handler.

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