Skip to content

Visit overlay-drawn channel definitions, pin config transparent point, fix area legend test - #106

Merged
Malcolmnixon merged 1 commit into
mainfrom
fix/vegalite-overlay-followups
Nov 4, 2026
Merged

Malcolmnixon merged 1 commit into
mainfrom
fix/vegalite-overlay-followups

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Pull Request

Description

Follow-up to #103. Fixes the three findings that the final Copilot review mentioned only in its summary.

  1. The catalog visits a channel definition that an overlay draws. On an area, the overlay draws �ngle, strokeDash and size but the area mark does not. For those channels the catalog reported the path-specific message and never visited the definition, so the definition's own unsupported properties went unreported. It now visits the definition of any channel an overlay draws. A channel nothing draws (for example with point: false) is still reported as ignored and not visited. shape was already visited.
  2. Config point: "transparent". Behavior is unchanged, because it already matches vega-lite getPointOverlay. Only markDef.point === 'transparent' gives {opacity: 0}. A config value that is truthy but not an object, "transparent" included, enables the default opaque overlay. A new test pins this, and the user guide, requirements and verification docs now say it explicitly.
  3. Area legend test. The test now asserts against �reaSymbols: their fill colors and their shapes (circle, square, triangle-up).

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement

Related Issues

Follow-up to #103. Fixes the final review's summary findings.

Pre-Submission Checklist

Before submitting this pull request, ensure you have completed the following:

Build and Test

  • Code builds successfully and all tests pass: pwsh ./build.ps1 (46,038 tests, 0 failed)
  • Code produces zero warnings

Code Quality

  • New code has appropriate XML documentation comments
  • Static analyzer warnings have been addressed

Quality Checks

Please run the following checks before submitting:

  • All linters pass: pwsh ./lint.ps1 (passed)

Testing

  • Added unit tests for new functionality
  • Updated existing tests if behavior changed
  • All tests follow the AAA (Arrange, Act, Assert) pattern
  • Test coverage is maintained or improved

Documentation

  • Updated README.md (if applicable)
  • Updated docs/ documentation (if applicable)
  • Added code examples for new features (if applicable)
  • Updated requirements.yaml (if applicable)

Additional Notes

None.

…ig transparent point, fix the area legend assertion

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 4, 2026 03:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain in the supplied evidence for the overlay traversal, transparency behavior, legend assertions, and related documentation changes.

No open issues 🎉

What changed in this PR

This follow-up fixes overlay channel-definition traversal, clarifies point transparency behavior, and corrects area legend test assertions.

Changes:

  • Visit definitions for channels drawn by overlays while preserving ignored-channel behavior.
  • Add regression coverage for overlay diagnostics and configuration-level versus mark-level point: "transparent".
  • Update verification, design, user, and requirements documentation.
  • Correct area legend assertions for filled colors and symbol shapes.
File Reviewed change
test/​DemaConsulting.CanvasNet.VegaLite.Tests/​Scales/​MarkChannelGatingTests.cs Tests overlay channel-definition diagnostics, ignored channels, and area legend symbols.
test/​DemaConsulting.CanvasNet.VegaLite.Tests/​Marks/​MarkBuilderOverlayTests.cs Pins configuration-level and mark-level transparent-point behavior.
src/​DemaConsulting.CanvasNet.VegaLite/​SpecModel/​FeatureCatalog.cs Visits definitions for channels drawn by overlays.
docs/​verification/​canvas-net-vega-lite/​spec-model/​feature-catalog.md Documents feature-catalog traversal verification.
docs/​verification/​canvas-net-vega-lite/​marks/​mark-builder.md Documents overlay transparency verification.
docs/​user_guide/​canvas-net-vega-lite.md Clarifies configuration versus mark-level transparency behavior.
docs/​reqstream/​canvas-net-vega-lite/​spec-model/​feature-catalog.yaml Links the catalog regression test to its requirement.
docs/​reqstream/​canvas-net-vega-lite/​marks/​mark-builder.yaml Links the overlay behavior test to its requirement.
docs/​design/​canvas-net-vega-lite/​spec-model/​feature-catalog.md Documents traversal for overlay-drawn channel definitions.

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit a2393cc into main Nov 4, 2026
16 checks passed
@Malcolmnixon
Malcolmnixon deleted the fix/vegalite-overlay-followups branch November 4, 2026 04:33
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.

2 participants