-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat/364-information-storage-steps #429
Conversation
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.
Just replace the link to sancho docs - rest of the comments are for the future purpose
generateJsonBody, | ||
getValues, | ||
watch, | ||
} = useCreateGovernanceActionForm(); |
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.
That most likely will be moved to Governance Provider which would also include logic for hashing metadata & validation of metadata submitted to some storage by user.
|
||
// TODO: change link when available | ||
const openLink = () => { | ||
openInNewTab("https://www.google.com"); |
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.
Replace it with https://docs.sanchogov.tools
in case it is forgotten
@@ -26,9 +30,28 @@ export const useCreateGovernanceActionForm = () => { | |||
reset, | |||
} = useFormContext<createGovernanceActionValues>(); | |||
|
|||
const onSubmit = useCallback(async () => { | |||
setIsLoading(true); | |||
const generateJsonBody = (data: createGovernanceActionValues) => { |
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.
To be replaced with .jsonld with preset default CIP columns and body based on the governance action type.
const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(json)}`; | ||
const link = document.createElement("a"); | ||
link.href = jsonString; | ||
link.download = `${fileName ? fileName : "data"}.json`; |
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.
the fileName
should be replaced with governance action type eg.: treasury-withdrawal.jsonld
List of changes
add storage information screens
only uI without build metadata and metadata hash:
#378
Checklist