Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Add option to publish to IPNS #117

Merged
merged 7 commits into from
May 26, 2018
Merged

Conversation

kernelwhisperer
Copy link
Contributor

What changed?

Added Publish to IPNS window and Publish to IPNS to the StorageElement's menu.

app/menu.js Outdated
@@ -22,6 +23,12 @@ const template = [{
click () {
ResolveIPNS.create(app)
}
}, {
label: 'PublishToIPNS',
accelerator: 'CmdOrCtrl+F',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would invert Resolve (aka Find) and Publish:

  • CmdOrCTRL+F => Resolve
  • CmdOrCTRL+E => Publush

Does it make more sense? otherwise lets find something else. CMD+P? (used for Print, but what do we have to print? :P )

app/menu.js Outdated
@@ -22,6 +23,12 @@ const template = [{
click () {
ResolveIPNS.create(app)
}
}, {
label: 'PublishToIPNS',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add spaces, Publish to IPNS

type="text"
placeholder="what would you like to publish?"
/>
</Content>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we add a line that is saying that this process may take few minutes?

label="Your peer ID"
type="text"
value={peer ? peer.id : 'Loading...'}
readOnly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason I cannot copy this. Should we add a button to copy the ID in the clipboard?
(Same issue goes in the settings)

publishToIPNS(hash)
.then(result => {
this.setState({ loading: false })
const message = `Successfully published ${result.value} to IPNS!`
Copy link
Member

@koalalorenzo koalalorenzo May 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the IPNS hash instead?
Something like IPNS ${peer id} has been successfully updated to ${result.value}?

@koalalorenzo
Copy link
Member

I have spent my last 30 min trying to understand what is wrong here:

screen shot 2018-05-24 at 21 17 55

:O

@kernelwhisperer
Copy link
Contributor Author

That's the error we get from ipfs when the hash is an empty string, not very nice...
The problem was how the hash was retrieved, should be working now.

@koalalorenzo koalalorenzo merged commit 4f71188 into master May 26, 2018
@koalalorenzo koalalorenzo deleted the feature/8-publish-to-ipns branch May 26, 2018 21:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants