Repository navigation
New Summary plugin - #3296
Merged
Merged
New Summary plugin#3296
Summary plugin#3296Conversation
Member
texodus
force-pushed
the
summary-plugin
branch
2 times, most recently
from
November 21, 2026 03:24
0671985 to
c988de6
Compare
Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com>
texodus
force-pushed
the
summary-plugin
branch
from
November 23, 2026 01:22
c988de6 to
84c06aa
Compare
Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com>
texodus
force-pushed
the
summary-plugin
branch
from
November 23, 2026 03:38
84c06aa to
721759e
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds a new plugin
Summary, hard-coded togroup_rollup_mode: "total", which shows datagrid-like cells arranged in a flex-wrap grid of full-content sized text. In order to support this new plugin as well as future feature work, this PR also moves formatting to Rust (ICU4X, from native browserIntl), and shared plugin code toplugin_utils.The Datagrid, Charts and the new Summary plugin used to each carry their own formatting and color code, built on
Intland copied between packages. That code is now owned by the viewer and exposed to plugins asplugin_utils, the element class's static, which also works inside the Charts worker.rust/perspective-viewer/src/rust/format/. Nothing in the viewer or the plugins formats values withIntlany more.Formatterhandles fromplugin_utils.formatter(type, format?, defaults?). A whole column is formatted in one call withformat_strings, so the Datagrid crosses into wasm once per column instead of once per cell.Temporalwhere the browser has it), zone names, currency symbols and unit names come from the browser. Thebaked-locale-datafeature uses ICU4X's own data instead, for builds outside a browser.format/module depends on nothing from wasm-bindgen, web-sys or Yew, so it can later become a separate crate usable from Python.formatter,source_column;css.rs:parse_css_color,parse_css_gradient,parse_css_palette,css_gradient,css_palette;has_date_format_shape,date_format_modifiers.format,color,column_style,theme_style,cell_style(including the pulse CSS) andschema.