Skip to content

Commit

Permalink
Refactor Dashboard: Components (#859)
Browse files Browse the repository at this point in the history
* move components.py to components folder

* Move card, input, navigation component classe into their own files

needed as these files will indiviudally grow, better to split the logic now

* Add checkbox component

* Add button component to CardComponents

Maybe will be better to move it to a new class called ButtonComponents in the future, if we have different types

* rename

* Remove unused code

* Update lattice config buttons to reference component

* Update space charge button reference

* Add combobox component

* create _build_component method

* Update docstrings

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
proy30 and pre-commit-ci[bot] authored Feb 27, 2025
1 parent 61b13e4 commit afb3437
Show file tree
Hide file tree
Showing 12 changed files with 414 additions and 374 deletions.
7 changes: 6 additions & 1 deletion src/python/impactx/dashboard/Input/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from .components import CardBase, CardComponents, InputComponents, NavigationComponents
from .components.card import CardBase, CardComponents
from .components.input import InputComponents
from .components.navigation import NavigationComponents
from .defaults import DashboardDefaults
from .generalFunctions import generalFunctions

__all__ = [
"CardBase",
"CardComponents",
"InputComponents",
"NavigationComponents",
"DashboardDefaults",
"generalFunctions",
"InputComponents",
Expand Down
312 changes: 0 additions & 312 deletions src/python/impactx/dashboard/Input/components.py

This file was deleted.

Empty file.
Loading

0 comments on commit afb3437

Please sign in to comment.