-
Notifications
You must be signed in to change notification settings - Fork 0
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
Redesigned data entry page #133
Conversation
Hello all! Have a couple comments
Update: question about test is solved |
Hi Ivan! I haven't done a deep dive into the code yet - but just to answer your first question - that's totally fine. Makes sense since the context is no longer in the data entry form and your solution to remove its assertion from the test is perfect. |
@ivan-kishko this looks great!! A few tiny things:
it should be
Question for @hobuobi -- I found myself missing the "Back to Reports Overview" link we used to have on the left side. Do we not need that anymore since we have "Save as Draft" instead? |
@hello @lilidworkin About that link - now we have "Save as Draft" button which does the same, also you can see that in figma this link is removed (not on demo video though) |
@@ -125,6 +124,7 @@ const DataEntryForm: React.FC<{ | |||
|
|||
const isPublished = | |||
reportStore.reportOverviews[reportID].status === "PUBLISHED"; | |||
const navigateState = { settingsMenuOption: menuOptions[2] }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Hi Ivan! This looks fantastic - thank you for swimming in the wild DataEntryForm sea! It's really cool to see these pages evolve and I love a lot of the decisions you made. Here are a few notes from my end:
|
Going off of Mahmoud's comment on how we should disable interaction with the layers below the Need Help modal, we could also make it so that clicking outside the need help modal closes the modal? |
<Button type="border" onClick={() => setShowDataEntryHelpPage(true)}> | ||
Need Help? | ||
</Button> | ||
<Button type="border" onClick={() => navigate("/")}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more a question for @hobuobi but should this button be called "Save as Draft" if we already autosave and this just navigates you to the Reports page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can imagine users clicking on this button needlessly thinking they need to in order to save their progress
…me help page styled components, disable interaction with form while help page is shown,
Hello @mxosman , fixed all you asked to in commit 3c07c0a
|
Thank you, Ivan!
Screen.Recording.2022-11-03.at.5.10.52.PM.movLet me know if you can recreate. It's on report metrics that have 3 disaggregation tabs and the 3rd one is disabled.
|
Besides my suggestions, the code looks good to me, thanks Ivan! |
…is disabled but has input values and/or errors
Thanks for clarifying on steps to repro the issue with hovering disaggregation @mxosman! |
Thank you so much for all the changes, Ivan! Very strange about the tooltip! For some reason I'm still seeing it when I run this branch with your latest commits (HEAD = b00d836): This is on Law Enforcement > Total Arrests -- do you see the same or no? Everything else looks good to me! |
It shows up fine when the disaggregation tab is clicked (open) - but when it is not open the tooltip has this grey'd like the screenshot above. |
I think I found the culprit - try removing the |
It is going to work but then disabled disaggregations which have inputs filled will not look different from ones that has only empty inputs. Can't understand why It does not work for you. |
@mxosman I figured out why, need some time to resolve it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @ivan-kishko ! This should be good to merge! I hope we'll have a new task for you ASAP!
Description of the change
Type: Non-breaking refactor
Related issues
Closes #118
Checklists
Development
This box MUST be checked by the submitter prior to merging:
These boxes should be checked by the submitter prior to merging:
Code review
These boxes should be checked by reviewers prior to merging: