Skip to content

Commit

Permalink
Update Dashboard Info Verbiage (BLAST-ImpactX#691)
Browse files Browse the repository at this point in the history
* Added sentence to dashboard documentation
* Add dashboard in-progress info in dashboard toolbar
  • Loading branch information
proy30 authored Aug 29, 2024
1 parent 788f76c commit 7c012df
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/usage/dashboard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ It provides a graphical interface to a subset of ImpactX functionality.
.. note::

ImpactX Dashboard is provided as a preview and continues to be developed.
Thus, it may not yet include all the features available in ImpactX.
Let us know in GitHub `discussions <https://github.com/ECP-WarpX/impactx/discussions>`__ and `issues <https://github.com/ECP-WarpX/impactx/issues>`__ how it works for you and what kind of workflows you would like to run in it.


Expand Down
29 changes: 26 additions & 3 deletions src/python/impactx/dashboard/Toolbar/toolbarMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

server, state, ctrl = setup_server()

state.show_dashboard_alert = True

# -----------------------------------------------------------------------------
# Common toolbar elements
# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -44,23 +46,43 @@ def run_simulation_button():
disabled=("disableRunSimulationButton", True),
)

@staticmethod
def dashboard_info():
"""
Creates an alert box with dashboard information.
"""

# -----------------------------------------------------------------------------
# Content
# -----------------------------------------------------------------------------
vuetify.VAlert(
"ImpactX Dashboard is provided as a preview and continues to be developed. "
"Thus, it may not yet include all the features available in ImpactX.",
type="info",
dense=True,
dismissible=True,
v_model=("show_dashboard_alert", True),
classes="mt-4",
)


class Toolbars:
"""
Builds section toolbars for various pages.
"""

@staticmethod
def input_toolbar():
"""
Builds toolbar for the 'Input' page.
"""

(ToolbarElements.dashboard_info(),)

@staticmethod
def run_toolbar():
"""
Builds toolbar for the 'Run' page.
"""

(ToolbarElements.dashboard_info(),)
(vuetify.VSpacer(),)
(ToolbarElements.run_simulation_button(),)

Expand All @@ -70,5 +92,6 @@ def analyze_toolbar():
Builds toolbar for the 'Analyze' page.
"""

(ToolbarElements.dashboard_info(),)
vuetify.VSpacer()
ToolbarElements.plot_options()
2 changes: 2 additions & 0 deletions src/python/impactx/dashboard/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def application():
with layout.toolbar:
with vuetify.Template(v_if="$route.path == '/Analyze'"):
Toolbars.analyze_toolbar()
with vuetify.Template(v_if="$route.path == '/Input'"):
Toolbars.input_toolbar()
with vuetify.Template(v_if="$route.path == '/Run'"):
Toolbars.run_toolbar()

Expand Down

0 comments on commit 7c012df

Please sign in to comment.