#2033: Added UML diagrams for the GUI#2035
Conversation
Coverage Report for CI Build 27631907653Coverage decreased (-0.03%) to 71.255%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions2 previously-covered lines in 2 files lost coverage.
Coverage Stats💛 - Coveralls |
|
Great job! The UML diagram is clean, easy to follow, and provides a clear and informative overview of the flow |
hohwille
left a comment
There was a problem hiding this comment.
@laim2003 thank you very much for your diagrams. Great that you pro-actively document things. 👍
Be aware that the more implementation details you document the faster they will outdate.
IMHO the gui-launcher-sequence should remain quite stable and is fine.
The gui state manager will however, change.
Already, the naming could be questioned:
Since we have IdeContext with IdeContextConsole as implementation for the console/CLI, why do we name it IdeGuiContext instead of IdeContextGui.
The details of IdeGuiStateManager is also very likely to change.
However, except for the totally temporary notes, we can merge but need to be aware to update when we change the code.
| participant "CLI" as cli | ||
| participant "Gui\nCommandlet" as guiCmd | ||
| participant "Maven" as maven | ||
| participant "Launcher\nPOM" as launcherPom |
There was a problem hiding this comment.
I would refer directly to the file path since not everybody would immediately get what you mean with "Launcher POM".
| participant "Launcher\nPOM" as launcherPom | |
| participant "gui/pom.xml" as launcherPom |
| activate maven | ||
|
|
||
| note over maven | ||
| Maven loads Launcher POM |
There was a problem hiding this comment.
| Maven loads Launcher POM | |
| Maven loads gui/pom.xml |
| note top of AppLauncher | ||
| <b>Current considerations regarding the UI state management:</b> | ||
| - Darf die GUI mehr als einmal offen sein? (Fall: Fenster mit gleichem Projekt parallel offen) | ||
| - Wie Context-Handling implementieren? | ||
| - Wie werden Log messages gehandelt? | ||
| end note |
There was a problem hiding this comment.
We should avoid merging such temporary WIP comments to git.
This will forgotten and never updated.
Keep temporary things local and discuss via collaborative tools such as figma or team chat.
| note bottom of StateChangeListener | ||
| Idea: This listener is implemented by any UI component to get notified of any context changes. | ||
| Alternative: an abstract StateDependentGuiComponent class that implements the listener and provides an abstract method for handling context changes. | ||
| end note |
There was a problem hiding this comment.
This also looks like very temporary documentation.
This PR fixes #2033
Implemented changes:
Testing instructions
Checklist for this PR
Make sure everything is checked before merging this PR. For further info please also see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internal