bbovenzi commented on issue #42702:
URL: https://github.com/apache/airflow/issues/42702#issuecomment-2876969590

   After chatting with @pierrejeambrun, I updated the `ui_view` plugin spec 
above. Two notes of things that we won't include there but should be 
well-documented:
   
   Component props: we will try to send the most specific object we can to the 
React component (eg: if you're on a dag run tab, we will pass the `dagRun: 
DagRunResponse` as a prop)
   
   Conditionally rendering a plugin: It is up to the plugin maintainer to 
decide if a plugin should render (eg: my plugin is for my custom operator to 
add a component for the task overview page, in my plugin code I need to check 
if the current task has that operator and if not return undefined)
   
   Placement inside of an existing view: We should make sure that the wrapper 
for any plugin that lives inside of an existing view is built for an arbitrary 
number of extra components being added to it. With `position: relative` and 
probably as a "display: flex", it would be up to the plugin component to 
customize its css if it doesn't want to be added to the end of the wrapper: 
https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-properties-for-the-childrenflex-items


-- 
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]

Reply via email to