Refactor Authentication Tables in the Administration Tab #8679
Labels
area/UI
Improvements or additions to UI
feature-request
refactor
Code refactoring that improves the code but does not affect functionality
Description:
The Administration tab in the UI contains four authentication-related tabs: My Credentials, Users, Groups, and Policies. These sections display data in tables using the DataTable function that uses a generic Table from:
📂 webui/src/lib/components/controls.jsx
Currently, DataTable relies on the generic React-Bootstrap "Table" component, which lacks advanced functionality.
The original intent of using a "Table" was to allow the table itself to auto-adjust column widths, ensuring each cell gets the right amount of space while maintaining a structured layout.
However, a change (fix to Issue#8489) breaks this principle in two ways:
1️⃣ Column Width Distribution: Instead of letting the table determine the optimal cell sizes, columns are now evenly distributed, leading to inefficient spacing.
2️⃣ First Column Handling: The first column is treated differently, altering the table's appearance.
Given these issues, Itai Gilo proposes a different approach to improve table structure and maintainability.
🔹 Proposed Solution by Itai Gilo: Introduce AuthDataTable
Since authentication tables follow a consistent structure, we can create a specialized table component (AuthDataTable) instead of using the generic DataTable.
✅ Key Changes:
✅ Expected Benefits:
The text was updated successfully, but these errors were encountered: