Commit 3d02dd5
authored
Implement MVC design and lazy loading (#802)
This is a large-scale redesign that focuses on the separation of data/business logic from the UI. Data is contained in `Model` classes as `traitlets` traits, which are observed in the `Controller`/`View` widgets and handled by `Controller` event handlers. `Controller`s also observe changes in their respective `View`s to handle user events. The design relies predominantly on the Observer pattern, with a few exceptions handled as a Mediator pattern.
Lazy loading is implemented via `render` methods triggered when the user visits the relevant component. However, the `Model` network is decoupled from the UI and remains in sync as a source of truth. `View`s sync up with the `Model` network on render.
Some changes in the UI were included here to better fit with the MVC design and the principles of lazy loading. Clear documentation will be provided in a follow-up PR.1 parent 150b22e commit 3d02dd5
File tree
119 files changed
+9911
-7422
lines changed- .github/workflows
- src/aiidalab_qe
- app
- configuration
- advanced
- hubbard
- magnetization
- pseudos
- smearing
- basic
- result
- structure
- summary
- viewer
- static
- styles
- templates
- structure
- submission
- code
- utils
- common
- bands_pdos
- plugins
- bands
- result
- electronic_structure
- result
- pdos
- result
- xas
- result
- xps
- result
- tests_integration
- tests
- configuration
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
119 files changed
+9911
-7422
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
89 | 100 | | |
90 | 101 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 102 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | | - | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments