Skip to content

Commit 060a9ef

Browse files
authored
Cosmetic updates to prescribing info app (#15)
1 parent 21da433 commit 060a9ef

7 files changed

Lines changed: 12 additions & 13 deletions

prescribing-info-app/.wf/components-page-0-c0f99a9e-5004-4e75-a6c6-36f17490b134.jsonl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{"id": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "type": "page", "content": {"key": "drug-info", "pageMode": "compact"}, "handlers": {}, "isCodeManaged": false, "parentId": "root", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
22
{"id": "f0jnnqbgaq9egozo", "type": "columns", "content": {}, "handlers": {}, "isCodeManaged": false, "parentId": "c0f99a9e-5004-4e75-a6c6-36f17490b134", "position": 0}
33
{"id": "5l0szzvnaaxlt8tl", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "f0jnnqbgaq9egozo", "position": 0}
4-
{"id": "se73vd8nc8w057x4", "type": "header", "content": {"text": "Prescription Information App"}, "handlers": {}, "isCodeManaged": false, "parentId": "5l0szzvnaaxlt8tl", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
4+
{"id": "se73vd8nc8w057x4", "type": "header", "content": {"text": "Prescribing Information"}, "handlers": {}, "isCodeManaged": false, "parentId": "5l0szzvnaaxlt8tl", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
55
{"id": "zh10210i1bawmqp3", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "f0jnnqbgaq9egozo", "position": 1}
66
{"id": "820nw2mf596ezam3", "type": "horizontalstack", "content": {"contentHAlign": "right"}, "isCodeManaged": false, "parentId": "zh10210i1bawmqp3", "position": 0}
77
{"id": "medicine", "type": "button", "content": {"buttonColor": "#ffffff", "buttonTextColor": "#241f31", "icon": "", "text": "Drug info \ud83d\udc8a"}, "handlers": {"wf-click": "$goToPage_drug-info"}, "isCodeManaged": false, "parentId": "820nw2mf596ezam3", "position": 0}
@@ -14,9 +14,9 @@
1414
{"id": "fdvy87wyzk0pyg27", "type": "text", "content": {"cssClasses": "adv-reactions-scroller", "text": "@{adverse_reactions}", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "fm9r15fyiysf5fhl", "position": 0}
1515
{"id": "693ecrbqbc942f6x", "type": "column", "content": {"width": "3"}, "handlers": {}, "isCodeManaged": false, "parentId": "mhhffykuw46c3xgi", "position": 1}
1616
{"id": "xpjwnx9jurnxuy4z", "type": "tabs", "content": {}, "handlers": {}, "isCodeManaged": false, "parentId": "693ecrbqbc942f6x", "position": 0}
17-
{"id": "y1x1a8xb2cdwfg77", "type": "tab", "content": {"cssClasses": "", "name": "Full Prescribing Info"}, "handlers": {}, "isCodeManaged": false, "parentId": "xpjwnx9jurnxuy4z", "position": 0}
17+
{"id": "y1x1a8xb2cdwfg77", "type": "tab", "content": {"cssClasses": "", "name": "Full prescribing info"}, "handlers": {}, "isCodeManaged": false, "parentId": "xpjwnx9jurnxuy4z", "position": 0}
1818
{"id": "4eg5lxq1vle8m9h4", "type": "text", "content": {"cssClasses": "prescr-info-scroller", "text": "@{raw_prescribing_info}\n", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "y1x1a8xb2cdwfg77", "position": 0}
19-
{"id": "3pb0e6kmi4soloz8", "type": "tab", "content": {"cssClasses": "", "name": "Summary of Prescribing Info"}, "handlers": {}, "isCodeManaged": false, "parentId": "xpjwnx9jurnxuy4z", "position": 1}
19+
{"id": "3pb0e6kmi4soloz8", "type": "tab", "content": {"cssClasses": "", "name": "Summary of prescribing info"}, "handlers": {}, "isCodeManaged": false, "parentId": "xpjwnx9jurnxuy4z", "position": 1}
2020
{"id": "jz845bowxcjm606y", "type": "text", "content": {"cssClasses": "prescr-info-scroller", "text": "@{prescribing_info_summary}", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "3pb0e6kmi4soloz8", "position": 0}
2121
{"id": "ob300350xax1esrg", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "mhhffykuw46c3xgi", "position": 2}
2222
{"id": "b0sg45pzixq3ra3w", "type": "section", "content": {"cssClasses": "pubmed-scroller", "title": "Related PubMed articles"}, "handlers": {}, "isCodeManaged": false, "parentId": "ob300350xax1esrg", "position": 0}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{"id": "181cq1mpgw34i8dl", "type": "page", "content": {"key": "chat", "pageMode": "compact"}, "handlers": {}, "isCodeManaged": false, "parentId": "root", "position": 1, "visible": {"binding": "", "expression": true, "reversed": false}}
22
{"id": "b6cillcjhtpg71tk", "type": "columns", "content": {}, "handlers": {}, "isCodeManaged": false, "parentId": "181cq1mpgw34i8dl", "position": 0}
33
{"id": "5dxznhfw18bkp88o", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "b6cillcjhtpg71tk", "position": 0}
4-
{"id": "66m0u100zicdr0j3", "type": "header", "content": {"text": "Medicine app"}, "handlers": {}, "isCodeManaged": false, "parentId": "5dxznhfw18bkp88o", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
4+
{"id": "66m0u100zicdr0j3", "type": "header", "content": {"text": "Chat with Prescribing Information"}, "handlers": {}, "isCodeManaged": false, "parentId": "5dxznhfw18bkp88o", "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
55
{"id": "ptn01trkgrzmc11v", "type": "column", "content": {"width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "b6cillcjhtpg71tk", "position": 1}
66
{"id": "y1x6gru1icypiguh", "type": "horizontalstack", "content": {"contentHAlign": "right"}, "isCodeManaged": false, "parentId": "ptn01trkgrzmc11v", "position": 0}
77
{"id": "medicine1", "type": "button", "content": {"buttonColor": "#ffffff", "buttonTextColor": "#241f31", "icon": "", "text": "Drug info \ud83d\udc8a"}, "handlers": {"wf-click": "$goToPage_drug-info"}, "isCodeManaged": false, "parentId": "y1x6gru1icypiguh", "position": 0}
@@ -13,8 +13,8 @@
1313
{"id": "4dyb1959ehmz6hoh", "type": "text", "content": {"text": "@{contributing_sources_button_text}"}, "handlers": {"wf-click": "contributing_sources_change_vis"}, "isCodeManaged": false, "parentId": "yl0x2lefilp1xnl6", "position": 1}
1414
{"id": "6gunwa2x9r6fw6c4", "type": "column", "content": {"title": "Contributing sources", "width": "7"}, "handlers": {}, "isCodeManaged": false, "parentId": "0na7dihjazzdlbjf", "position": 1, "visible": {"binding": "contributing_sources_vis", "expression": "custom", "reversed": false}}
1515
{"id": "rfpjjy0krwyn5cfo", "type": "columns", "content": {}, "handlers": {}, "isCodeManaged": false, "parentId": "6gunwa2x9r6fw6c4", "position": 0}
16-
{"id": "h8gtll4cw37fh3hf", "type": "column", "content": {"cssClasses": "files-list", "width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "rfpjjy0krwyn5cfo", "position": 0}
16+
{"id": "h8gtll4cw37fh3hf", "type": "column", "content": {"contentPadding": "0px 5px 0px 0px", "cssClasses": "files-list", "width": "1"}, "handlers": {}, "isCodeManaged": false, "parentId": "rfpjjy0krwyn5cfo", "position": 0}
1717
{"id": "gq06l9kpvbeqkee1", "type": "repeater", "content": {"keyVariable": "index", "repeaterObject": "@{contributing_sources}", "valueVariable": "file"}, "handlers": {}, "isCodeManaged": false, "parentId": "h8gtll4cw37fh3hf", "position": 0}
18-
{"id": "0ggjzzhqd8vgttkg", "type": "section", "content": {"cssClasses": "@{file.file_css}", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "gq06l9kpvbeqkee1", "position": 0}
18+
{"id": "0ggjzzhqd8vgttkg", "type": "section", "content": {"cssClasses": "@{file.file_css}", "isCollapsible": "", "startCollapsed": "", "title": ""}, "handlers": {}, "isCodeManaged": false, "parentId": "gq06l9kpvbeqkee1", "position": 0}
1919
{"id": "avu7ft9wkylm5mho", "type": "text", "content": {"text": "#### @{file.name}", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "0ggjzzhqd8vgttkg", "position": 0}
20-
{"id": "nnirvi5yma8wsswp", "type": "text", "content": {"cssClasses": "@{file.content_css}", "text": "@{file.content}"}, "handlers": {}, "isCodeManaged": false, "parentId": "0ggjzzhqd8vgttkg", "position": 1}
20+
{"id": "nnirvi5yma8wsswp", "type": "text", "content": {"cssClasses": "@{file.content_css}", "text": "@{file.content}", "useMarkdown": "yes"}, "handlers": {}, "isCodeManaged": false, "parentId": "0ggjzzhqd8vgttkg", "position": 1}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"id": "root", "type": "root", "content": {"appName": "Prescription Information App"}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
1+
{"id": "root", "type": "root", "content": {"appName": "Prescribing Information App"}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"id": "workflows_root", "type": "workflows_root", "content": {}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
1+
{"id": "workflows_root", "type": "workflows_root", "content": {}, "handlers": {}, "isCodeManaged": false, "position": 0, "visible": {"binding": "", "expression": true, "reversed": false}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"writer_version": "0.8.2"
3-
}
3+
}

prescribing-info-app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ def contributing_sources_change_vis(state: WriterState) -> None:
174174
}
175175
)
176176

177-
initial_state.import_stylesheet("style", "/static/custom.css?115")
177+
initial_state.import_stylesheet("style", "/static/custom.css?1")

prescribing-info-app/static/custom.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
}
1515

1616
.file{
17-
height: 60vh !important;
1817
overflow-x: auto !important;
1918
}
2019

2120
.file-text{
22-
height: 51vh !important;
21+
height: 40vh !important;
2322
overflow-y: auto !important;
2423
}
2524

0 commit comments

Comments
 (0)