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
[cms-v2]Inital work for cms refactoring #1625
[cms-v2]Inital work for cms refactoring #1625
Conversation
@thi4go I addressed all of your review comments. Regarding:
This won't happen anymore once decred/politeia#1089 is in. You can verify that this error doesn't happen when you try to apply the actions in the invoice detail page instead of on the list page. |
Hey @fernandoabolafio, looking very good on my end, tested the listed features and they are all working fine. Just those two minor comments:
Other than this, the PR is LGTM. |
@thi4go can you describe what was happening when you tried to set a supervisor? Perhaps a small video or a gif would be nice.
|
@fernandoabolafio no users were being listed as possible supervisors for my users, maybe because I only had one admin account, or a incorrect user status to make it possible. |
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.
Hi Fernando, good job! This new version of CMS is looking really great! Congratulations 👏 .
Just a few comments after testing it on mobile (safari for iOS 13.3):
-
Mobile view needs some left padding for dropdown menu options, see:
-
Also, on mobile view, at least for Safari 13, I was not able to edit the subdomain field. All other fields are okay.
-
The manage user tab should be only available for admins.
-
One quick observation: if the user is not allowed to skip lines, why do we need this multi-line editor field? After filling my invoice description, I noticed that I cannot skip lines. It would be better if I got the error message before clicking "save" on "Edit description" modal. What do you think?
src/pages/RoutesCMS.jsx
Outdated
if (location.pathname !== to) { | ||
history.push({ pathname: to, search: location.search }); | ||
} | ||
}, [history, location.pathname, to]); |
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'm getting this warning about the location.search
dep:
React Hook useEffect has a missing dependency: 'location.search'. Either include it or remove the dependency array
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 see that as well.
I'm getting an error
|
@victorgcramos regarding your comments:
I centralized the content and the dropdown should be fine now.
Let's create an issue for that aside with some other UX improvements for the submission form.
Why? This tab shows a different view for non-admins (fields aren't editable), so the user can inspect his own attributes for DCC.
Good catch! I replaced the multiline editor by a simple text input so it shouldn't be a problem anymore. |
@alexlyp regarding
It was happening before the changes applied by decred/politeia#1049. Are you running politeia with this commit included? |
@fernandoabolafio I just said that because of the specs from #1470. Nvm! |
Yah looks like I was running an older version of piwww, all good now. @fernandoabolafio |
All good here. Great job! |
Looks good to me as well! @fernandoabolafio I suppose we can merge this then @victorgcramos can start to work on integrating the recent invoice work (which is up for PR) and the DCC work as well. But if you have any ideas to ease that process I'm interested to hear your ideas. |
@alexlyp I think that's the general plan. Merge this and then add all the other features. And the others can work on adding the existent features that I couldn't add yet. Such as payouts, invoice editing and so on. I created issues for those. At some point, we will need to halt the work in the "old code" to be able to deliver the new web-app. I would rather do it sooner than later. What do you think? |
Let's move this discussion to #1685. |
This PR sets the base layer for the new CMS web client. This PR adds the requirements for Signup, invoice submission and evaluation as well comments. This also adds the complementary features for a useful version of CMS such as invoice listing, account management, etc.
This PR sets the base layer for the new CMS web client. This PR adds the requirements for Signup, invoice submission and evaluation as well comments. This also adds the complementary features for a useful version of CMS such as invoice listing, account management, etc.
This PR is the first of many to come to accomplish what is described in #1604.
This PR contains the following features:
This is a preview of how the main screens are currently looking with the refactoring:
Depends on decred/politeia#1049
Depends on decred/politeia#1089
obs: This PR was firstly open on #1605. It was mistakenly merged in the branch cmsv2 so I had to reopen it with a fresh PR. Sorry for the confusion.