Skip to content

Commit

Permalink
improve table layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbhughes committed Nov 17, 2024
1 parent 3799a52 commit 82240b5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions punchpipe/monitor/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

REFRESH_RATE = 60 # seconds

column_names = ["flow_id", "flow_level", "flow_run_id",
"flow_run_name", "flow_type", "call_data", "creation_time", "end_time",
"priority", "start_time", "state"]
schedule_columns =[{'name': v, 'id': v} for v in column_names]
column_names = [ "flow_level", "flow_type", "state", "priority",
"creation_time", "start_time", "end_time",
"flow_id", "flow_run_id",
"flow_run_name", "call_data"]
schedule_columns =[{'name': v.replace("_", " ").capitalize(), 'id': v} for v in column_names]
PAGE_SIZE = 15

def create_app():
Expand Down Expand Up @@ -40,7 +41,11 @@ def create_app():

sort_action='custom',
sort_mode='multi',
sort_by=[]
sort_by=[],
style_cell_conditional=[
{'if': {'column_id': 'call_data'},
'width': '30%'},
]
),
dcc.Interval(
id='interval-component',
Expand Down

0 comments on commit 82240b5

Please sign in to comment.