Kent Yao created SPARK-55773:
--------------------------------
Summary: 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
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]