Skip to content

gsm.qtl v1.4.0 Release - #138

Merged
Michał Kamiński (michkam89) merged 27 commits into
mainfrom
release-1.4.0
Sep 9, 2026
Merged

Michał Kamiński (michkam89) merged 27 commits into
mainfrom
release-1.4.0

Conversation

@michkam89

@michkam89 Michał Kamiński (michkam89) commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR was drafted by Claude Code using Opus 5 and reviewed by Michał Kamiński (@michkam89)

Release Description

gsm.qtl v1.4.0 migrates the six QTL report barchart functions from ggplot2 + plotly::ggplotly() to gsm.vizr::bars() on the shared gsm.viz JavaScript bundle (#134), and folds in the pending v1.3.1 housekeeping items (#124, #132).

QTL report barcharts (#134, PR #137)

  • eligibility_groupBar(), eligibility_sourceBar(), criteria_groupBar(), discontinuation_groupBar(), discontinuation_reasonBar() and reasons_groupBar() now render through gsm.vizr::bars() and return a bars htmlwidget instead of a plotly object; their arguments are unchanged.
  • The QTL0001 report renders one Site chart with a count/percent position toggle instead of separate Site and Site (by %) tabs.
  • Tooltips use the native gsm.viz formats; the two single-series charts drop the fill/legend that duplicated the category axis.
  • The vendored gsm.viz bundle is removed — the QTL time-series widget now loads the shared bundle from gsm.vizr (moving from gsm.viz 2.2.0 to 2.4.1). The unused Widget_BarChartQTL widget is removed.

Other updates

Dependency pins

  • gsm.core Remote points at @main (1.3.1); the version floor is unchanged (>= 1.1.2).
  • New dependency gsm.vizr (>= 0.1.0), temporarily pinned to Gilead-Public/gsm.vizr@release-0.1.0 until gsm.vizr v0.1.0 Release gsm.vizr#8 merges 0.1.0 into main; the pin flips to @main on this branch before this PR merges.

Milestone

Milestone: v1.4.0 — the open v1.3.1 items ride along in this release.

Overall Risk Assessment

Overall Risk: Medium

Notes: the barchart migration changes the rendering engine and return type of six user-facing report functions. Chart content is structurally equivalent and covered by unit tests, review, and rendered-report verification. The housekeeping items are low risk.

QTL barchart migration risk

Overall Risk: Medium
Mitigation Strategy:

  • Unit Testing
  • Code Review
  • Automated Testing
  • Qualification Testing
  • QC Checklist

Notes: implemented in reviewed PR #137 with unit tests for all six functions and rendered QTL0001/QTL0002 report verification; qualification report and QC checklist to be completed in this release review.

Housekeeping risk

Overall Risk: Low
Mitigation Strategy:

  • Code Review
  • Automated Testing

Notes: dependency removal and org-link/CI updates only (#127, #131, #133, #136).

Release Checklist

  • Version number has been updated in DESCRIPTION
  • NEWS.md has been updated
  • Ensure all unit tests are passing
  • Ensure all qualification tests are passing and report has been rerun
  • All QC Checklists in this PR are complete
  • GitHub actions on this PR are all passing
  • Formatted code with styler (not run, to avoid formatting churn)
  • Run spell_check()
  • Completed QC of documentation including README.md and relevant Vignettes
  • Build site pkgdown::build_site() and check that affected examples and the Reference page render correctly
  • Draft GitHub release created using the automatic template; click "release" after this PR is merged

* Experiment to get rid of riskmetric package

The riskmetric package has pak as a dependency, which is messing with actions. Let's get rid of it if we can.

* Test whether riskmetric matters

* Fix checks

* Use `@main` to avoid `pak` bug.

* Temporarily use dev gh

For some reason gsm.kri is failing to install because of shared dependencies, and right now specifically gh seems to be the issue. Will fix with a qcthat release.

* Install gsm.core from PR and don't specify gh

* Test `qcthat@*release`

* Use dev gsm
Remotes points at feat/158-vizr-foundation until gsm.vizr v0.1.0 is
tagged; flipping the ref is a merge gate on this PR.
Removes the plotly trace helpers; QTL_lineplot() is the only plotly
consumer left in the suite.
…134)

The report renders bars and the time series on one page, and each bundle
declares a top-level var gsmViz, so the vendored 2.2.0 copy had to go.
Time series verified under 2.4.1: screenshots byte-identical to the
2.2.0 baseline. Also drops a dead main_default registration in
timeSeriesQTL.js that had always thrown a ReferenceError.
gsm.viz takes stack order from the scales$fill$colors key order and
ignores the factor-derived scales$fill$order whenever a named colour
map is supplied, so the two charts with hardcoded palettes stacked
backwards. Reorders both maps to the ggplot fill order without changing
any value-to-colour association, and asserts the key order.
This was the one useful change that was only on the RC branch.
The dependency test's comment claimed a bare Remotes ref would be
caught, but nothing asserted it. Splits that claim into its own test
and drops the unsupported half of the comment.
…134)

Per review: tooltip.format ('count+percent' on the stacked group charts,
'count' on the single-series ones) replaces the sprintf-built js_hook
formatters, so labels and column names no longer pass through generated
JavaScript where a quote could break or inject code. The now-unread perc
column is gone with its formatter.

eligibility_sourceBar and discontinuation_reasonBar stop mapping fill:
it duplicated the category axis and forced a redundant legend and
position toggle. This also moots the jsonlite blank-fill-key limitation
for blank reasons.
…134)

The gsm.viz position control on the stacked Site chart already offers the
normalized view, so QTL0001 renders one Site chart instead of two tabs.
eligibility_groupBar keeps bPercentage; the bundled report just no longer
uses it. Playwright counts and the fingerprint baseline follow (14 charts,
no pre-normalized variant).
The Rd picks up the author and URL fix that arrived with the dev merge.
Migrate QTL report barcharts to gsm.vizr (#134)
- Bump version to 1.4.0 and retitle the NEWS development section
- Add NEWS entries for the riskmetric removal (#124) and the
  Gilead-Public link/CI updates (#132)
- Point the gsm.core Remote at main and pin gsm.vizr to its
  release-0.1.0 branch (with a >= 0.1.0 floor) until gsm.viz 0.1.0
  is released to main
@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ All workflows are up to date

Generated by this GitHub Action. Updated: 2026-08-27T16:43:36Z

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

📊 Test coverage: 93.50%

Per-file coverage
File Coverage
R/Analyze_OneSideProp.R 100%
R/criteria_groupBar.R 100%
R/discontinuation_groupBar.R 100%
R/discontinuation_map_reasons.R 100%
R/discontinuation_reasonBar.R 100%
R/eligibility_groupBar.R 100%
R/eligibility_listing.R 56.5%
R/Eligibility_Overview.R 100%
R/eligibility_sourcebar.R 100%
R/QTL_lineplot_v2.R 91.4%
R/QTL_lineplot.R 100%
R/QTL_Overview.R 100%
R/reasons_groupBar.R 100%
R/Report_QTL.R 95.8%
R/ResultsProcessor.R 100%
R/utils-bars.R 77.8%
R/utils-fig_size.R 88.9%
R/Widget_TimeSeriesQTL.R 60%

Generated by this GitHub Action. Updated: 2026-08-27T16:46:31Z

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

{qcthat} Report: User Acceptance

No issues are awaiting UAT.

This report was generated by this GitHub Actions job.

Last updated: 2026-08-27 16:45:36 UTC

Session Info

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

{qcthat} Reports

PR-Associated Issues

✅ A qcthat issue test matrix with 1 milestone, 1 issue, and 19 tests
└─█─Milestone: v1.4.0 (1 issue, 19 tests)
  └─☑️─Feature 134: Migrate QTL report barcharts (6 functions, 15 renders) to gsm.vizr
    ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
    ├─✅─discontinuation_groupBar honours varStatus and valuesDiscontinued (#76, #134)
    ├─✅─discontinuation_reasonBar counts by reason with total labels (#14, #21, #22, #134)
    ├─✅─reasons_groupBar stacks reasons by group (#14, #21, #22, #134)
    ├─✅─reasons_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
    ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
    ├─✅─eligibility_groupBar aggregates counts per group (#60, #134)
    ├─✅─eligibility_groupBar bPercentage switches to a filled stack (#60, #134)
    ├─✅─eligibility_groupBar carries the exclusion footnote as a caption (#90, #134)
    ├─✅─eligibility_groupBar orders categories most-frequent-first (#134)
    ├─✅─eligibility_groupBar uses the native count+percent tooltip (#134)
    ├─✅─eligibility_sourceBar counts by source with total labels (#14, #21, #22, #134)
    ├─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
    ├─✅─criteria_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
    ├─✅─gsm.qtl declares and can reach gsm.vizr (#134)
    ├─✅─the gsm.vizr Remotes entry pins an explicit ref (#134)
    ├─✅─gsm.qtl ships no vendored gsm.viz bundle of its own (#134)
    ├─✅─the time series widget carries the shared gsm.viz dependency (#134)
    └─✅─the shared widget shims survive the barchart widget deletion (#134)
# Issue state: 📥 = open, ☑️ = closed (completed), ⛔ = closed (won't fix)
# Test disposition: ✅ = passed, ❌ = failed, 🚫 = skipped
✅ All tests passed

🟢 All issues have at least one test

🙈 2 issues with label "qcthat-nocov" were ignored


Milestone

✅ A qcthat issue test matrix with 1 milestone, 1 issue, and 19 tests
└─█─Milestone: v1.4.0 (1 issue, 19 tests)
  └─☑️─Feature 134: Migrate QTL report barcharts (6 functions, 15 renders) to gsm.vizr
    ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
    ├─✅─discontinuation_groupBar honours varStatus and valuesDiscontinued (#76, #134)
    ├─✅─discontinuation_reasonBar counts by reason with total labels (#14, #21, #22, #134)
    ├─✅─reasons_groupBar stacks reasons by group (#14, #21, #22, #134)
    ├─✅─reasons_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
    ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
    ├─✅─eligibility_groupBar aggregates counts per group (#60, #134)
    ├─✅─eligibility_groupBar bPercentage switches to a filled stack (#60, #134)
    ├─✅─eligibility_groupBar carries the exclusion footnote as a caption (#90, #134)
    ├─✅─eligibility_groupBar orders categories most-frequent-first (#134)
    ├─✅─eligibility_groupBar uses the native count+percent tooltip (#134)
    ├─✅─eligibility_sourceBar counts by source with total labels (#14, #21, #22, #134)
    ├─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
    ├─✅─criteria_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
    ├─✅─gsm.qtl declares and can reach gsm.vizr (#134)
    ├─✅─the gsm.vizr Remotes entry pins an explicit ref (#134)
    ├─✅─gsm.qtl ships no vendored gsm.viz bundle of its own (#134)
    ├─✅─the time series widget carries the shared gsm.viz dependency (#134)
    └─✅─the shared widget shims survive the barchart widget deletion (#134)
# Issue state: 📥 = open, ☑️ = closed (completed), ⛔ = closed (won't fix)
# Test disposition: ✅ = passed, ❌ = failed, 🚫 = skipped
✅ All tests passed

🟢 All issues have at least one test


Completed Issues

⚠️ A qcthat issue test matrix with 6 milestones, 32 issues, and 45 tests
├─█─Milestone: v0.1.0 (15 issues, 22 tests)
│ ├─☑️─Issue 30: Feature: Figure out how to conditionally run child .Rmd
│ │ ├─🚫─Report_QTL renders a valid HTML report for full metric input (#4, #9, #19, #30, #35)
│ │ └─🚫─Report_QTL renders a valid HTML report for single metric input (#4, #9, #19, #30)
│ ├─☑️─Feature 11: Feature: Write function(s) that generate dynamic threshold for Eligibility QTL
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #46)
│ │ ├─✅─Analyze One Side Prop works for Study, when nPropRate is the same (#5, #11, #46)
│ │ ├─✅─Analyze_OneSideProp handles required and optional arguments (#5, #11, #46)
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #39, #42, #50, #73)
│ │ └─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ ├─☑️─Feature 9: Feature: QTL report
│ │ ├─✅─QTL_Overview uses all arguments (#4, #9)
│ │ ├─✅─Report_QTL validates required structures (#4, #9, #19)
│ │ ├─✅─Report_QTL passes arguments to render (#4, #9, #19)
│ │ ├─🚫─Report_QTL renders a valid HTML report for full metric input (#4, #9, #19, #30, #35)
│ │ └─🚫─Report_QTL renders a valid HTML report for single metric input (#4, #9, #19, #30)
│ ├─☑️─Feature 5: Add basic workflow for Eligibility metric
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #46)
│ │ ├─✅─Analyze One Side Prop works for Study, when nPropRate is the same (#5, #11, #46)
│ │ ├─✅─Analyze_OneSideProp handles required and optional arguments (#5, #11, #46)
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #39, #42, #50, #73)
│ │ └─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ ├─☑️─Issue 4: Business Requirement: QTL Metrics/Report Prototype
│ │ ├─✅─QTL_Overview uses all arguments (#4, #9)
│ │ ├─✅─Report_QTL validates required structures (#4, #9, #19)
│ │ ├─✅─Report_QTL passes arguments to render (#4, #9, #19)
│ │ ├─🚫─Report_QTL renders a valid HTML report for full metric input (#4, #9, #19, #30, #35)
│ │ └─🚫─Report_QTL renders a valid HTML report for single metric input (#4, #9, #19, #30)
│ ├─☑️─Issue 3: Feature: Treatment Discontinuation
│ │ └─✅─Given appropriate study discontinuation related data, calculates appropriate QTL threshold. (#3, #21, #39, #42, #50, #73)
│ ├─☑️─Issue 2: Feature: Eligibility domains mapping
│ │ └─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ ├─☑️─Issue 24: Make the Listing exportable - either as a separate report or via a csv download in the report
│ │ └─✅─eligibility_listing covers df and download arguments (#21, #22, #24, #25)
│ ├─☑️─Issue 23: Business Requirement: Update criteria bar charts to include multiple criteria for participants with multiple ineligibility reasons.
│ │ └─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
│ ├─☑️─Issue 22: Feature: Visualization Wrappers
│ │ ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
│ │ ├─✅─discontinuation_reasonBar counts by reason with total labels (#14, #21, #22, #134)
│ │ ├─✅─reasons_groupBar stacks reasons by group (#14, #21, #22, #134)
│ │ ├─✅─discontinuation_map_reasons respects yaml_path (#21, #22)
│ │ ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
│ │ ├─✅─eligibility_sourceBar counts by source with total labels (#14, #21, #22, #134)
│ │ ├─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
│ │ ├─✅─eligibility_listing covers df and download arguments (#21, #22, #24, #25)
│ │ ├─✅─scrollable_gt uses height and width arguments (#21, #22)
│ │ └─✅─Eligibility_Overview uses all arguments (#21, #22, #70)
│ ├─☑️─Issue 21: Feature: QTL Study Discontinuation
│ │ ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
│ │ ├─✅─discontinuation_reasonBar counts by reason with total labels (#14, #21, #22, #134)
│ │ ├─✅─reasons_groupBar stacks reasons by group (#14, #21, #22, #134)
│ │ ├─✅─discontinuation_map_reasons respects yaml_path (#21, #22)
│ │ ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
│ │ ├─✅─eligibility_sourceBar counts by source with total labels (#14, #21, #22, #134)
│ │ ├─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
│ │ ├─✅─eligibility_listing covers df and download arguments (#21, #22, #24, #25)
│ │ ├─✅─scrollable_gt uses height and width arguments (#21, #22)
│ │ ├─✅─Eligibility_Overview uses all arguments (#21, #22, #70)
│ │ └─✅─Given appropriate study discontinuation related data, calculates appropriate QTL threshold. (#3, #21, #39, #42, #50, #73)
│ ├─☑️─Issue 19: Feature: Polish Report
│ │ ├─✅─Report_QTL validates required structures (#4, #9, #19)
│ │ ├─✅─Report_QTL passes arguments to render (#4, #9, #19)
│ │ ├─🚫─Report_QTL renders a valid HTML report for full metric input (#4, #9, #19, #30, #35)
│ │ └─🚫─Report_QTL renders a valid HTML report for single metric input (#4, #9, #19, #30)
│ ├─☑️─Issue 17: Feature: Add mapping file for `Mapped_Exclusion`
│ │ └─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ ├─☑️─Issue 16: Feature: Add horizontal line at I/E target
│ │ └─✅─QTL_lineplot_v2 returns timeseries widget with threshold flags (#16, #27, #49, #84)
│ └─☑️─Issue 14: Feature: Generate Bar Charts based on multiple categorization
│   ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
│   ├─✅─discontinuation_reasonBar counts by reason with total labels (#14, #21, #22, #134)
│   ├─✅─reasons_groupBar stacks reasons by group (#14, #21, #22, #134)
│   ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
│   ├─✅─eligibility_sourceBar counts by source with total labels (#14, #21, #22, #134)
│   └─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
├─█─Milestone: v1.0.0 (6 issues, 8 tests)
│ ├─☑️─Issue 50: Prepare `gsm.qtl` for Q3 release
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #39, #42, #50, #73)
│ │ ├─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ │ └─✅─Given appropriate study discontinuation related data, calculates appropriate QTL threshold. (#3, #21, #39, #42, #50, #73)
│ ├─☑️─Bug 46: Bugfix: Calculation of upper funnel bug
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #46)
│ │ ├─✅─Analyze One Side Prop works for Study, when nPropRate is the same (#5, #11, #46)
│ │ └─✅─Analyze_OneSideProp handles required and optional arguments (#5, #11, #46)
│ ├─☑️─Issue 42: QC: Create qualification framework and tests
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #39, #42, #50, #73)
│ │ ├─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ │ └─✅─Given appropriate study discontinuation related data, calculates appropriate QTL threshold. (#3, #21, #39, #42, #50, #73)
│ ├─☑️─Issue 39: Qualify QTL Metrics
│ │ ├─✅─Analyze One Side Prop works for Study, when nProRate is clearly violated (#5, #11, #39, #42, #50, #73)
│ │ ├─✅─Given appropriate inclusion/exclusion related data, calculates appropriate QTL threshold. (#2, #5, #11, #17, #39, #42, #50, #73)
│ │ └─✅─Given appropriate study discontinuation related data, calculates appropriate QTL threshold. (#3, #21, #39, #42, #50, #73)
│ ├─☑️─Issue 35: Feature: Add more columns to the discontinuation listing in QTL0002
│ │ └─🚫─Report_QTL renders a valid HTML report for full metric input (#4, #9, #19, #30, #35)
│ └─☑️─Feature 25: Make I/E listing exportable
│   └─✅─eligibility_listing covers df and download arguments (#21, #22, #24, #25)
├─█─Milestone: v1.1.0 (1 issue, 3 tests)
│ └─☑️─Feature 60: Add a percentage based barplot for Ineligibiltiy Report
│   ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
│   ├─✅─eligibility_groupBar aggregates counts per group (#60, #134)
│   └─✅─eligibility_groupBar bPercentage switches to a filled stack (#60, #134)
├─█─Milestone: v1.2.0 (7 issues, 14 tests)
│ ├─☑️─Bug 90: QTL0001 Criteria by site/country barcharts are broken/too zoomed in
│ │ ├─✅─calc_plotly_footnote_layout expands bottom margin for wrapped footnotes (#90)
│ │ ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
│ │ ├─✅─reasons_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
│ │ ├─✅─eligibility_groupBar carries the exclusion footnote as a caption (#90, #134)
│ │ ├─✅─criteria_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
│ │ └─✅─Example QTL Report for 2026Q1 meets ui/ux/aesthetics expectations (#90)
│ ├─☑️─Issue 84: QTL Tabletop Immediately Addressable feedback
│ │ ├─✅─QTL_lineplot_v2 returns timeseries widget with threshold flags (#16, #27, #49, #84)
│ │ └─✅─QTL_lineplot_v2 validates required arguments (#49, #84)
│ ├─☑️─Feature 80: Test suite is lacking
│ │ ├─✅─Analyze_OneSideProp validates nPropRate argument bounds (#80)
│ │ ├─✅─calc_fig_size covers n_rows, base, and per arguments (#80)
│ │ ├─✅─ResultsProcessor uses dfResults and dfMetrics arguments (#80)
│ │ └─✅─QTL_lineplot uses dfResults and strQTL arguments (#80)
│ ├─☑️─Bug 76: `discontinuation_groupBar` hard-codes `compyn=='N'` to study discontinuation.
│ │ ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
│ │ └─✅─discontinuation_groupBar honours varStatus and valuesDiscontinued (#76, #134)
│ ├─☑️─Bug 70: Address found bugs from eligibility report meeting
│ │ └─✅─Eligibility_Overview uses all arguments (#21, #22, #70)
│ ├─☑️─Feature 49: Implement Custom Time Series Widget for QTL 
│ │ ├─✅─QTL_lineplot_v2 returns timeseries widget with threshold flags (#16, #27, #49, #84)
│ │ └─✅─QTL_lineplot_v2 validates required arguments (#49, #84)
│ └─☑️─Feature 27: Optimize Time Series Chart for its respective axis, fix legend, revisit JS?
│   └─✅─QTL_lineplot_v2 returns timeseries widget with threshold flags (#16, #27, #49, #84)
├─█─Milestone: v1.2.1 (1 issue, 2 tests)
│ └─☑️─Issue 108: eligibility_listing crashes on zero-row or all-NA input
│   ├─✅─eligibility_listing handles zero-row data frame (#108)
│   └─✅─eligibility_listing handles all-NA dvdtm and eligibility_criteria (#108)
├─█─Milestone: v1.4.0 (1 issue, 19 tests)
│ └─☑️─Feature 134: Migrate QTL report barcharts (6 functions, 15 renders) to gsm.vizr
│   ├─✅─discontinuation_groupBar builds a horizontal identity stack (#14, #21, #22, #76, #90, #134)
│   ├─✅─discontinuation_groupBar honours varStatus and valuesDiscontinued (#76, #134)
│   ├─✅─discontinuation_reasonBar counts by reason with total labels (#14, #21, #22, #134)
│   ├─✅─reasons_groupBar stacks reasons by group (#14, #21, #22, #134)
│   ├─✅─reasons_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
│   ├─✅─eligibility_groupBar builds a horizontal identity stack (#14, #15, #21, #22, #60, #134)
│   ├─✅─eligibility_groupBar aggregates counts per group (#60, #134)
│   ├─✅─eligibility_groupBar bPercentage switches to a filled stack (#60, #134)
│   ├─✅─eligibility_groupBar carries the exclusion footnote as a caption (#90, #134)
│   ├─✅─eligibility_groupBar orders categories most-frequent-first (#134)
│   ├─✅─eligibility_groupBar uses the native count+percent tooltip (#134)
│   ├─✅─eligibility_sourceBar counts by source with total labels (#14, #21, #22, #134)
│   ├─✅─criteria_groupBar splits concatenated criteria and stacks by group (#14, #21, #22, #23, #134)
│   ├─✅─criteria_groupBar swaps category and fill when bSwapAxes is TRUE (#90, #134)
│   ├─✅─gsm.qtl declares and can reach gsm.vizr (#134)
│   ├─✅─the gsm.vizr Remotes entry pins an explicit ref (#134)
│   ├─✅─gsm.qtl ships no vendored gsm.viz bundle of its own (#134)
│   ├─✅─the time series widget carries the shared gsm.viz dependency (#134)
│   └─✅─the shared widget shims survive the barchart widget deletion (#134)
└─█─Milestone: <none> (1 issue, 1 test)
  └─☑️─Issue 120: `gsm.qtl` — re-point imports to `workr`
    └─⚠️─workflow specs route extracted runtime functions through workr (#120)
# Issue state: 📥 = open, ☑️ = closed (completed), ⛔ = closed (won't fix)
# Test disposition: ✅ = passed, ❌ = failed, 🚫 = skipped
⚠️ 1 test generated warnings

🟢 All issues have at least one test

🙈 21 issues with label "qcthat-nocov" were ignored; 4 issues with label "qcthat-uat" were ignored


This report was generated by this GitHub Actions job.

Last updated: 2026-08-27 16:45:37 UTC

Session Info

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

🌐 PR pkgdown deployed: https://Gilead-Public.github.io/gsm.qtl/pr/138/dev

Generated by this GitHub Action. Updated: 2026-08-27T16:45:48Z

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Releases gsm.qtl 1.4.0, migrating six QTL barcharts to gsm.vizr, consolidating the shared visualization bundle, and applying dependency and repository housekeeping.

Changes:

  • Replaces Plotly-based barcharts with gsm.vizr::bars() widgets.
  • Adds unit and Playwright regression coverage and updates documentation.
  • Removes unused dependencies/widgets and updates organization links and workflows.

Reviewed changes

Copilot reviewed 47 out of 51 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
DESCRIPTION Bumps version and updates dependencies/remotes.
NEWS.md Documents the 1.4.0 release.
README.md Updates organization links.
_pkgdown.yml Updates the pkgdown URL.
.Rbuildignore Excludes data-raw and Playwright files.
.gitignore Ignores Playwright artifacts.
.github/CONTRIBUTING.md Updates contributor links.
.github/workflows/R-CMD-check.yaml Uses public workflow actions.
.github/workflows/pkgdown-all.yaml Updates reusable workflow source.
.github/workflows/qcthat.yaml Updates qcthat workflow source.
.github/workflows/r-releaser-caller.yaml Updates release workflow source.
.github/workflows/test-coverage.yaml Updates coverage workflow source.
.github/workflows/workflow-template-check.yaml Updates compliance workflow source.
R/Widget_BarChartQTL.R Removes the obsolete widget.
R/Widget_TimeSeriesQTL.R Attaches the shared gsm.viz dependency.
R/criteria_groupBar.R Migrates criteria charts to gsm.vizr.
R/discontinuation_groupBar.R Migrates discontinuation group charts.
R/discontinuation_reasonBar.R Migrates reason-count charts.
R/eligibility_groupBar.R Migrates eligibility group charts.
R/eligibility_sourcebar.R Migrates eligibility source charts.
R/reasons_groupBar.R Migrates grouped reason charts.
R/utils-bars.R Adds shared ordering, sizing, and palette helpers.
data-raw/Example_QTL.R Updates an issue link.
inst/report/QTL0001.Rmd Removes the separate percentage tab.
inst/htmlwidgets/Widget_BarChartQTL.js Removes obsolete widget binding.
inst/htmlwidgets/Widget_BarChartQTL.yaml Removes obsolete widget dependencies.
inst/htmlwidgets/Widget_TimeSeriesQTL.yaml Removes the vendored bundle declaration.
inst/htmlwidgets/lib/barChartQTL.js Removes obsolete chart wrapper.
inst/htmlwidgets/lib/gsm.viz-2.2.0/gsm.viz.css Removes vendored bundle styling.
inst/htmlwidgets/lib/timeSeriesQTL.js Removes invalid bundle registration.
man/criteria_groupBar.Rd Updates return-value documentation.
man/discontinuation_groupBar.Rd Updates return-value documentation.
man/discontinuation_reasonBar.Rd Updates return-value documentation.
man/eligibility_groupBar.Rd Updates return-value documentation.
man/eligibility_sourceBar.Rd Updates return-value documentation.
man/gsm.qtl-package.Rd Updates package links.
man/reasons_groupBar.Rd Updates return-value documentation.
pkgdown/menus/examples/Example_QTL.Rmd Updates the example-site link.
tests/playwright/baseline.json Stores chart fingerprints.
tests/playwright/fingerprint.spec.js Tests chart structure against the baseline.
tests/playwright/package-lock.json Locks Playwright dependencies.
tests/playwright/package.json Defines browser-test scripts.
tests/playwright/playwright.config.js Configures headless browser tests.
tests/playwright/qtl-report.spec.js Tests chart rendering and tab reveal.
tests/playwright/render-fixture.R Generates the browser-test report.
tests/testthat/helper-exported-fixtures.R Adds bars widget inspection helpers.
tests/testthat/test-exported-discontinuation.R Rewrites discontinuation chart tests.
tests/testthat/test-exported-eligibility.R Rewrites eligibility chart tests.
tests/testthat/test-vizr-dependency.R Tests dependency and asset integration.
vignettes/articles/Qualification.Rmd Removes riskmetric and updates repository APIs.
Files not reviewed (1)
  • tests/playwright/package-lock.json: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread DESCRIPTION Resolved
Comment thread vignettes/articles/Qualification.Rmd Resolved
Comment thread tests/playwright/package.json Resolved
Comment thread tests/playwright/fingerprint.spec.js Resolved
Comment thread tests/playwright/qtl-report.spec.js Resolved
Comment thread R/Widget_TimeSeriesQTL.R Resolved
Comment thread tests/testthat/test-vizr-dependency.R Resolved
Comment thread tests/playwright/qtl-report.spec.js Resolved
Review feedback on PR #138:

- The tab-reveal check read `canvas.toDataURL().length > 1000`. An untouched
  canvas at the report's chart size encodes to ~33k characters, and a chart
  with every dataset emptied still encodes to ~117k, so the assertion passed
  with no bars drawn. Count the laid-out bar elements instead.
- `skip_if_not("Remotes" %in% ...)` turned a dropped Remotes field into a
  passing skip -- the exact regression the test guards.
- The barchart count comment said 8 + 7; both reports render 7.
Review feedback on PR #138 -- two behaviours the suite exercised only through
the serialized spec:

- Percentage mode. The separate "Site (by %)" tab is gone, so the canvas-drawn
  position toggle is the only route to it. Assert the Site chart still meets
  gsm.viz's enable contract, then drive it through the same `updateSpec` call
  the toggle's click handler issues and check every category normalizes to the
  full plot width, and back again. Guards the position/stat merge: the chart
  sets stat = "identity", which draws raw counts if it survives.
- Time series rendering. Dropping the vendored bundle for gsm.vizr's copy is
  only covered by dependency metadata, so a widget left blank under the shared
  bundle would pass. Assert both instances lay out a chart area and plot points.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@michkam89
Michał Kamiński (michkam89) merged commit 10d6178 into main Sep 9, 2026
11 checks passed
github-actions Bot pushed a commit that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants