Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: webui v2.7.5, with feeling #2984

Merged
merged 3 commits into from
Apr 28, 2020
Merged

feat: webui v2.7.5, with feeling #2984

merged 3 commits into from
Apr 28, 2020

Conversation

lidel
Copy link
Member

@lidel lidel commented Apr 14, 2020

This PR is a bit bigger than expected, but I am running on robusta so completed some side quests:

  • fix: /webui opened in browser returned HTTP 405 because browser sends GET and not a POST :-)
  • /webui now loads from API port and works with POST-only RPC API
    • matching behavior of go-ipfs 0.5.0-rc1
    • switches to the latest ipfs-webui v2.7.5
    • /webui is loaded from the same Origin as the RPC API itself
      • Why? right now it does not matter, but it will when we add subdomains and CORS hardening around /api/v0 on API port. When that happens, pages loaded from Gateway won't have access to the API port without being whitelisted, and we want /webui work out of the box without the need for any manual configuration.
  • UX nit: both /webui and /webui/ work now

cc #2971

This switched to latest webui and ensures it is loaded from the same
Origin as the RPC API.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
@lidel lidel requested a review from achingbrain April 14, 2020 22:54
const log = debug('ipfs:webui:info')
log.error = debug('ipfs:webui:error')

const webuiCid = 'bafybeigxqbvc6qxk2wkdyzpkh7mr7zh5pxbvpjb6a6mxdtpwhlqaf4qj5a' // v2.7.4
Copy link
Member Author

@lidel lidel Apr 14, 2020

Choose a reason for hiding this comment

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

@jessicaschilling FYI in the future, when we release new ipfs-webui we will need to update only this one line 🤞

Copy link
Contributor

Choose a reason for hiding this comment

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

@lidel Is this the new version of the (broken link) js-ipfs file that appears here? https://github.com/ipfs-shipyard/ipfs-webui#releasing-a-new-version-of-the-webui

Copy link
Member Author

@lidel lidel Apr 14, 2020

Choose a reason for hiding this comment

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

@jessicaschilling Yes. I'll update that README when we finish the release dance for v2.7.4

@achingbrain
Copy link
Member

It would be really nice to get a smoke test for the webui - it could use nightwatch to spin up a node, open a browser and just assert on the revision in the UI.

@lidel lidel changed the title feat: webui v2.7.4, with feeling feat: webui v2.7.5, with feeling Apr 28, 2020
@achingbrain achingbrain merged commit 2e0a114 into master Apr 28, 2020
@achingbrain achingbrain deleted the feat/webui-v2.7.4 branch April 28, 2020 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants