-
Notifications
You must be signed in to change notification settings - Fork 19
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
Create a program #2045
Create a program #2045
Conversation
5cb5843
to
6acea2c
Compare
55a3a5a
to
3dee31b
Compare
fd90e67
to
789b71f
Compare
b85547c
to
bc4ea81
Compare
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.
Very nice work here Curtis.
This is a consistent chunk out of the Program! 💯
const canAdmin = canCreateProgram(userRoles); | ||
|
||
if (loading) { | ||
return <SpinnerLoader />; |
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.
Since this is a "full page" component, maybe it's a good idea to have a large spinner, with a message in it.
Something like this: https://github.com/JoinColony/colonyDapp/blob/master/src/modules/dashboard/components/Community/Community.tsx#L117-L119
But this is good either way, so up to you.
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.
Great call! Done
text={MSG.buttonPublish} | ||
title={MSG.buttonPublishTitle} | ||
/> | ||
<Button |
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.
Great eye 💪
Fixed
/> | ||
</div> | ||
</div> | ||
<Input |
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.
Good call.
Since we don't really want to validateOnMount
(what causes this issue), I've decided to use an alternate method to validate canPublish
. I'm not in love with it, but it works
ffe08ce
to
109a6a7
Compare
1876981
to
b3663df
Compare
109a6a7
to
4def007
Compare
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 changes.
Now the title field is no longer invalid by default:
And the button changes from save draft -> save after publishing the program
I found an error, but that has more to do with the react-intl changes rather then this, but I'll post it anyway.
Any time I open the notifications popover, I get this error:
Nice find. Which browser? |
Plain ol' chrome |
Ok, I have an attempt at a fix in #2067 Merging this now |
Description
This PR adds the create / edit description page, a few mutations, and some extra enhancements towards this feature.
New stuff ✨
Changes 🏗
Demo 🎥
Closes #2008