-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Column Settings from Plugin to Viewer with Column Settings Layout API #2521
Conversation
19f10e6
to
ab36413
Compare
const converted = convert(JSON.parse(JSON.stringify(old)), { | ||
replace_defaults: true, | ||
verbose: true, | ||
}); | ||
expect(converted).toEqual(current); | ||
}); | ||
} | ||
}); | ||
|
||
test.describe("migrate", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously this tested that 1) the migration script did what was expected and that 2) the viewer restored to the expected value. This caused a lot of noise when debugging, so the test has been reconfigured to only test 2) since we test 1) above.
ab36413
to
d5ab6c7
Compare
d5ab6c7
to
e927bd9
Compare
f9dff51
to
49178d0
Compare
integrate can_render_column_styles to viewer
initial datagrid integration
fix datagrid tests symbols integration
update migrations Co-authored-by: Davis Silverman <[email protected]> Co-authored-by: Broch Stilley <[email protected]>
better column_config update repr
49178d0
to
6e2fe6b
Compare
Thanks for the PR! Superseded by #2563 |
Based on #2500; merges #2502 for SVG testing support
This PR aims to create a control-based API for column settings, bringing column-based settings from plugin configs to the viewer. This will allow us to support column settings which persist across plugins, e.g. numeric precision.
The design intends to allow plugin authors to use a number of viewer-defined "style controls." These style controls will affect column_config settings per row. This PR only changes the plugin API and maintains the existing style controls on the datagrid and x/y scatter chart. Following PRs will break up the current monolithic and type-based controls into more fine-grained and reusable controls.
Changes:
plugin.pluginAttributes
plugin.column_style_controls(type, group)
plugin.column_style_controls
plugin.restore(plugin_config, column_config)
Notes:
restore
the best option for updating the plugins? We could also userestyle
.