Merge pull request #3996 from bluewave-labs/fix/dashboard-table-state

fix: add a dashboard table state
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-09-25 11:13:29 -07:00
commit 014750f91e
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -10,6 +10,7 @@ type ThemeMode = "light" | "dark";
type ChartType = "histogram" | "line";
type TableName =
| "dashboard"
| "monitors"
| "team"
| "maintenance"
@@ -29,6 +30,7 @@ interface SidebarState {
}
interface UIState {
dashboard: TableState;
monitors: TableState;
pagespeed: TableState;
team: TableState;
@@ -54,6 +56,9 @@ const initialMode: ThemeMode = window?.matchMedia?.("(prefers-color-scheme: dark
: "light";
const initialState: UIState = {
dashboard: {
rowsPerPage: 100,
},
monitors: {
rowsPerPage: 10,
},
+1 -1
View File
@@ -34,7 +34,7 @@ const Dashboard = () => {
types: [...MonitorTypes],
checksLimit: 1,
refreshInterval: 30000,
rowsPerPageTable: "monitors",
rowsPerPageTable: "dashboard",
rowsPerPageDefault: 100,
});