forked from aiidalab/aiidalab-qe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement consistent step blocker system (aiidalab#1171)
This PR includes the following: - Wizard-related widgets/models are moved to common/wizard.py - `QeWizardStep` and corresponding model are extended by a confirmable and dependent (and both) flavors - A new `HasBlockers` mixin is provided to encapsulate the relevant traits and functionality - The confirmable wizard step flavor takes a confirmable wizard step model with the `Confirmable` and `HasBlockers` mixins - Steps 1-3 are now confirmable steps - Steps 2-4 remain dependent steps - Steps 2-3 inherit both sets of functionality - The SSSP installation widget is moved to step 1 and is blocking - The QE install / code setup widget remains in step 3 and is blocking - `HasBlockers` mixin is added to `SettingsModel` (panels in steps 2 and 3 can now block) The design is flexible, modular, and extensible. Following the already-implemented use case of step 1, blockers could by introduced in step 2 covering invalid parameter combinations. Similarly in step 3, in addition to the QE setup blockers, additional blockers could be introduced covering invalid resource selection.
- Loading branch information
1 parent
6228414
commit 5d9618e
Showing
21 changed files
with
473 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,3 +118,8 @@ footer { | |
padding: 0 5px; | ||
margin: -1px; | ||
} | ||
|
||
.blocker-messages .alert { | ||
margin-bottom: 0; | ||
padding: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.