-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide populationData source strings in app #597
Comments
Hello, I'm interested in helping out for this feature, but I'm still familiarizing myself with the structure of the repo. Would you mind providing the locations of the files you think would be necessary to add the feature? |
The strings are stored in |
Okay, thanks for the pointers you've given me so far! It's helpful to have something to work with. And that makes sense. I could certainly see this feature as being helpful, but there might be a lack of visibility in its current proposed form. It's not immediately obvious to the user that clicking on the ICU/ICMU question mark button would show the user where the data is sourced from. So getting some feedback before making a solid build would be ideal. That said, I'll still go ahead attempting to make progress since it would be helpful to understand the structure of the repo and I think that including the information somewhere would still be helpful, even if it's not in the originally proposed form. |
I managed to create a commit that includes the srcHospitalBeds parameter in the generated json file if you would like to review it. Working on adding the relevant data to the app |
Yes, although the existing 'Presets are rough estimates...' should ideally be replaced by the source string. |
Okay, I'll try to give it my best shot at incorporating the changes into the UI. |
I like this idea. One important point is the help button must revert to it's previous state as soon as the user enters a custom value. I'm not sure how easy this would be to manage as now every button would need to manage state. I would think a citation button (much like Google scholar) at the header of each card would work and would be easier |
I propose to just dump all the sources and citations on a dedicated page #108. I don't think we need to add the unnecessary fluff to the simulator app itself. It will interact with the current scenario and case count state, as well as with the cases import feature #381 and params import through files #541, url or otherwise. There may be corner cases: custom names and missing citations. We need to figure out the imports UX first. |
I agree with that to an extent. Perhaps putting the src data in their own visible location would be easier to work with, since it would be more visible and obvious to the user where the data is coming from rather than clicking on the question button. Though I think user experience would be improved by having the specific source citation pop up upon the click of a button rather than just having an entire page the user has to look through. Dumping all the data would be kind of no different from having the user look through the populationData.tsv, though I suppose it has the benefit of compiling all the data in one location rather than them having to click between locations to find individual sources or actually locating the populationData.tsv. So on that note, why not implement both? The citation page could be entirely its own separate thing for users looking for the compiled sources, but the popup button could be there as well if users want to quickly locate the data. |
So I've gotten the UI mostly working, but there's a small bug that occurs with typescript and strings when a colon appears in the string. The full content of the below string should be "Computed from 2014 data in CIA fact book https://web.archive.org/web/20191122111714/https://www.cia.gov/library/publications/the-world-factbook/geos/af.html" But because of the placement of the colon, it messes up the message for whatever reason - as shown below. Not sure how to fix it so does anyone have any suggestions? I originally was going to typecast the string into a template string and use String.raw, but that didn't seem to do the trick. Also, does anyone know how to get newline characters to appear in the help box? Newline characters don't seem to show up either, and I'm hoping there's some simple solution that wouldn't require having me to look through css and other files. |
@realdy I cannot tell without seeing the code. If you haven't yet, make a draft pull request so that it can be reviewed. Typecasts and I could not say for certain if this feature will be accepted or not, so proceed at your own risk :) |
Okay so after many commits and bad decisions that I subsequently fixed, got a functioning build that conforms to the yarn eslint standards. #606 The code still has the errors I noted earlier and I made sure to comment within ScenarioCardPopulation the relevant area to fix. Aside from bugs related to the ':' character and newlines not being included properly, the help boxes do display properly according to the scenario and I made sure that if the current scenario is in custom, nothing appears for the sources |
Just fixed the colon rendering issue, but still trying to figure out how to add newline characters to make things more visually appealing |
🙋 Feature Request
🔦 Context
😯 Describe the feature
💻 Examples
💁 Possible Solution
Related
The text was updated successfully, but these errors were encountered: