Right-Click Menu System

Jig Workshop โ€” Design Documentation v1.0

1. Selection Model

Selection Modes

The Workshop supports two selection modes for 3D objects:

Mode Visual What It Selects Use Case
Sub-Object ๐ŸŸข Green outline Individual mesh/part Editing individual pieces (wheel, door, etc.)
Whole Object ๐Ÿ”ต Blue outline (all children) InnerParent group Moving/editing entire imported object
Mixed ๐ŸŸข + ๐Ÿ”ต Both Combination of both types Batch operations on diverse selection

Selection Domains

Selection domains interact with specific rules to maintain consistency:

Focus Step is Always Selected

There is always exactly one "focus step" โ€” the step currently being viewed. This step tile always appears selected. Multi-selection can add additional steps, but the focus step persists.

Edit Mode = Transition Domain

3D Selection Rules

Step Interactions Never Touch Edit Mode

Step Multi-Select Clears 3D

Within 3D Domain:

Preferred Selection Mode

The system remembers the user's preferred selection mode:

2. Selection Behavior

Click Behaviors

Action Behavior
Click Select single object (clears previous), uses preferred mode
Shift + Click Add/remove from multi-selection (respects current mode)
Right-click on selected Show context menu for current selection
Right-click on unselected B1 Rule: Select it first, then show its menu
Right-click on empty Show canvas menu (keeps current selection)
TAB Toggle Sub-Object โ†” Whole Object mode

B1 Rule: Right-Click Selects

Rule: Right-clicking on an unselected object ALWAYS selects it first, then shows its context menu.

This ensures the menu always reflects what the user clicked on, eliminating confusion about "which object will this action affect?"

Contextual Menu Rule

Rule: The context menu is always for what was right-clicked, regardless of other visual selections.

Example: If a 3D object AND a Step both appear selected, right-clicking the Step shows the Step menu, not a combined menu.

Multi-Selection Focus

Rule: Right-clicking within a multi-selection does NOT change focus.

If the user has 3 objects selected and right-clicks on one of them, all 3 remain selected and the menu shows multi-selection options.

Single vs Multi Menus

Each entity type defines two menus:

Menu When Used Characteristics
single Exactly 1 item selected Full menu with all applicable actions
multi 2+ items of same type selected Only batch-applicable actions

Mixed Selection: Intersection Rule

The Intersection Rule: When multiple types are selected together, the menu shows only actions that appear in ALL selected types' multi-menus.

Example:

Whole Object multi:  [Hide, Duplicate, Snap, Reset, Clear labels, Group, Delete]
Sub Object multi:    [Hide, Snap, Reset, Edit labels, Group]
                     โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
INTERSECTION:        [Hide, Snap, Reset, Group]

This ensures every action in the menu can be applied to ALL selected items.

Universal Group Order

All menus follow this top-to-bottom ordering:

# Group Intent Example Actions
1 Visibility & Clone "Can I see it? Copy it? Organize it?" Hide/Show, Duplicate, Group
2 Edit "Change its properties" Rename, Snap, Pivot, Reset
3 Enrich "Add meaning or behavior" Labels, Actions, Create viewpoint
4 Collaborate "Share or connect externally" Save to library, Replace, Share
5 Structure "Change hierarchy" Revert parenting, Release children
6 Remove "Delete it" Delete, Delete on all steps

Ordering Principles

  1. Frequency first โ€” Most-used actions at top
  2. Safe โ†’ Risky โ€” Non-destructive before destructive
  3. Local โ†’ External โ€” Instant actions before server-dependent
  4. Reversible โ†’ Permanent โ€” Undoable before hard-to-undo
  5. Remove is always last โ€” Separated by divider, no exceptions

5. Divider Rules

When to Add Dividers

  1. Between each group โ€” if group has items
  2. Always before destructive actions โ€” Delete must be visually separated
  3. Before external/server actions โ€” Clear boundary for async operations

Divider Cleanup

6. Item Visibility Rules

The Core Principle

"If you can't do it, don't show it"

Items that don't apply to the current selection should be hidden, not disabled.

When to HIDE Items

Scenario Action Example
Single-only action + multi-selection Hide "Edit pivot" hidden when 3 objects selected
Multi-only action + single selection Hide "Group" hidden when 1 object selected
Action doesn't apply to type Hide "Clear labels" hidden for Sub-Objects
Mixed selection removes action from intersection Hide "Duplicate" hidden when mixing types that don't share it

When to Show DISABLED Items

Scenario Action Tooltip
Server timeout (10s) Show disabled "Loading failed, please try again"
No permission from server Show disabled "Requires Editor role"

Why show disabled for server failures?

The item appeared during loading, so removing it would cause menu resize and confuse users. Keeping it disabled (with explanation) is less jarring.

7. Server-Dependent Items

Some menu items require server permission checks (e.g., "Save to Team library", "Share").

State Progression

State Duration Visual Clickable
Loading 0โ€“10s Shimmer animation through text No
Enabled After success Normal appearance Yes
No Permission After denial Greyed out + tooltip No
Timeout After 10s Greyed out + tooltip No

Identifying Server Items

In menu definitions, server-dependent items have local: false

{ id: 'saveToLibrary', label: 'Save to Team library', local: false }

8. Loading States

Skeleton Loading Animation

Server-dependent items show a shimmer effect while checking permissions:

Timeout Handling

Placement Rules

Scroll Support

10. Keyboard Shortcuts

Key Context Action
TAB Object selected Toggle Sub-Object โ†” Whole Object mode
TAB Menu open Close menu, then toggle mode
โŒ˜A Workshop Select all steps (clears 3D selection)
โ† โ†’ Workshop Navigate prev/next step (clears multi-selections)

Shortcuts in Menu

Menu items can display keyboard shortcuts on the right side:

{ id: 'duplicate', label: 'Duplicate', shortcut: 'โŒ˜D' }

Whole Object (InnerParent) ๐Ÿ”ต

Single Selection
Hide/Show
Duplicate
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Snap to floor
Edit pivot origin
Reset aspect
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Clear all labels
Add action
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Save to Team library
Replace object
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete on all steps
Multi Selection
Hide/Show
Duplicate
Group
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Snap to floor
Reset aspect
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Clear all labels
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete on all steps

Sub-Object ๐ŸŸข

Single Selection
Hide/Show
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Snap to floor
Edit pivot origin
Reset aspect
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Edit label
Add action
Multi Selection
Hide/Show
Group
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Snap to floor
Reset aspects
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Edit labels

Mixed Selection (Whole + Sub) ๐Ÿ”ต๐ŸŸข

Hide/Show
Group
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Snap to floor
Reset aspect

Result of intersection between Whole Object multi and Sub-Object multi menus.

Step Tile

Single Selection
Duplicate
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Create viewpoint
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete
Multi Selection
Create animation
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete

Transition (Handle)

Single Selection
Select all
Select all in animation
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Reset
Multi Selection
Select all
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Reset

Object List Item

Single Selection
Hide/Show
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Rename
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Revert parenting changes
Release all children
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete on all steps
Multi Selection
Hide/Show
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete on all steps

Jig Tile (Gallery)

Single Selection
Make a copy
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Rename
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Share
Manage access...
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete
Multi Selection
Make copies
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Delete

Canvas (Background)

Select all objects
Show all objects
Reselect
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Preview Jig
Show Jig performance
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Change background colour

Toolbar Item

Replicate...
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Reset changes

Appendix A: Selection Domain Cross-Reference

Complete truth table for every user action and its effect on each selection domain.

Action 3D Selection Edit Mode Transitions Step Multi Focus Step
Click 3D object โœ… Set ๐Ÿšซ Exit ๐Ÿงน Clear ๐Ÿงน Clear โ€” Keep
Right-click 3D (B1) โœ… Set ๐Ÿšซ Exit ๐Ÿงน Clear ๐Ÿงน Clear โ€” Keep
Right-click 3D (in sel.) โ€” Keep ๐Ÿšซ Exit ๐Ÿงน Clear โ€” Keep โ€” Keep
Click Step โ€” Keep โ€” Keep ๐Ÿงน Clear ๐Ÿงน Clear โœ… Set
Right-click Step โ€” Keep โ€” Keep ๐Ÿงน Clear B1 only B1 only
Shift+Click Step ๐Ÿงน Clear โ€” Keep ๐Ÿงน Clear โœ… Add โ€” Keep
Click Transition ๐Ÿงน Clear โœ… Enter โœ… Set ๐Ÿงน Clear โ€” Keep (invisible)
Right-click Transition โ€” Keep โ€” Keep B1 only B1 clear โ€” Keep (invisible)
Right-click Canvas โ€” Keep โ€” Keep โ€” Keep โ€” Keep โ€” Keep
Edit Mode button Enter: ๐Ÿงน Clear โœ… Toggle Exit: ๐Ÿงน Clear โ€” Keep โ€” Keep
Prev/Next navigation โ€” Keep โ€” Keep ๐Ÿงน Clear ๐Ÿงน Clear โœ… Move

Key: โœ… Set/Enter = actively changes to new value  |  ๐Ÿšซ Exit = forced off  |  ๐Ÿงน Clear = selection emptied  |  โ€” Keep = unchanged  |  B1 = only changes if target is not already selected

Keep (invisible) = the internal value persists (camera stays on that step, viewport doesn't jump) but the step tile loses its visual selected highlight. The user infers their position from the viewport.

Appendix B: Left-Click vs Right-Click Comparison

Steps and 3D objects have different left-click vs right-click behavior. This is by design โ€” right-click is non-destructive to current state.

Step Interactions

Action Exit Edit Mode? Clear Transitions? Clear 3D?
Left-click Step โŒ No (Keep) โœ… Yes (always) Only on Shift/Cmd
Right-click Step โŒ No (Keep) โœ… Yes (always) โŒ No

3D Interactions

Action Exit Edit Mode? Clear Transitions? Clear Step Multi?
Left-click 3D โœ… Yes โœ… Yes โœ… Yes
Right-click 3D (B1) โœ… Yes โœ… Yes โœ… Yes
Right-click 3D (in sel.) โœ… Yes โœ… Yes โŒ No (Keep)

Appendix C: Quick Reference

Decision Tree: What Menu to Show?

Is it a 3D object?
โ”œโ”€ Yes โ†’ How many types selected?
โ”‚        โ”œโ”€ 1 type โ†’ How many items?
โ”‚        โ”‚           โ”œโ”€ 1 item โ†’ Use single menu
โ”‚        โ”‚           โ””โ”€ 2+ items โ†’ Use multi menu
โ”‚        โ””โ”€ 2+ types โ†’ Compute intersection of multi menus
โ””โ”€ No โ†’ Use single/multi menu for that entity type

Decision Tree: Show, Hide, or Disable?

Does action apply to this type?
โ”œโ”€ No โ†’ HIDE
โ””โ”€ Yes โ†’ Does cardinality match?
         โ”œโ”€ No โ†’ HIDE
         โ””โ”€ Yes โ†’ Is it server-dependent?
                  โ”œโ”€ No โ†’ SHOW (enabled)
                  โ””โ”€ Yes โ†’ Did server respond?
                           โ”œโ”€ Loading โ†’ SHOW (loading state)
                           โ”œโ”€ Allowed โ†’ SHOW (enabled)
                           โ”œโ”€ Denied โ†’ SHOW (disabled + tooltip)
                           โ””โ”€ Timeout โ†’ SHOW (disabled + tooltip)

Jig Workshop Right-Click Menu System Documentation
Last updated: February 2025 โ€” v1.1