github-actions[bot] opened a new pull request, #77274:
URL: https://github.com/apache/airflow/pull/77274

   SmoothOperator has only ever logged a link to Sade's "Smooth Operator",
   which nobody sees unless they open the task log. Task and task instance
   pages for a SmoothOperator now offer a record button that opens a
   full-screen 1980s supper-club scene over the dimmed Airflow page.
   
   The scene runs as a small Dag of its own, and that is the joke: the
   lights come up while dim_the_lights runs, the platter spins up and the
   tonearm cues onto the record while drop_the_needle runs, and the video
   plays once the SmoothOperator task itself runs, which is as quick as the
   real operator's execute. Airflow's own pause switch pauses the show the
   way it pauses a Dag, and any key or click skips to the finished run.
   
   Because the scene embeds a YouTube video, it asks first, in Airflow's
   own confirmation dialog, with the Google privacy and YouTube terms
   links beside a notice that names what YouTube may receive (IP address,
   browser or device information, the page's address or referrer
   including its host name) and store (cookies or local storage). The
   viewer may ask to be remembered in this browser; that is a single
   localStorage flag, described separately so it is not conflated with
   what YouTube gets, and the scene offers a way to take it back that
   loads nothing. The video is a plain, sandboxed embed on YouTube's
   privacy-enhanced host that mounts only once the player is visible and
   never smaller than YouTube's 200x200 minimum, as YouTube's embed rules
   require. The IFrame Player API is deliberately not used: it would run
   Google's script in Airflow's own origin, and driving the player through
   its undocumented postMessage protocol would breach YouTube's developer
   policies, so the scene is scripted rather than synchronised.
   
   There is deliberately no deployment-manager off switch: the embed is
   only requested after the user clicks Play and confirms, and an
   administrator who wants to block it entirely can do so with a
   Content-Security-Policy frame-src directive on the API server.
   
   The icon is Lucide's disc-album, ISC like the other Lucide icons the UI
   already uses, so no new icon set and no attribution. Only a
   SmoothOperator's header reads localStorage; every other task's header
   returns early with no hooks.
   
   The scene works with no network access, keeps its fades and the Dag
   run under reduced motion while dropping the ambient movement, and
   leaves the page's own shortcuts and the player's controls untouched.
   (cherry picked from commit 42ac710ae74d24bc6812efaf59edc2a2db9e0226)
   
   Co-authored-by: Shahar Epstein <[email protected]>


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