From 25375b200d6c008ebdd2436cd5bb7754fefc89f6 Mon Sep 17 00:00:00 2001 From: Hazim Ab Halim Date: Wed, 4 Oct 2023 16:44:04 -0400 Subject: [PATCH 1/2] intro and instruction panel. rearranged buttons --- src/pages/Dashboard.tsx | 79 +++++++++++++++++++++++++++++++++++------ 1 file changed, 68 insertions(+), 11 deletions(-) diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 354b843..d37a1f9 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -178,10 +178,67 @@ export const DashboardPage: FC = () => { }, [filters, selectedCategories]); return ( - <> - - - + + + {/* Change hover silhoutte */} + + + All Filters + + + + + {/* this might need to be smaller to be closer to figma design */} + + + Introduction + + + + The purpose of this dataset is to enable researchers to inquiry brain bio-sample availability at the Framingham Heart Study archive. +
You can use the filters provided to narrow down the criteria of the sample and discover whether there are sample that fit your requirements and if there are, how many unique samples are available. +
+ + Instructions + + + + Using this inquiry system is very simple and intuitive. In essence, you would choose the criteria of the biosample by applying the filters that are available for this dataset. Additional information regarding the filters can be found by hovering over the information icon beside each filter. To achieve a summary of the inquiry based on the filters, you can follow the following steps + +
    +
  1. + + Click "All Filters" on the top right of the screen to see every available filter for this dataset. + +
  2. +
  3. + + Use the '+' icon to add filter and then click anywhere to close the side bar. + +
  4. +
  5. + + Adjust the values for individual filters under "Current Filters" + +
  6. +
  7. + + Click "Apply Filter" to send the request. A table will pop up with the result + +
  8. +
  9. + + Additional data columns can be added by clicking the '+' on top of the table + +
  10. +
  11. + + Data are available for download in CSV or JSON format using the respective button. Click "DISMISS" when done + +
  12. +
+ +
@@ -247,7 +304,12 @@ export const DashboardPage: FC = () => { - + + + + }> @@ -295,11 +357,6 @@ export const DashboardPage: FC = () => { })} - - - {/* Table dialog */} @@ -323,7 +380,7 @@ export const DashboardPage: FC = () => { - + ); }; From f8fae666e0e68181ac6cb6ca9439f84b1ececb22 Mon Sep 17 00:00:00 2001 From: Hazim Ab Halim Date: Wed, 4 Oct 2023 16:45:21 -0400 Subject: [PATCH 2/2] fixed format with prettier --- src/pages/Dashboard.tsx | 97 +++++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index d37a1f9..e9b0306 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -181,63 +181,64 @@ export const DashboardPage: FC = () => { {/* Change hover silhoutte */} - - - All Filters - + + All Filters {/* this might need to be smaller to be closer to figma design */} - - + + Introduction - - - - The purpose of this dataset is to enable researchers to inquiry brain bio-sample availability at the Framingham Heart Study archive. -
You can use the filters provided to narrow down the criteria of the sample and discover whether there are sample that fit your requirements and if there are, how many unique samples are available.
- + + + The purpose of this dataset is to enable researchers to inquiry brain bio-sample availability at the Framingham Heart Study archive. +
+ You can use the filters provided to narrow down the criteria of the sample and discover whether there are sample that fit your requirements and if there are, how many + unique samples are available. +
+ Instructions - - - - Using this inquiry system is very simple and intuitive. In essence, you would choose the criteria of the biosample by applying the filters that are available for this dataset. Additional information regarding the filters can be found by hovering over the information icon beside each filter. To achieve a summary of the inquiry based on the filters, you can follow the following steps + + + + Using this inquiry system is very simple and intuitive. In essence, you would choose the criteria of the biosample by applying the filters that are available for this + dataset. Additional information regarding the filters can be found by hovering over the information icon beside each filter. To achieve a summary of the inquiry based on + the filters, you can follow the following steps
  1. - - Click "All Filters" on the top right of the screen to see every available filter for this dataset. - -
  2. -
  3. - - Use the '+' icon to add filter and then click anywhere to close the side bar. - -
  4. -
  5. - - Adjust the values for individual filters under "Current Filters" - -
  6. -
  7. - - Click "Apply Filter" to send the request. A table will pop up with the result - -
  8. -
  9. - - Additional data columns can be added by clicking the '+' on top of the table - -
  10. -
  11. - - Data are available for download in CSV or JSON format using the respective button. Click "DISMISS" when done - -
  12. + + Click "All Filters" on the top right of the screen to see every available filter for this dataset. + + +
  13. + + Use the '+' icon to add filter and then click anywhere to close the side bar. + +
  14. +
  15. + + Adjust the values for individual filters under "Current Filters" + +
  16. +
  17. + + Click "Apply Filter" to send the request. A table will pop up with the result + +
  18. +
  19. + + Additional data columns can be added by clicking the '+' on top of the table + +
  20. +
  21. + + Data are available for download in CSV or JSON format using the respective button. Click "DISMISS" when done + +
-
@@ -304,9 +305,9 @@ export const DashboardPage: FC = () => {
- + -