Repository navigation
gsm.vizr v0.1.0 Release - #8
Conversation
main.css copied forward from gsm.kri's vendored bundle (gsm.viz does not publish it). SHA-256: c2965dce71941dac902e581f72543b789dc8b2a234fc9ba68ae19e371232d4d0 index.js c83279a1cdd211514387753d073b565763ac26a754ec1d9ee36b03dd6e9152ab index.js.map 285827e77e1249cdb1525a8358ae35c0ad483aa63431ad4e006cab8401eff1cc main.css The pin test asserts the bundle directory exists rather than skipping when it is absent: htmlwidgets/lib holds nothing else, so a missing directory is the failure the test exists to catch.
Adds the fixture renderer, the first gallery page, and the two non-Shiny spec files. Also settles the build-time housekeeping the layer gate needs: - .Rbuildignore follows the gsm.kri convention (tests/playwright, .github, pkgdown outputs), so npm artefacts never reach the tarball. - testthat's _problems/ failure snippets are ignored; TDD leaves one behind on every RED run and they are not source. - htmltools is dropped from Imports until html_dependency_gsm_viz() actually uses it; declaring it early fails the "all declared Imports used" check. - bars() documents bars_spec() as code rather than a cross-reference until that topic exists.
Remove the resizeOnReveal hook: measured as unnecessary in both static rmarkdown tabsets and Shiny tabPanels, across plain, faceted and dynamicSizing charts. The hidden-container tests stay as regression guards.
Rewritten for gsm.vizr rather than adapted from gsm.kri: gsm.vizr is the package downstream repos consume the bundle from, and it mirrors upstream behaviour in R, so a bump carries obligations gsm.kri does not have.
A metadata$chartId renamed the widget element even under Shiny, which broke proxy verbs and input$<id>_click/_select silently: the proxy handler resolves its target with getElementById(outputId) and returns quietly when it is gone. Ignore chartId under Shiny and warn instead of renaming. barsOutput() defaulted to 400px while bars() floors the same container at 500px, so the stub height could never take effect. Align the defaults and document that minHeight wins, since an explicit smaller height is overridden too.
Render the relocated Widget_BarChart into its own fixture so the gsmViz bundle is resolved from Widget_BarChart.yaml rather than from a bars() chart's identical, de-duplicated dependency, and assert main.css is actually served. Pin MakeChartConfig's layer precedence, match Widget_ScatterPlot's guard messages, and tag the two untagged GroupOverview tests.
The bundle was built from the gsm.viz 2.4.1 tag, which predates gsm.kri#285. Without this the SiteRiskScore help link in every KRI report would regress to the pre-rename gilead-biostats.github.io host once the relocated widgets are served from gsm.vizr. Both bundle files are now byte-identical to gsm.kri's.
The bundle is the gsm.viz 2.4.1 tag plus a patch carried over from gsm.kri#285, so a clean rebuild of the tag silently restores the pre-rename host and breaks the SiteRiskScore help link in KRI reports. Nothing in either package asserted that URL.
…package front door (#4) gsm.kri declares gsm.core=Gilead-Public/gsm.core@dev, and pak keys Remotes on the literal ref string, so the Gilead-BioStats spelling would have collided in the shared dependency graph and aborted lockfile creation. Title and Description also still described a bars-only package.
Split the gallery into the generic bars() family and the relocated KRI widgets, and render all four wrappers from the same page. Narrows the Playwright traceability sentence to the bars() matrix: the fixture covers Widget_BarChart only, so the old wording would have been false once the other three appeared on the page.
feat: gsm.vizr 0.1.0 - htmlwidgets wrapper for the gsm.viz bar renderers
Relocate the legacy KRI widget wrappers from gsm.kri
- Require the released gsm.core 1.3.1 instead of the 1.3.0.9000 dev floor; SetLogLevel, used by the test logger helper, first ships in 1.3.1. - Point the gsm.core Remote at @main to match the branch tier. - Declare Language: en-US and fix the one en-GB spelling it surfaced. - Consolidate the 0.1.0 NEWS section into a single list covering both chart generations. - Add the org-standard PR templates, absent from this repo.
✅ All workflows are up to dateGenerated by this GitHub Action. Updated: 2026-08-25T20:58:29Z |
{qcthat} Report: User AcceptanceNo issues are awaiting UAT. This report was generated by this GitHub Actions job. Last updated: 2026-08-25 21:00:13 UTC |
{qcthat} ReportsPR-Associated Issues✅ A qcthat issue test matrix with 1 milestone, 2 issues, and 23 tests🟢 All issues have at least one test Milestone✅ A qcthat issue test matrix with 1 milestone, 3 issues, and 23 tests⭕ 1 issue lacks tests Completed Issues✅ A qcthat issue test matrix with 1 milestone, 3 issues, and 23 tests⭕ 1 issue lacks tests This report was generated by this GitHub Actions job. Last updated: 2026-08-25 21:00:15 UTC |
|
📊 Test coverage: 90.66% Per-file coverage
Generated by this GitHub Action. Updated: 2026-08-25T20:59:40Z |
|
🌐 PR pkgdown deployed: https://Gilead-Public.github.io/gsm.vizr/pr/8/dev Generated by this GitHub Action. Updated: 2026-08-25T21:01:50Z |
There was a problem hiding this comment.
Pull request overview
Introduces gsm.vizr 0.1.0 as the shared R/htmlwidgets integration for generic gsm.viz charts and relocated legacy KRI widgets.
Changes:
- Adds bars/facet APIs, validation, events, serialization, and Shiny proxies.
- Relocates legacy KRI widgets onto one vendored gsm.viz 2.4.1 bundle.
- Adds documentation and extensive R/Playwright coverage.
Reviewed changes
Copilot reviewed 97 out of 101 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
.github/PULL_REQUEST_TEMPLATE/release.md |
Adds release template. |
.github/pull_request_template.md |
Adds general PR template. |
.github/skills/update-gsm-viz-bundle/SKILL.md |
Documents bundle updates. |
.Rbuildignore |
Excludes development artifacts. |
.gitignore |
Ignores generated outputs. |
DESCRIPTION |
Defines release metadata and dependencies. |
NAMESPACE |
Exports package APIs. |
NEWS.md |
Documents 0.1.0. |
README.md |
Adds package introduction. |
_pkgdown.yml |
Configures documentation site. |
R/aaa-shared.R |
Defines shared parameters. |
R/bars.R |
Implements chart widgets. |
R/bars_spec.R |
Builds and validates specifications. |
R/dependency.R |
Exposes shared bundle dependency. |
R/gsm.vizr-package.R |
Defines package imports. |
R/js_hook.R |
Handles JavaScript hooks. |
R/proxy.R |
Implements Shiny proxy verbs. |
R/shiny.R |
Adds Shiny bindings. |
R/util-MakeChartConfig.R |
Builds legacy chart configuration. |
R/util-pipe.R |
Re-exports the pipe. |
R/utils-serialize.R |
Implements serialization contracts. |
R/Widget_BarChart.R |
Adds legacy bar widget. |
R/Widget_GroupOverview.R |
Adds group overview widget. |
R/Widget_ScatterPlot.R |
Adds scatter widget. |
R/Widget_TimeSeries.R |
Adds time-series widget. |
inst/htmlwidgets/bars.js |
Implements browser binding. |
inst/htmlwidgets/bars.yaml |
Declares bars dependencies. |
inst/htmlwidgets/Widget_BarChart.js |
Adds legacy bar binding. |
inst/htmlwidgets/Widget_BarChart.yaml |
Declares bar dependencies. |
inst/htmlwidgets/Widget_GroupOverview.js |
Adds overview binding. |
inst/htmlwidgets/Widget_GroupOverview.yaml |
Declares overview dependencies. |
inst/htmlwidgets/Widget_ScatterPlot.js |
Adds scatter binding. |
inst/htmlwidgets/Widget_ScatterPlot.yaml |
Declares scatter dependencies. |
inst/htmlwidgets/Widget_TimeSeries.js |
Adds time-series binding. |
inst/htmlwidgets/Widget_TimeSeries.yaml |
Declares time-series dependencies. |
inst/htmlwidgets/lib/addGroupSubset.js |
Adds subset control. |
inst/htmlwidgets/lib/addOutcomeSelect.js |
Adds outcome control. |
inst/htmlwidgets/lib/addSelectControl.js |
Builds select controls. |
inst/htmlwidgets/lib/addWidgetControls.js |
Composes widget controls. |
inst/htmlwidgets/lib/clickCallback.js |
Handles legacy clicks. |
inst/htmlwidgets/lib/getCountries.js |
Derives country options. |
inst/htmlwidgets/lib/getGroups.js |
Derives group options. |
inst/htmlwidgets/lib/widgetControls.css |
Styles controls. |
inst/htmlwidgets/lib/gsm.viz-2.4.1/index.js |
Vendors gsm.viz runtime. |
inst/htmlwidgets/lib/gsm.viz-2.4.1/index.js.map |
Vendors source map. |
inst/htmlwidgets/lib/gsm.viz-2.4.1/main.css |
Vendors integration styles. |
man/bars.Rd |
Documents bars(). |
man/bars-shiny.Rd |
Documents Shiny bindings. |
man/bars_proxy.Rd |
Documents proxy APIs. |
man/bars_spec.Rd |
Documents bars specs. |
man/facet_bars.Rd |
Documents faceted charts. |
man/facet_spec.Rd |
Documents facet specs. |
man/gsm.vizr-package.Rd |
Documents package scope. |
man/html_dependency_gsm_viz.Rd |
Documents shared dependency. |
man/js_hook.Rd |
Documents hooks. |
man/MakeChartConfig.Rd |
Documents configuration helper. |
man/pipe.Rd |
Documents pipe export. |
man/shared-params.Rd |
Documents shared parameters. |
man/Widget_BarChart.Rd |
Documents bar widget. |
man/Widget_BarChart-shiny.Rd |
Documents bar Shiny API. |
man/Widget_GroupOverview.Rd |
Documents overview widget. |
man/Widget_GroupOverview-shiny.Rd |
Documents overview Shiny API. |
man/Widget_ScatterPlot.Rd |
Documents scatter widget. |
man/Widget_ScatterPlot-shiny.Rd |
Documents scatter Shiny API. |
man/Widget_TimeSeries.Rd |
Documents time-series widget. |
man/Widget_TimeSeries-shiny.Rd |
Documents time-series Shiny API. |
tests/testthat/helper-logger.R |
Adds logging test helper. |
tests/testthat/test-bars.R |
Tests chart construction. |
tests/testthat/test-bars_spec.R |
Tests specification validation. |
tests/testthat/test-dependency.R |
Tests bundle dependency. |
tests/testthat/test-facet.R |
Tests faceted charts. |
tests/testthat/test-js_hook.R |
Tests hook handling. |
tests/testthat/test-MakeChartConfig.R |
Tests configuration precedence. |
tests/testthat/test-proxy.R |
Tests proxy messages. |
tests/testthat/test-shiny.R |
Tests Shiny bindings. |
tests/testthat/test-vendored-bundle.R |
Tests vendored assets. |
tests/testthat/test-Widget_BarChart.R |
Tests legacy bar wrapper. |
tests/testthat/test-Widget_GroupOverview.R |
Tests overview wrapper. |
tests/testthat/test-Widget_ScatterPlot.R |
Tests scatter wrapper. |
tests/testthat/test-Widget_TimeSeries.R |
Tests time-series wrapper. |
tests/playwright/bundle-exports.spec.js |
Verifies bundle exports. |
tests/playwright/events.spec.js |
Tests browser events. |
tests/playwright/gallery-baseline.json |
Stores structural baseline. |
tests/playwright/gallery-fingerprint.spec.js |
Checks gallery fingerprints. |
tests/playwright/gallery.Rmd |
Defines browser gallery. |
tests/playwright/gallery.spec.js |
Tests gallery behavior. |
tests/playwright/layout.spec.js |
Tests layout and sizing. |
tests/playwright/legacy-widgets.Rmd |
Defines legacy fixture. |
tests/playwright/legacy-widgets.spec.js |
Tests relocated widgets. |
tests/playwright/package-lock.json |
Locks browser dependencies. |
tests/playwright/package.json |
Defines browser scripts. |
tests/playwright/playwright.config.js |
Configures static tests. |
tests/playwright/playwright.shiny.config.js |
Configures Shiny tests. |
tests/playwright/render-gallery.R |
Renders browser fixtures. |
tests/playwright/shiny-app.R |
Defines Shiny fixture. |
tests/playwright/shiny.spec.js |
Tests Shiny browser behavior. |
tests/playwright/smoke.spec.js |
Adds rendering smoke tests. |
tests/playwright/tabset.Rmd |
Defines hidden-tab fixture. |
vignettes/.gitignore |
Ignores rendered vignettes. |
vignettes/articles/gallery.Rmd |
Adds chart gallery. |
vignettes/gsm-vizr.Rmd |
Adds getting-started guide. |
Files not reviewed (1)
- tests/playwright/package-lock.json: Generated file
Suppressed comments (1)
inst/htmlwidgets/lib/addGroupSubset.js:23
- The “Site Subset” text is a separate
<span>, leaving this<select>without an accessible name. Associate a<label>or add an equivalent ARIA label.
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Spencer Childress (samussiah)
left a comment
There was a problem hiding this comment.
Nice work Michał Kamiński (@michkam89)! Does this release support gsm.app requirements, or will we add support in the future?
- Allow js_hook() at scales$x$order: facetBars calls it per facet, and three code paths already preserved it, but .assert_no_stray_js() rejected it so the upstream feature was unreachable from R. - Reject NA at the annotation label formatters, matching .check_string(); NA serialized to JSON null, which upstream throws on. - Cover the browser end with a chart-facet-order-hook gallery page.
Spencer Childress (@samussiah) — yes, |
Spencer Childress (samussiah)
left a comment
There was a problem hiding this comment.
This is a pretty sweet package!
This PR was drafted by Claude Code using Opus 5 and reviewed by Michał Kamiński (@michkam89)
Release Description
gsm.vizr 0.1.0 — the package's first release, promoting
devtomain.gsm.vizr is an htmlwidgets interface to the gsm.viz JavaScript library, hosting both of its
chart generations against one vendored gsm.viz 2.4.1 bundle:
barsgenerics #1, PR feat: gsm.vizr 0.1.0 - htmlwidgets wrapper for the gsm.viz bar renderers #2) —bars()/facet_bars()widgets,bars_spec()/facet_spec()validation mirroring gsm.viz
validateSpec.js,js_hook()for function-valued slots, thegsm-viz-selectevent contract with Shiny input mirroring,barsOutput()/renderBars()/bars_proxy()verbs, andhtml_dependency_gsm_viz()for other packages' custom widgets.Widget_BarChart,Widget_ScatterPlot,Widget_TimeSeries,Widget_GroupOverview, their Shiny bindings,MakeChartConfig(), and the shared widget-controlJS/CSS, relocated from gsm.kri.
This release exists to unblock the gsm.viz adoption chain (Gilead-Public/gsm.roadmap#158): it gives
release-tracking consumers a
@mainref to pin instead of a feature branch.Assessments Updated
gsm.vizr ships no qualification assessments (it has no
qual_*test suite). Quality evidence isunit tests, Playwright browser suites, and the qcthat report attached to this PR.
barsfamily — new. Spec construction/validation, serialization contract, events,Shiny bindings and proxy verbs.
at the point of relocation; gsm.kri re-exports every relocated name so its callers are unaffected.
gsm.core (>= 1.3.0.9000)→(>= 1.3.1),Remotespinned togsm.core@mainfor the main branch,Language: en-USdeclared, and the org-standard PR templatesadded to
.github/.Milestone
Milestone: v0.1.0 — 5 of 5 items closed.
Parent requirement: Gilead-Public/gsm.roadmap#158 (gsm.viz Adoption Across Report Packages).
Overall Risk Assessment
Overall Risk: Low
Notes: gsm.vizr is a new package with no production consumers — every downstream adopter
(gsm.kri #292/#293, gsm.qtl #137, gsm.endpoints #322, gsm.app #590) is still an open PR. A defect
here cannot regress a released report today. The relocated widgets are the higher-risk half, and
they moved without behavioural change.
Assessment 1 Risk — Generic
barsfamilyOverall Risk: Low
Mitigation Strategy:
Notes: New surface, so nothing can regress. Covered by the testthat suite and the Playwright
gallery/events/layout/shiny specs, including a committed gallery fingerprint baseline.
Assessment 2 Risk — Legacy KRI widget wrappers
Overall Risk: Low
Mitigation Strategy:
Notes: Relocation, not a rewrite. gsm.kri re-exports every name, so existing callers keep working;
the
legacy-widgetsPlaywright spec proves the relocated YAML resolves its own binding and controls.Known caveat carried into this release (also recorded in NEWS "Things to know"): the vendored
bundle is the gsm.viz 2.4.1 tag plus one patch from gsm.kri#285 pointing
SiteRiskScoreURLatgilead-public.github.io. It is therefore not a clean build of the tag — a future bundle bump mustre-apply that substitution or land on an upstream release that carries it, or the SiteRiskScore help
link in KRI reports silently regresses.
Release Checklist
DESCRIPTION— 0.1.0FAIL 0 | WARN 0 | SKIP 0 | PASS 203qual_*suite); qcthat report attached: 21 tests across 2 issues, all passing, none awaiting UATstylerspell_check()README.mdand relevant Vignettespkgdown::build_site()and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.Verification evidence
devtools::test()devtools::check()devtools::document()man/andNAMESPACEcurrentstyler::style_pkg()vignettes/articles/gallery.Rmd)devtools::spell_check()colours→colors);Language: en-USaddedpkgdown::build_site()pak::lockfile_create()gsm.core@main