Skip to content

fix(ui): include zero values in donut legends#226

Merged
fahimfaisaal merged 1 commit into
goptics:mainfrom
AysajanE:northset/M-031
Jul 15, 2026
Merged

fix(ui): include zero values in donut legends#226
fahimfaisaal merged 1 commit into
goptics:mainfrom
AysajanE:northset/M-031

Conversation

@AysajanE

@AysajanE AysajanE commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Keep donut arcs and percentage totals restricted to positive values while including genuine zero-valued series in the side legend as n/a and keeping missing series omitted, with focused regression tests.

Change

  • ui/src/composables/charts/shared/chartConfig.test.ts
  • ui/src/composables/charts/shared/chartConfig.ts

Checks

  • PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH pnpm --dir ui exec vitest run src/composables/charts/shared/chartConfig.test.ts — passed in a network-isolated container.
  • PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH pnpm --dir ui typecheck — passed in a network-isolated container.
  • PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH pnpm --dir ui format:check — passed in a network-isolated container.
  • PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH pnpm --dir ui test — passed in a network-isolated container.
  • EMBED_UI=True PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH pnpm --dir ui build — passed in a network-isolated container.
  • PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH GOMODCACHE=/workspace/.northset/bootstrap-home/project-go-mod go test -count=1 ./... — passed in a network-isolated container.
  • PATH=/workspace/.northset/bootstrap-home/bin:/workspace/.northset/bootstrap-home/go/bin:$PATH GOMODCACHE=/workspace/.northset/bootstrap-home/project-go-mod golangci-lint run — passed in a network-isolated container.

Fixes #204


AI assistance was used; I reviewed and own this change.

Verification

Northset proof-of-pass receipt M-031
This record covers Northset’s own contribution; it is not maintainer verification.
Maintainers can request a separate, private run for a PR already in their queue at [email protected].
For repositories already onboarded with Northset, adding northset-verify to a PR requests a run on that PR.

@fahimfaisaal fahimfaisaal added the ui ui-related tasks label Jul 15, 2026
@fahimfaisaal fahimfaisaal added this to the Release v0.16.0 milestone Jul 15, 2026

@fahimfaisaal fahimfaisaal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @AysajanE, thanks for the PR

@fahimfaisaal
fahimfaisaal merged commit 4664a6b into goptics:main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui ui-related tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Tooltip donut legend omits zero-value series (should show n/a)

2 participants