-
Notifications
You must be signed in to change notification settings - Fork 22
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
Convert dashboard to functional #534
Convert dashboard to functional #534
Conversation
9bfc2a2
to
6d53c1f
Compare
d56a7a1
to
3a2f745
Compare
aa798b9
to
71c18fc
Compare
71c18fc
to
87bcc45
Compare
I would suggest getting eslint and prettier installed on your vs-code for those tools to help you simplify and catch a lot of small nit/spacing/simplifications. |
Thanks for the review @Andrewgdewar ! I've applied most of the suggestions, and am going to look at the self-calling await for my fetches. I'm also interested in moving those HTTP calls to the react-router-dom loader hooks instead, and maybe would use the same await pattern there? eslint is part of the pre-commit config for the repo, maybe it needs some config updates? |
I opened #536 to update eslint, and add some plugins. |
b31fefd
to
f3f2216
Compare
it would be shorter to list what didn't change. Everything changes? useEffect replacing compnentDidMount No more weird handling of filter values, let API filtering do it's job Cleaned up small behaviors around button enabling State use makes way more sense now dashboard_id is sanely synced when direct navigation via URL
f3f2216
to
b9bced5
Compare
@john-dupuy want to have some fun and tear apart my react conversion??? |
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 are 2 things I found, other than that - looks good to me, great work!
empty input value for db select don't wait for promise repsonse to set modal open state
b9c9420
to
f836ab9
Compare
f836ab9
to
4629967
Compare
As this is going into a feature branch and not main, I'm going to merge with the existing review feedback. This will continue to be tested in the feature branch with #535, and the branch will be deployed to stage for scale testing. |
Conversion of the Dashboard component to React functional.
ActiveDashboard
from the context, now correctly implemented with state in DashboarddefaultDashboard
to the context, now correctly set when project selection changeshttps://issues.redhat.com/browse/IQE-3256