Mark Febrizio
commited on
Presentation revisions (#22)
Browse files* Update app.py
* Update requirements.txt
* Update app.py
change font colors in sidebar; add more tooltips
- app.py +8 -4
- requirements.txt +4 -8
app.py
CHANGED
@@ -40,7 +40,7 @@ ui.include_css( Path(__file__).parent.joinpath("www") / "style.css")
|
|
40 |
TITLE = "CRA Window Exploratory Dashboard - GW Regulatory Studies Center"
|
41 |
|
42 |
# page header above main content
|
43 |
-
HEADER = "Congressional Review Act Window Exploratory Dashboard"
|
44 |
page_header = ui.HTML(
|
45 |
f"""
|
46 |
<div class="header">
|
@@ -76,16 +76,20 @@ ui.tags.title(TITLE)
|
|
76 |
page_header
|
77 |
|
78 |
# sidebar settings
|
79 |
-
with ui.sidebar(open={"desktop": "open", "mobile": "closed"}):
|
80 |
sidebar_logo
|
81 |
|
82 |
with ui.tooltip(placement="right", id="window_tooltip"):
|
83 |
ui.input_date("start_date", "Select start of window", value=WINDOW_OPEN_DATE, min=START_DATE, max=date.today())
|
84 |
"The estimated lookback window open date is May 22. This dashboard allows users to explore how different lookback window dates would affect the set of rules available for congressional review. See the notes for more information."
|
85 |
|
86 |
-
ui.
|
|
|
|
|
87 |
|
88 |
-
ui.
|
|
|
|
|
89 |
|
90 |
# value boxes with summary data
|
91 |
with ui.layout_column_wrap():
|
|
|
40 |
TITLE = "CRA Window Exploratory Dashboard - GW Regulatory Studies Center"
|
41 |
|
42 |
# page header above main content
|
43 |
+
HEADER = "Congressional Review Act (CRA) Window Exploratory Dashboard"
|
44 |
page_header = ui.HTML(
|
45 |
f"""
|
46 |
<div class="header">
|
|
|
76 |
page_header
|
77 |
|
78 |
# sidebar settings
|
79 |
+
with ui.sidebar(open={"desktop": "open", "mobile": "closed"}, fg="#033C5A"):
|
80 |
sidebar_logo
|
81 |
|
82 |
with ui.tooltip(placement="right", id="window_tooltip"):
|
83 |
ui.input_date("start_date", "Select start of window", value=WINDOW_OPEN_DATE, min=START_DATE, max=date.today())
|
84 |
"The estimated lookback window open date is May 22. This dashboard allows users to explore how different lookback window dates would affect the set of rules available for congressional review. See the notes for more information."
|
85 |
|
86 |
+
with ui.tooltip(placement="right", id="sig_tooltip"):
|
87 |
+
ui.input_select("menu_significant", "Select rule significance", choices=["all", "3f1-significant", "other-significant"], selected="all", multiple=True, size=3)
|
88 |
+
"Rule significance as defined in Executive Order 12866."
|
89 |
|
90 |
+
with ui.tooltip(placement="right", id="agency_tooltip"):
|
91 |
+
ui.input_select("menu_agency", "Select agencies", choices=["all"] + AGENCIES, selected=["all"], multiple=True, size=6)
|
92 |
+
"Select one or more parent-level agencies."
|
93 |
|
94 |
# value boxes with summary data
|
95 |
with ui.layout_column_wrap():
|
requirements.txt
CHANGED
@@ -20,8 +20,6 @@ click==8.1.7
|
|
20 |
# via
|
21 |
# shiny
|
22 |
# uvicorn
|
23 |
-
colorama==0.4.6
|
24 |
-
# via click
|
25 |
contourpy==1.2.1
|
26 |
# via matplotlib
|
27 |
cursor==1.3.5
|
@@ -92,7 +90,7 @@ pillow==10.4.0
|
|
92 |
# via matplotlib
|
93 |
plotnine==0.13.6
|
94 |
# via -r requirements.in
|
95 |
-
polars==1.
|
96 |
# via -r requirements.in
|
97 |
progress==1.6
|
98 |
# via fr-toolbelt
|
@@ -130,7 +128,7 @@ six==1.16.0
|
|
130 |
# python-dateutil
|
131 |
sniffio==1.3.1
|
132 |
# via anyio
|
133 |
-
starlette==0.
|
134 |
# via shiny
|
135 |
statsmodels==0.14.2
|
136 |
# via plotnine
|
@@ -139,14 +137,12 @@ typing-extensions==4.12.2
|
|
139 |
# htmltools
|
140 |
# shiny
|
141 |
tzdata==2024.1
|
142 |
-
# via
|
143 |
-
# mizani
|
144 |
-
# pandas
|
145 |
uc-micro-py==1.0.3
|
146 |
# via linkify-it-py
|
147 |
urllib3==2.2.2
|
148 |
# via requests
|
149 |
-
uvicorn==0.30.
|
150 |
# via shiny
|
151 |
watchfiles==0.22.0
|
152 |
# via shiny
|
|
|
20 |
# via
|
21 |
# shiny
|
22 |
# uvicorn
|
|
|
|
|
23 |
contourpy==1.2.1
|
24 |
# via matplotlib
|
25 |
cursor==1.3.5
|
|
|
90 |
# via matplotlib
|
91 |
plotnine==0.13.6
|
92 |
# via -r requirements.in
|
93 |
+
polars==1.3.0
|
94 |
# via -r requirements.in
|
95 |
progress==1.6
|
96 |
# via fr-toolbelt
|
|
|
128 |
# python-dateutil
|
129 |
sniffio==1.3.1
|
130 |
# via anyio
|
131 |
+
starlette==0.38.2
|
132 |
# via shiny
|
133 |
statsmodels==0.14.2
|
134 |
# via plotnine
|
|
|
137 |
# htmltools
|
138 |
# shiny
|
139 |
tzdata==2024.1
|
140 |
+
# via pandas
|
|
|
|
|
141 |
uc-micro-py==1.0.3
|
142 |
# via linkify-it-py
|
143 |
urllib3==2.2.2
|
144 |
# via requests
|
145 |
+
uvicorn==0.30.3
|
146 |
# via shiny
|
147 |
watchfiles==0.22.0
|
148 |
# via shiny
|