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

Convert part of Infra Provider dashboard to React, add Quadicon. #6248

Merged
merged 15 commits into from Oct 4, 2019

Conversation

martinpovolny
Copy link

@martinpovolny martinpovolny commented Sep 30, 2019

  • In order to add Quadicon to the provider dashboard I am converting part of it to React.
  • Then actually adding the Quadicon.

q-infra-2019-09-30_22-29

https://bugzilla.redhat.com/show_bug.cgi?id=1542736

TODO:

  • Remove obsolete Angular files (probably not as part of this PR as they seem to be used elsewhere)
  • Add specs.

@miq-bot miq-bot added the wip label Sep 30, 2019
@martinpovolny martinpovolny changed the title [WIP] Convert part of Infra Provider dashboard to React. Convert part of Infra Provider dashboard to React, add Quadicon. Sep 30, 2019
@martinpovolny martinpovolny changed the title Convert part of Infra Provider dashboard to React, add Quadicon. [WIP] Convert part of Infra Provider dashboard to React, add Quadicon. Sep 30, 2019
@miq-bot miq-bot changed the title [WIP] Convert part of Infra Provider dashboard to React, add Quadicon. Convert part of Infra Provider dashboard to React, add Quadicon. Sep 30, 2019
@miq-bot miq-bot removed the wip label Sep 30, 2019
@terezanovotna
Copy link

Looks good! Seems it's just refactored and there are no visual changes.

@miq-bot remove_label ux/review
@miq-bot add_label ux/approved

@martinpovolny
Copy link
Author

Looks good! Seems it's just refactored and there are no visual changes.

Except for the quadicon which is a standard quadicon w/o any modifications.

const url = `/${providerType}_dashboard/aggregate_status_data/${providerId || ''}`;
http.get(url)
.then((response) => {
console.log(response.data);
Copy link
Member

Choose a reason for hiding this comment

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

@martinpovolny the console.log() is left there intentionally?

Copy link
Author

Choose a reason for hiding this comment

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

No. Thanks!


PfAggregateStatusCard.defaultProps = {
layout: null,
className: null, // bylo to tam?
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment needs to go away.

className: null, // bylo to tam?
data: {},
altLayout: false,
showTopBorder: false, // urcite?
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment too.

@@ -58,6 +62,7 @@ ManageIQ.component.addReact('MiqAboutModal', MiqAboutModal);
ManageIQ.component.addReact('OptimizationList', OptimizationList);
ManageIQ.component.addReact('OpsTenantForm', OpsTenantForm);
ManageIQ.component.addReact('OrcherstrationTemplateForm', OrcherstrationTemplateForm);
ManageIQ.component.addReact('Quadicon', Quadicon);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably come after PxeServersForm (if we want to do this alphabetically).

@mzazrivec
Copy link
Contributor

mzazrivec commented Oct 3, 2019

This is what I get when I navigate to physical infra details screen
error01

EDIT: after server restart, the problem shown above went away 🤷

@martinpovolny
Copy link
Author

@mzazrivec : fixed the issues. The failure does not seem related.

@mzazrivec mzazrivec self-assigned this Oct 4, 2019
@miq-bot
Copy link
Member

miq-bot commented Oct 4, 2019

Checked commits martinpovolny/manageiq-ui-classic@2b617b7~...ab30cdd with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
6 files checked, 0 offenses detected
Everything looks fine. 🍰

@mzazrivec mzazrivec added this to the Sprint 122 Ending Oct 14, 2019 milestone Oct 4, 2019
@mzazrivec mzazrivec merged commit cf8f223 into ManageIQ:master Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
React rewrite
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

5 participants