Skip to content

feat(reports): send the designer's cell and column styles in ReportColumn - #253

Merged
marioserrano09 merged 1 commit into
nextfrom
feature/252-report-column-styles
Oct 13, 2026
Merged

marioserrano09 merged 1 commit into
nextfrom
feature/252-report-column-styles

Conversation

@marioserrano09

Copy link
Copy Markdown
Contributor

Closes #252.

ReportColumn (api v2) now carries cellStyle and columnStyle (CSS class names the designer set per field, applied by the ZK viewer with setSclass), filled in ReportColumns.of(field). Blank values are not sent, and the new keys are omitted from the JSON when null (@JsonInclude(NON_NULL) only on them), so the payload is unchanged for reports that do not use them. The 7-argument constructor stays. @dynamia-tools/reports-sdk type updated.

Real data: 151 fields in a production-like database use cellStyle (green lighten-5, red lighten-4, …: Materialize-style tints from the ZK theme); none uses columnStyle.

Tests: ReportColumnStylesTest (4: mapping, blanks, JSON keys omitted/kept, old constructor) and the existing ReportsApiServiceTest (25), via mvn -pl extensions/reports/sources/core -am test. tsc of the SDK OK.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GDh8QvbJA9soPiZXVjuYph

…lumn

ReportColumn (api v2) gets cellStyle and columnStyle, filled from ReportField and omitted from the JSON when blank, so a front end other than ZK can honor what the designer chose. The 7-argument constructor stays. SDK type updated.

Refs #252

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GDh8QvbJA9soPiZXVjuYph
@marioserrano09
marioserrano09 merged commit b884bc6 into next Oct 13, 2026
1 check passed
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