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

Feature: Context Menu #448

Merged

Conversation

Awesomeplayer165
Copy link
Collaborator

@Awesomeplayer165 Awesomeplayer165 commented Apr 10, 2024

Closes #446

@Awesomeplayer165 Awesomeplayer165 changed the title Feature/context menu Feature: Context Menu Apr 10, 2024
@Awesomeplayer165 Awesomeplayer165 requested a review from shueja April 10, 2024 03:34
@Awesomeplayer165 Awesomeplayer165 added type: qol Quality of life features, non-critical. component: ui UI frontend labels Apr 10, 2024
@Awesomeplayer165 Awesomeplayer165 added this to the v2024.3.0 milestone Apr 10, 2024
@Awesomeplayer165 Awesomeplayer165 self-assigned this Apr 10, 2024
@shueja
Copy link
Collaborator

shueja commented Apr 10, 2024

  • Rightclick while the context menu is open should move the context menu.
  • A natural extension of this feature (and one I expected as a user) is that opening the menu on a waypoint should have the waypoint's type selected, and changing the selection changes the waypoint's type.

@Awesomeplayer165
Copy link
Collaborator Author

Screen.Recording.2024-04-10.at.6.19.57.PM.mp4

src/document/UIStateStore.tsx Show resolved Hide resolved
@Awesomeplayer165 Awesomeplayer165 merged commit da98952 into SleipnirGroup:main Apr 11, 2024
15 checks passed
@Awesomeplayer165 Awesomeplayer165 deleted the feature/context-menu branch April 11, 2024 19:57
spacey-sooty pushed a commit to spacey-sooty/Choreo that referenced this pull request Jun 23, 2024
idk why but my ide is acting up so there are probably errors that ill fix later. Anyway, I added a static field in Choreo.java which stores the current trajectory that the robot is on. Calling choreoSwerveCommand() will update this to the trajectory it is given, and then, when finished, put it back to an empty trajectory. There is also now a new static event() method in Choreo.java which returns a trigger for if the robot is currently on a trajectory given as an argument.

holy guacamole i forgot a semicolon

imported trigger

i mightve jumped the gun but i was bored so heres another event function. is this good

more methodsgit add .! more

le fixes

Add list of keyboard shortcuts to document settings (SleipnirGroup#447)

Co-authored-by: Jacob Trentini <[email protected]>

Feature: Context Menu (SleipnirGroup#448)

* add context menu with popover

* format

* silence error with conflicting mouseevent

* format

* works but only if you hot reload (fixing with next commit)

* step 1 out of predicted 2: migrate local state to uiState

* step 2/2: move d3 callback to overlaywaypoint

* format

* format and refactorings

* address @calcmogul's concerns

Upgrade TrajoptLib to use larger solver tolerance (SleipnirGroup#451)

organization and comments

renaming

cleanup java impl

fix docs

format
spacey-sooty pushed a commit to spacey-sooty/Choreo that referenced this pull request Jun 23, 2024
idk why but my ide is acting up so there are probably errors that ill fix later. Anyway, I added a static field in Choreo.java which stores the current trajectory that the robot is on. Calling choreoSwerveCommand() will update this to the trajectory it is given, and then, when finished, put it back to an empty trajectory. There is also now a new static event() method in Choreo.java which returns a trigger for if the robot is currently on a trajectory given as an argument.

holy guacamole i forgot a semicolon

imported trigger

i mightve jumped the gun but i was bored so heres another event function. is this good

more methodsgit add .! more

le fixes

Add list of keyboard shortcuts to document settings (SleipnirGroup#447)

Co-authored-by: Jacob Trentini <[email protected]>

Feature: Context Menu (SleipnirGroup#448)

* add context menu with popover

* format

* silence error with conflicting mouseevent

* format

* works but only if you hot reload (fixing with next commit)

* step 1 out of predicted 2: migrate local state to uiState

* step 2/2: move d3 callback to overlaywaypoint

* format

* format and refactorings

* address @calcmogul's concerns

Upgrade TrajoptLib to use larger solver tolerance (SleipnirGroup#451)

organization and comments

renaming

cleanup java impl

fix docs

format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ui UI frontend type: qol Quality of life features, non-critical.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context menu for adding waypoint type at mouse point
3 participants