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

WIP - new host details tab extention #358

Closed

Conversation

Ron-Lavi
Copy link
Member

@Ron-Lavi Ron-Lavi commented Oct 5, 2020

This is still a WIP

@Ron-Lavi
Copy link
Member Author

Ron-Lavi commented Oct 5, 2020

still a WIP, but made css to work 🎆

@ShimShtein @sharvit @amirfefer

Screenshot (14)

Copy link
Member

@amirfefer amirfefer left a 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.

Comment on lines 11 to 16
def plugin_css_path
link_element = helpers.css_tags_for([:foreman_rh_cloud]).first
render json: {
linkElement: link_element,
}, status: :ok
end
Copy link
Member

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

Copy link
Member Author

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 Show resolved Hide resolved
Comment on lines 26 to 29
case 'subscriptions':
window.tfm.store.observeStore(
'katello.subscriptions.itemCount',
subscriptionCountListener
Copy link
Member

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?

Copy link
Member Author

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

subscriptionCountListener
);
break;
case 'experimental':
Copy link
Member

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:

  1. Go to a react based page (i.e Audits) - This switch case catch nothing
  2. Navigate to a hosts details page - This switch case isn't re-triggered
  3. 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.

Copy link
Member Author

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.

@adamruzicka
Copy link
Contributor

Needs a rebase, also general ping :)

@Ron-Lavi Ron-Lavi closed this Oct 3, 2021
@Ron-Lavi
Copy link
Member Author

Ron-Lavi commented Oct 3, 2021

opened a new PR in #653

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.

None yet

3 participants