Skip to content

Commit

Permalink
[#674] Add "introspective" variant statechart image
Browse files Browse the repository at this point in the history
- create variant-introspective.mmd
- update other diagrams to add "VCS" on VCS-related actions
- generate png files
  • Loading branch information
mengdaming committed Oct 1, 2024
1 parent 4bc5d1f commit 0a5864a
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 6 deletions.
4 changes: 2 additions & 2 deletions variants-doc/mmd/variant-btcr.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ stateDiagram-v2
direction LR
state "⚙️ build" as Build
state "⚙️ test" as Test
state "✅ commit (src + tests)" as Commit
state "❌ revert (src + tests)" as Revert
state "VCS commit (src + tests)" as Commit
state "VCS revert (src + tests)" as Revert
[*] --> Build
Build --> Test: pass
Build --> [*]: fail
Expand Down
24 changes: 24 additions & 0 deletions variants-doc/mmd/variant-introspective.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
stateDiagram-v2
direction LR
state "⚙️ build" as Build
state "⚙️ test" as Test
state "✅ VCS commit (src + tests)" as CommitPass
state "❌ VCS commit (src + tests)" as CommitFail
state "⏪ VCS revert (last commit)" as CommitRevert

[*] --> Build
Build --> Test: pass
Build --> [*]: fail
Test --> CommitPass: pass
Test --> CommitFail: fail
CommitPass --> [*]
CommitFail --> CommitRevert
CommitRevert --> [*]
classDef actionClass fill: #0077CC
classDef okClass fill: #006600
classDef failClass fill: #660000
class Build actionClass
class Test actionClass
class CommitPass okClass
class CommitFail failClass
class CommitRevert actionClass
4 changes: 2 additions & 2 deletions variants-doc/mmd/variant-original.mmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
stateDiagram-v2
direction LR
state "⚙️ test" as Test
state "✅ commit (src + tests)" as Commit
state "❌ revert (src + tests)" as Revert
state "VCS commit (src + tests)" as Commit
state "VCS revert (src + tests)" as Revert
[*] --> Test
Test --> Commit: pass
Test --> Revert: fail
Expand Down
4 changes: 2 additions & 2 deletions variants-doc/mmd/variant-relaxed.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ stateDiagram-v2
direction LR
state "⚙️ build" as Build
state "⚙️ test" as Test
state "✅ commit (src + tests)" as Commit
state "❌ revert (src)" as Revert
state "VCS commit (src + tests)" as Commit
state "VCS revert (src)" as Revert
[*] --> Build
Build --> Test: pass
Build --> [*]: fail
Expand Down
Binary file modified webapp/src/assets/images/variant-btcr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webapp/src/assets/images/variant-original.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webapp/src/assets/images/variant-relaxed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0a5864a

Please sign in to comment.