-
Type:
Task
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
1
-
Not Needed
-
Developer Tools
When editing a document in Compass, clicking the “+” add-field button beside a field opens a dropdown menu. In cases like the root _id field, this menu only contains a single action (for example, “Add field after _id”), so the user has to click twice to perform the only available action.
Update the behavior so that:
- If the add-field menu would contain exactly one action, clicking the “+” immediately executes that action without showing the dropdown.
- If the context supports multiple actions (for example, arrays where we show “Add item to <field>” and “Add field after <field>”), the existing dropdown behavior is preserved.
- Visual affordances (hover states, focus, etc.) remain consistent with current patterns.
Reference: https://mongodb.slack.com/archives/GDTJXPHD0/p1775571784979799