bbovenzi commented on code in PR #75229:
URL: https://github.com/apache/airflow/pull/75229#discussion_r4340416620
##########
airflow-core/src/airflow/ui/src/utils/pluginAppliesTo.ts:
##########
@@ -218,5 +229,42 @@ export const hasAppliesToCriteria = (view: PluginView):
boolean => {
* Without this, a scoped view would render on first paint and disappear once
the queries
* resolve. Unscoped views never wait.
*/
-export const isAppliesToPending = (view: PluginView, context:
AppliesToContext): boolean =>
+export const isAppliesToPending = (view: ScopableView, context:
AppliesToContext): boolean =>
hasAppliesToCriteria(view) && context.isLoading;
+
+/**
+ * Keep only the contributions this destination should render, already scoped.
+ */
+export const filterScopedViews = <View extends ScopableView>(
Review Comment:
Reusing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]