[ 
https://issues.apache.org/jira/browse/SPARK-55773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kent Yao resolved SPARK-55773.
------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

Issue resolved by pull request 54574
[https://github.com/apache/spark/pull/54574]

> Replace custom collapse/toggle system with Bootstrap 5 Collapse API
> -------------------------------------------------------------------
>
>                 Key: SPARK-55773
>                 URL: https://issues.apache.org/jira/browse/SPARK-55773
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Web UI
>    Affects Versions: 4.2.0
>            Reporter: Kent Yao
>            Assignee: Kent Yao
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> The Spark Web UI has 40+ manual collapse implementations in webui.js using 
> collapseTable(), toggleClass('collapsed'), and custom localStorage logic for 
> state persistence.
> Bootstrap 5's native Collapse API (data-bs-toggle="collapse", data-bs-target) 
> handles all of this with zero JavaScript. This would:
> - Remove ~100 lines of custom JS in webui.js (lines 32-55, 108-162)
> - Eliminate manual arrow state management (.arrow-open, .arrow-closed)
> - Simplify collapse usage across EnvironmentPage, JobPage, AllJobsPage, 
> StoragePage, ExecutionPage
> - Use BS5's built-in aria-expanded for accessibility
> Part of SPARK-55760 (Spark Web UI Modernization)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to