bfabric-web-apps 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/PKG-INFO +1 -1
  2. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/layouts/layouts.py +58 -52
  3. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/pyproject.toml +1 -1
  4. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/LICENSE +0 -0
  5. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/__init__.py +0 -0
  6. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/objects/BfabricInterface.py +0 -0
  7. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/objects/Logger.py +0 -0
  8. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/app_init.py +0 -0
  9. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/callbacks.py +0 -0
  10. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/charging.py +0 -0
  11. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/components.py +0 -0
  12. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/config.py +0 -0
  13. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/create_app_in_bfabric.py +0 -0
  14. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/dataset_utils.py +0 -0
  15. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/get_logger.py +0 -0
  16. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/get_power_user_wrapper.py +0 -0
  17. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/redis_connection.py +0 -0
  18. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/redis_queue.py +0 -0
  19. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/redis_worker_init.py +0 -0
  20. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/resource_utilities.py +0 -0
  21. {bfabric_web_apps-0.2.2 → bfabric_web_apps-0.2.3}/bfabric_web_apps/utils/run_main_pipeline.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bfabric-web-apps
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A package containing handy boilerplate utilities for developing bfabric web-applications
5
5
  Author: Marc Zuber, Griffin White, GWC GmbH
6
6
  Requires-Python: >=3.10,<4.0
@@ -2,7 +2,7 @@ from dash import html, dcc
2
2
  import dash_bootstrap_components as dbc
3
3
  import bfabric_web_apps
4
4
 
5
- def get_static_layout(base_title=None, main_content=None, documentation_content=None, layout_config={}):
5
+ def get_static_layout(base_title=None, main_content=None, documentation_content=None, layout_config={}, include_header=True):
6
6
  """
7
7
  Returns a layout with static tabs for Main, Documentation, and Report a Bug.
8
8
  The main content is customizable, while the other tabs are generic.
@@ -29,6 +29,62 @@ def get_static_layout(base_title=None, main_content=None, documentation_content=
29
29
  if layout_config.get("bug", False):
30
30
  tab_list.append(dbc.Tab(dcc.Loading(get_report_bug_tab()), label="Report a Bug", tab_id="report-bug"))
31
31
 
32
+ if not include_header:
33
+ header_row = dbc.Row()
34
+
35
+ else:
36
+ header_row = dbc.Row(
37
+ dbc.Col(
38
+ html.Div(
39
+ children=[
40
+ # Page Title (Aligned Left)
41
+ html.P(
42
+ id="page-title",
43
+ children=[str(" ")],
44
+ style={"font-size": "40px", "margin-left": "20px", "margin-top": "10px"}
45
+ ),
46
+
47
+ # View Logs Button (Aligned Right)
48
+ html.Div(
49
+ children=[
50
+ html.A(
51
+ dbc.Button(
52
+ "View Logs",
53
+ id="dynamic-link-button",
54
+ color="secondary", # Greyish color
55
+ style={
56
+ "font-size": "18px",
57
+ "padding": "10px 20px",
58
+ "border-radius": "8px"
59
+ }
60
+ ),
61
+ id="dynamic-link",
62
+ href="#", # Will be dynamically set in the callback
63
+ target="_blank"
64
+ )
65
+ ],
66
+ style={
67
+ "position": "absolute",
68
+ "right": "20px",
69
+ "top": "10px", # Aligns with title
70
+ }
71
+ ),
72
+ ],
73
+ style={
74
+ "position": "relative", # Ensures absolute positioning works
75
+ "margin-top": "0px",
76
+ "min-height": "80px",
77
+ "height": "6vh",
78
+ "border-bottom": "2px solid #d4d7d9",
79
+ "display": "flex",
80
+ "align-items": "center",
81
+ "justify-content": "space-between", # Title left, button right
82
+ "padding-right": "20px" # Space between button & right edge
83
+ }
84
+ ),
85
+ ),
86
+ )
87
+
32
88
  return html.Div(
33
89
  children=[
34
90
  dcc.Location(id='url', refresh=False),
@@ -70,57 +126,7 @@ def get_static_layout(base_title=None, main_content=None, documentation_content=
70
126
  ),
71
127
 
72
128
  # Page Title Section + View Logs Button (Aligned Right)
73
- dbc.Row(
74
- dbc.Col(
75
- html.Div(
76
- children=[
77
- # Page Title (Aligned Left)
78
- html.P(
79
- id="page-title",
80
- children=[str(" ")],
81
- style={"font-size": "40px", "margin-left": "20px", "margin-top": "10px"}
82
- ),
83
-
84
- # View Logs Button (Aligned Right)
85
- html.Div(
86
- children=[
87
- html.A(
88
- dbc.Button(
89
- "View Logs",
90
- id="dynamic-link-button",
91
- color="secondary", # Greyish color
92
- style={
93
- "font-size": "18px",
94
- "padding": "10px 20px",
95
- "border-radius": "8px"
96
- }
97
- ),
98
- id="dynamic-link",
99
- href="#", # Will be dynamically set in the callback
100
- target="_blank"
101
- )
102
- ],
103
- style={
104
- "position": "absolute",
105
- "right": "20px",
106
- "top": "10px", # Aligns with title
107
- }
108
- ),
109
- ],
110
- style={
111
- "position": "relative", # Ensures absolute positioning works
112
- "margin-top": "0px",
113
- "min-height": "80px",
114
- "height": "6vh",
115
- "border-bottom": "2px solid #d4d7d9",
116
- "display": "flex",
117
- "align-items": "center",
118
- "justify-content": "space-between", # Title left, button right
119
- "padding-right": "20px" # Space between button & right edge
120
- }
121
- ),
122
- ),
123
- ),
129
+ header_row,
124
130
 
125
131
  # Bug Report Alerts (Restored)
126
132
  dbc.Row(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bfabric-web-apps"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "A package containing handy boilerplate utilities for developing bfabric web-applications"
5
5
  authors = ["Marc Zuber, Griffin White, GWC GmbH"]
6
6