-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Catalog: Display badges for Angular plugins and disable install if Angular is disabled #69084
Catalog: Display badges for Angular plugins and disable install if Angular is disabled #69084
Conversation
public/app/features/plugins/admin/components/InstallControls/ExternallyManagedButton.tsx
Show resolved
Hide resolved
public/app/features/plugins/admin/components/PluginDetailsAngularDeprecation.tsx
Outdated
Show resolved
Hide resolved
public/app/features/plugins/admin/components/PluginDetailsPage.tsx
Outdated
Show resolved
Hide resolved
public/app/features/plugins/admin/components/PluginDetailsAngularDeprecation.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM!
public/app/features/plugins/admin/components/Badges/PluginAngularBadge.tsx
Outdated
Show resolved
Hide resolved
public/app/features/plugins/admin/components/PluginDetailsAngularDeprecation.tsx
Outdated
Show resolved
Hide resolved
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Read more about Angular support deprecation. |
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.
@shih-chris Could you advise what we would need to add here in order to start tracking whether a user from an organization has clicked this link?
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.
Great work on this @xnyo
…gular is disabled (#69084) * Angular deprecation: Add Angular badge in plugin catalog page * Angular deprecation: Add alert in plugin details page * Angular deprecation: Disable install button if for Angular plugins * removed extra console.log * Add tests for Angular badge * Add tests for PluginDetailsAngularDeprecation * Add tests for InstallControlsButton * Add tests for ExternallyManagedButton * Table tests * Catalog: Update angular deprecation message * PR review feedback * Update tests * Update copy for angular tooltip and alert * Update tests * Fix test warnings * Fix angularDetected not being set for remote catalog plugins * Dynamic alert text based on grafana config * Moved deprecation message to a separate function * Removed unused Props in PluginAngularBadge
What is this feature?
When Angular support is disabled in the instance:
It changes some UI elements in the plugins catalog only for Angular plugins:
Plugins catalog page
Plugin details page
Why do we need this feature?
Improves Angular deprecation discoverability for operators when browsing the plugins catalog.
Who is this feature for?
Grafana operators
Which issue(s) does this PR fix?:
Related to #68974
Special notes for your reviewer:
Requires the following PRs to be merged in GCOM, so
isAngular
is returned by the API:Please check that: