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
WIP - new host details tab extention #358
Conversation
acca34f
to
2515321
Compare
still a WIP, but made css to work 🎆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @LaViro 👍
The CSS importing should work as expected so you can remove the workaround.
I left a few inline comments.
def plugin_css_path | ||
link_element = helpers.css_tags_for([:foreman_rh_cloud]).first | ||
render json: { | ||
linkElement: link_element, | ||
}, status: :ok | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
css importing works out of the box with theforeman/foreman#8123
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! great job @amirfefer
webpack/global_index.js
Outdated
case 'subscriptions': | ||
window.tfm.store.observeStore( | ||
'katello.subscriptions.itemCount', | ||
subscriptionCountListener |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was brought from the older global_js file
webpack/global_index.js
Outdated
subscriptionCountListener | ||
); | ||
break; | ||
case 'experimental': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this switch case triggering once or on every page transition?
Scenario:
- Go to a react based page (i.e Audits) - This switch case catch nothing
- Navigate to a hosts details page - This switch case isn't re-triggered
- Insights tab isn't registered
If this switch case triggers on every page transition we need to verify that we don't register fills twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need a bit more investigation, though IMO when it comes to React pages it will get registered just once.
2515321
to
f5a1e9c
Compare
Needs a rebase, also general ping :) |
opened a new PR in #653 |
This is still a WIP