feat(connections): enable persistent column visibility and ordering #5235 (#5249)

* feat(connections): enable persistent column visibility and ordering

fix(connections): smooth column manager access in table view

fix(connections): integrate column manager into column menu

- Move the Connections column manager trigger into the DataGrid column menu, reusing existing i18n strings
- Clean up the page toolbar by removing the standalone button and lifting dialog state to the parent page

fix(connections): unify column order handling and resolve lint warnings

fix(connections): unify column order handling and enforce 0 ESLint warnings

- extract reconcileColumnOrder helper and reuse it across:
  - initial normalization (useEffect)
  - manager drag order handler (handleManagerOrderChange)
- derive columnOptions directly from the computed, sorted columns to keep a single source of truth and prevent dialog/grid drift
- connections.tsx: remove direct setState in useEffect; gate dialog open with `isTableLayout && isColumnManagerOpen`; clean up unused imports
- connection-column-manager.tsx: replace deprecated `primaryTypographyProps` with `slotProps`
- run full lint; project now has 0 warnings on main configuration

* feat(connection-table): safeguard column visibility

---------

Co-authored-by: Slinetrac <realakayuki@gmail.com>
This commit is contained in:
XiaoBuHaly
2025-11-09 00:15:01 +08:00
committed by GitHub
parent c8aa72186e
commit af4463fef1
18 changed files with 600 additions and 37 deletions

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "إغلاق الاتصال"
},
"columnManager": {
"title": "الأعمدة",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Verbindung schließen"
},
"columnManager": {
"title": "Spalten",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Close Connection"
},
"columnManager": {
"title": "Columns",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Cerrar conexión"
},
"columnManager": {
"title": "Columnas",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "بستن اتصال"
},
"columnManager": {
"title": "ستون‌ها",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Tutup Koneksi"
},
"columnManager": {
"title": "Kolom",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "接続を閉じる"
},
"columnManager": {
"title": "列",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "연결 닫기"
},
"columnManager": {
"title": "열",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Закрыть соединение"
},
"columnManager": {
"title": "Столбцы",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Bağlantıyı Kapat"
},
"columnManager": {
"title": "Sütunlar",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "Тоташуны ябу"
},
"columnManager": {
"title": "Баганалар",
"dragHandle": "Drag handle"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "关闭连接"
},
"columnManager": {
"title": "列设置",
"dragHandle": "拖拽控件"
}
}
}

View File

@@ -23,6 +23,10 @@
},
"actions": {
"closeConnection": "關閉連線"
},
"columnManager": {
"title": "欄位設定",
"dragHandle": "Drag handle"
}
}
}