sujitha-saranam opened a new pull request, #54447: URL: https://github.com/apache/airflow/pull/54447
#### Overview This PR addresses https://github.com/apache/airflow/issues/54174. It fixes the default scroll to the most recent logs and ensures that jump-to-start/end buttons scroll instantly. #### Root Cause: Jumping to the end is slow because the virtualizer has to compute/measure positions for a large number of rows before it can accurately place the scroll. For very long logs, this causes the temporary slow scroll effect. #### Solution - Reversed the log order so that newest entries appear first, making default display show the most recent logs. - Implemented precise offset calculation for hash-based navigation to jump directly to a target log. - Enhanced jump-to-start and jump-to-end logic to bypass gradual virtualizer measurement, allowing instant scrolling. - Updated highlight calculation to work correctly with the reversed order, ensuring the selected log is always visually marked. #### Changes Made - Reversed the logs array for newest-first display. - Updated useLayoutEffect to compute exact scroll offsets based on virtual item positions. - Modified handleScrollTo to combine scrollToIndex with scrollTop via requestAnimationFrame for instant jumps. - Adjusted the bgColor calculation for virtualized items to correctly highlight the log matching the hash. - Tweak Code and VStack container styling to match virtualized content height and improve scroll behavior. closes: #54174 related: #54174 -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org