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

Cockpit: Implement modal dialog #1716

Merged
merged 1 commit into from
Oct 30, 2017
Merged

Conversation

kahowell
Copy link
Contributor

Implementation is from https://github.com/cockpit-project/cockpit/blob/c04c148225c59d2f053300d80b6b4731e421b8e6/pkg/lib/cockpit-components-dialog.jsx .

It's been cleaned up a bit in order to satisfy switching to React from
react-lite, as well as to clean up a few warnings. See the diff of
src/cockpit-components-dialog.jsx to the link above for changes.

I also made a few changes in order to get the registration flow to work
and general improvements:

  • fixed the registration method in subscriptions-client.js
  • removed the ensure registered requirement from the products service
  • removed tracebacks from error messages emitted by the D-Bus services
  • added the extract-text-webpack-plugin to webpack to produce subscriptions.css

@kahowell
Copy link
Contributor Author

0bbd079..f6f8779:

  • minimize css
  • don't build source maps in production build
  • add subscriptions.css to the spec file
  • remove test for product listing only when registered

@kahowell
Copy link
Contributor Author

f6f8779..1f50ba6: missed test in last commit

@kahowell
Copy link
Contributor Author

1f50ba6..000612b: fix unused import

Implementation is from https://github.com/cockpit-project/cockpit/blob/c04c148225c59d2f053300d80b6b4731e421b8e6/pkg/lib/cockpit-components-dialog.jsx .

It's been cleaned up a bit in order to satisfy switching to React from
react-lite, as well as to clean up a few warnings. See the diff of
src/cockpit-components-dialog.jsx to the link above for changes.

I also made a few changes in order to get the registration flow to work
and general improvements:
 - fixed the registration method in subscriptions-client.js
 - removed the ensure registered requirement from the products service
 - removed tracebacks from error messages emitted by the D-Bus services
 - added the extract-text-webpack-plugin to webpack to produce subscriptions.css
@kahowell
Copy link
Contributor Author

000612b..a695c30: rebase

@kahowell
Copy link
Contributor Author

Changes to cockpit-components-dialog.jsx: https://gist.github.com/kahowell/3471d83d173f30e24067bf953616edb5

Copy link
Member

@cnsnyder cnsnyder left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!!

@cnsnyder cnsnyder merged commit e6a5b45 into feature/cockpit Oct 30, 2017
@cnsnyder cnsnyder deleted the khowell/cockpit_modal branch October 30, 2017 21:01
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