优化终端侧边栏展开性能
This commit is contained in:
@@ -165,6 +165,13 @@ export function runTests() {
|
||||
chartCanvasSource.includes("TemperatureChartCanvasComponent"),
|
||||
"temperature chart canvas must be memoized so unrelated terminal state does not remount Recharts",
|
||||
);
|
||||
assert(
|
||||
dashboardSource.includes("const TerminalSidebar = memo(function TerminalSidebar") &&
|
||||
dashboardSource.includes("const [navExpanded, setNavExpanded] = useState(false);") &&
|
||||
dashboardSource.includes("transition-colors duration-150") &&
|
||||
!dashboardSource.includes("transition-all duration-200"),
|
||||
"terminal sidebar expand state must be isolated from the chart grid and must not animate width through transition-all",
|
||||
);
|
||||
assert(
|
||||
__shouldKeepTemperatureChartLoadingForTest({
|
||||
row: { city: "Moscow" } as any,
|
||||
|
||||
Reference in New Issue
Block a user