Skip to content

Commit 3941069

Browse files
DOCSP-39875 Add Mentioned of Undo Redo Diagram Functionality (#138)
* DOCSP-39875 Add Mentioned of Undo Redo Diagram Functionality * DOCSP-39875 Add Undo and Redo to Diagrams Page * * * * * * * * * * * * * screenshot refresh * * * * * * * * * Apply suggestions from code review Co-authored-by: Sarah Olson <[email protected]> * * * * --------- Co-authored-by: Sarah Olson <[email protected]>
1 parent 80d4fde commit 3941069

File tree

4 files changed

+45
-12
lines changed

4 files changed

+45
-12
lines changed

source/diagrams/understand-diagrams.txt

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Understand Diagrams
77
.. contents:: On this page
88
:local:
99
:backlinks: none
10-
:depth: 2
10+
:depth: 1
1111
:class: singlecol
1212

1313
This page explains how to interpret diagrams created in the Relational
@@ -55,7 +55,7 @@ Some fields have icons to indicate their role within the table:
5555
Choose View Mode
5656
----------------
5757

58-
The Relational Migrator provides different view modes for your diagrams:
58+
Relational Migrator provides different diagram view modes:
5959
Horizontal Split, Vertical Split, Relational view, and MongoDB view.
6060

6161
.. list-table::
@@ -109,6 +109,43 @@ features of relationships:
109109

110110
- A prong (or "crow's feet") indicates "many" in the relationship.
111111

112+
Undo or Redo Diagram Actions
113+
----------------------------
114+
115+
Relational Migrator diagrams support undo and redo functions. To reverse
116+
or reapply the previous diagram action, use the undo or redo capability.
117+
You can use either the diagram toolbar or keyboard shortcuts to perform
118+
these actions.
119+
120+
Toolbar
121+
~~~~~~~
122+
123+
You can use the :icon-lg:`Undo` and :icon-lg:`Redo` buttons on the
124+
diagram toolbar:
125+
126+
.. image:: /img/diagrams/undo-redo.png
127+
:alt: Toolbar undo and redo buttons
128+
129+
Keyboard Shortcut
130+
~~~~~~~~~~~~~~~~~
131+
132+
Alternatively, you can use keyboard shortcuts:
133+
134+
.. list-table::
135+
:header-rows: 1
136+
137+
* - Function
138+
- Windows Shortcut
139+
- Mac Shortcut
140+
141+
* - Undo
142+
- :kbd:`Control` + :kbd:`Z`
143+
- :kbd:`Command` + :kbd:`Z`
144+
145+
* - Redo
146+
- :kbd:`Control` + :kbd:`Y`
147+
- :kbd:`Command` + :kbd:`Y`
148+
112149
Relational and MongoDB View Links
113150
---------------------------------
114151

@@ -117,8 +154,8 @@ Relational Migrator highlights the corresponding entity in the opposite
117154
view. This allows you to see how your relational tables and MongoDB
118155
collections are mapped to one another.
119156

120-
Example
121-
-------
157+
Examples
158+
--------
122159

123160
The following example shows a sample diagram for a database that
124161
tracks orders at a store.
@@ -202,18 +239,15 @@ MongoDB's embedded data model:
202239
of objects inside the ``Order`` documents, using the foreign key
203240
relationship from the relational schema.
204241

205-
206242
.. image:: /img/diagrams/order-mapping-example.png
207243
:alt: Order Mapping Rule Example
208244

209-
210245
- The ``Customer`` collection contains a rule which maps ``Orders`` as
211246
an :ref:`Embedded array <rm-embedded-array>`. The ``Order``
212247
table from the relational schema is mapped as an array of objects
213248
inside the ``Customer`` documents, using the foreign key relationship
214249
from the relational schema.
215250

216-
217251
.. image:: /img/diagrams/customer-mapping-example.png
218252
:alt: Customer Mapping Rule Example
219253

source/getting-started/overview.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,16 @@ UI Elements
3838
toggle visibility of your database entities.
3939

4040
* - Diagram Toolbar
41-
- Select diagram layout options, add synthetic foreign keys, and
42-
create additional diagram tabs.
41+
- Select diagram layout options, add synthetic foreign keys,
42+
create additional diagram tabs, and undo or redo diagram actions.
4343

4444
* - Diagrams
45-
- View relational and MongoDB diagrams, view field names, and data types.
46-
Control diagram zoom level and view the entity mini-map.
45+
- View relational and MongoDB diagrams, field names, and data
46+
types. Control diagram zoom level and view the entity mini-map.
4747

4848
* - Right Pane
4949
- View, edit, delete, and add mapping rules. Select and rename fields
5050
included in a mapping rule. Add and remove table filters.
5151

5252
* - Get Help Menu / Atlas Login
5353
- .. include:: /includes/fact-get-help-menu.rst
54-

source/img/diagrams/undo-redo.png

33.5 KB
Loading
296 KB
Loading

0 commit comments

Comments
 (0)