Skip to content
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

Replace yastd-proxy with cockpit infrastructure #16

Merged
merged 22 commits into from
Feb 2, 2022
Merged

Conversation

imobachgs
Copy link
Contributor

Initially, the idea of this PR was to switch from yastd-proxy to cockpit. By the way, we introduced additional changes and improvements. I will open an additional PR adding more documentation, especially about how the code is organized.

  • Rely on cockpit-ws instead of yastd-proxy.
  • Add a new useInstallerClient hook to inject the client where needed.
  • Move most of the application state to its corresponding components, reducing the root state.

Trello: https://trello.com/c/vXkc57mV/

* The proxy is used when running the "start" command.
* The yastd-proxy is not needed anymore.
* Otherwise it will not work under cockpit-ws
* It allows to inject a shared installerClient in any component.
* The global state does not need to know the list of languages.
* The global state does not need to know the list of products.
* The global state does not need to know the list of disks or the
  storage proposal.
* Let's use npm by now.
* The web UI relies now on Cockpit, so the proxy is not needed anymore.
Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

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

Despite those minor comments, it LGTM!

web/src/App.js Outdated Show resolved Hide resolved
web/src/LoginForm.js Show resolved Hide resolved
web/src/LoginForm.js Show resolved Hide resolved
web/src/context/auth.js Outdated Show resolved Hide resolved
web/src/index.js Show resolved Hide resolved
web/src/LanguageSelector.js Show resolved Hide resolved
web/src/ProductSelector.js Show resolved Hide resolved
web/package.json Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@imobachgs imobachgs merged commit aa2cd4a into master Feb 2, 2022
@imobachgs imobachgs deleted the use-cockpit branch February 2, 2022 15:37
This was referenced Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants