-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packages/webviz-core from internal repo (#526)
Changelog: - - Performance for 3D panel-heavy layouts has been improved. - Added utf-8 support for strings when the `useBinaryTranslation` experimental feature is turned on. - Charts with very large numbers of points display sampled data to improve performance. - Added support for newline characters in the Raw Messages panel. - Node Playground will now automatically format your code on save. This behavior can be toggled using the panel settings menu. - Added a switch in the Topic Tree that enables a `Diff Mode` visualization when two sources are loaded in the 3D Panel. - Added an `other source` option in the Raw Messages panel's diff mode to compare the same topic across different sources. - Added support for Global Variables in Node Playground scripts. - Fixed websocket crash when the `useBinaryTranslation` feature is enabled. - Fixed bug where disabling a topic would cause the Topic Tree to report undefined datatype errors. - Fixed size for `<Point />` markers to use meters instead of pixels in 3D Panel.
- Loading branch information
1 parent
2dedb03
commit 6eb6fd9
Showing
209 changed files
with
5,482 additions
and
2,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...rations/frozenMigrations/2020.09.30.19:06:38.addAutoFormatOnSaveToNodePlaygroundConfig.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// @flow | ||
// | ||
// Copyright (c) 2020-present, Cruise LLC | ||
// | ||
// This source code is licensed under the Apache License, Version 2.0, | ||
// found in the LICENSE file in the root directory of this source tree. | ||
// You may not use this file except in compliance with the License. | ||
import { cloneDeep } from "lodash"; | ||
|
||
import getPanelTypeFromId from "webviz-core/migrations/frozenHelpers/getPanelTypeFromId"; | ||
|
||
export default function addAutoFormatOnSaveToNodePlaygroundConfig(originalPanelsState: any): any { | ||
const panelsState = cloneDeep(originalPanelsState); | ||
for (const id of Object.keys(panelsState.savedProps)) { | ||
if (getPanelTypeFromId(id) === "NodePlayground" && panelsState.savedProps[id].autoFormatOnSave === undefined) { | ||
panelsState.savedProps[id].autoFormatOnSave = true; | ||
} | ||
} | ||
return panelsState; | ||
} |
53 changes: 53 additions & 0 deletions
53
...ns/frozenMigrations/2020.09.30.19:06:38.addAutoFormatOnSaveToNodePlaygroundConfig.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// @flow | ||
// | ||
// Copyright (c) 2020-present, Cruise LLC | ||
// | ||
// This source code is licensed under the Apache License, Version 2.0, | ||
// found in the LICENSE file in the root directory of this source tree. | ||
// You may not use this file except in compliance with the License. | ||
import addAutoFormatOnSaveToNodePlaygroundConfig from "webviz-core/migrations/frozenMigrations/2020.09.30.19:06:38.addAutoFormatOnSaveToNodePlaygroundConfig.js"; | ||
|
||
describe("addAutoFormatOnSaveToNodePlaygroundConfig", () => { | ||
it("sets the autoFormatOnSave config key to true if it doesn't exist", () => { | ||
expect( | ||
addAutoFormatOnSaveToNodePlaygroundConfig({ | ||
savedProps: { | ||
"NodePlayground!3bqkn1w": { | ||
selectedNodeId: undefined, | ||
vimMode: false, | ||
}, | ||
}, | ||
}) | ||
).toEqual({ | ||
savedProps: { | ||
"NodePlayground!3bqkn1w": { | ||
selectedNodeId: undefined, | ||
vimMode: false, | ||
autoFormatOnSave: true, | ||
}, | ||
}, | ||
}); | ||
}); | ||
|
||
it("does not set autoFormatOnSave config key to true if it is false", () => { | ||
expect( | ||
addAutoFormatOnSaveToNodePlaygroundConfig({ | ||
savedProps: { | ||
"NodePlayground!3bqkn1w": { | ||
selectedNodeId: undefined, | ||
vimMode: false, | ||
autoFormatOnSave: false, | ||
}, | ||
}, | ||
}) | ||
).toEqual({ | ||
savedProps: { | ||
"NodePlayground!3bqkn1w": { | ||
selectedNodeId: undefined, | ||
vimMode: false, | ||
autoFormatOnSave: false, | ||
}, | ||
}, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.