yaooqinn opened a new pull request, #54552:
URL: https://github.com/apache/spark/pull/54552

   ### What changes were proposed in this pull request?
   
   Upgrade the Spark Web UI from Bootstrap 4.6.2 (EOL Jan 2024) to Bootstrap 
5.3.8:
   
   - Replace `bootstrap.bundle.min.js` and `bootstrap.min.css` with v5.3.8
   - Replace `dataTables.bootstrap4` files with `dataTables.bootstrap5`
   - Migrate 
`data-toggle`/`data-target`/`data-placement`/`data-html`/`data-container` to 
`data-bs-*` prefix across all Scala, JS, and HTML template files
   - Migrate CSS classes: `mr-auto`→`me-auto`, `mr-2`→`me-2`, 
`float-right`→`float-end`, `form-inline`→`d-flex`, `form-group`→`mb-3`
   - Update tooltip initialization to use Bootstrap 5 `Tooltip` constructor 
instead of jQuery `.tooltip()` plugin
   - Update `docs/_layouts/global.html` for BS5 data attributes
   - jQuery is retained as it is still required by DataTables, dagre-d3, and 
custom Spark JS
   
   ### Why are the changes needed?
   
   Bootstrap 4.6.2 reached end-of-life in January 2024 and no longer receives 
security patches or bug fixes. Bootstrap 5 is the current LTS with active 
maintenance.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. The UI should look and behave identically. Bootstrap 5 is visually 
backward-compatible with Bootstrap 4.
   
   ### How was this patch tested?
   
   - All 12 Jest UI tests pass
   - Scalastyle passes
   - `core/compile` and `streaming/compile` succeed
   - `UIUtilsSuite` (8 tests) and `StoragePageSuite` (5 tests) pass
   - Live verification via spark-shell: all 4 main pages (`/`, `/jobs/`, 
`/stages/`, `/executors/`) serve correct BS5 markup with zero old BS4 
attributes or CSS classes
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes, GitHub Copilot was used.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to