Skip to content

fix(dashboard): calendar-aligned range presets, and the real caseType label field - #732

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/dashboard-preset-and-labelfield
Aug 5, 2026
Merged

fix(dashboard): calendar-aligned range presets, and the real caseType label field#732
rubenvdlinde merged 1 commit into
developmentfrom
fix/dashboard-preset-and-labelfield

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Two companion fixes to nextcloud-vue#600.

Presets were rolling windows wearing calendar labels

days: 30 on 21 May covers 22 April – 21 May. Labelling that "Month" misstates what the numbers cover. They now use the period preset kind added in nextcloud-vue#600, which resolves to the current calendar unit to date, and are relabelled "Current week/month/quarter/year".

The chart was resolving labels through a field that does not exist

"Cases by Type" used labelResolve.labelField: "name", but the caseType schema has no name property — only title. The chart worked purely by accident, falling through to the @self.name fallback. Corrected to the field that actually exists. statusType genuinely has name, so that one is untouched.

Sequencing

Both depend on nextcloud-vue#600 landing and releasing on the vue3 line. The preset change is inert until then — an unknown preset kind resolves to null and the previous window stands — and the labelField correction is an improvement either way. Manifest validates against the v2 schema.

… label field

Two companion fixes to nextcloud-vue#600.

The dashboard's range presets were rolling windows labelled as calendar
ones: `days: 30` on 21 May covers 22 April–21 May, so "Month" misstated
what the numbers cover. They now use the `period` preset kind added in
nextcloud-vue#600, which resolves to the CURRENT calendar unit to date,
and are relabelled accordingly.

The "Cases by Type" chart resolved its labels through
`labelField: "name"`, but the caseType schema has NO `name` property —
only `title`. The chart worked purely by accident, falling through to the
`@self.name` fallback. Corrected to the field that actually exists.
`statusType` genuinely has `name`, so that one is untouched.

Both depend on nextcloud-vue#600 being released on the vue3 line; the
preset change is inert until then (an unknown preset kind resolves to
null and the previous window stands), and the labelField change is an
improvement either way.
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ b4e7715

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-manifest
check-vue3-compile
test-l10n
composer ✅ 100/100
npm ✅ 550/550
PHPUnit
Newman ⏭️
Playwright
Hydra gates

Quality workflow — 2026-08-05 12:57 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 2c21530 into development Aug 5, 2026
33 of 35 checks passed
@rubenvdlinde
rubenvdlinde deleted the fix/dashboard-preset-and-labelfield branch August 5, 2026 13:46
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.

1 participant