Skip to content

Conversation

@sakari-malkki
Copy link
Member

More flexible and repsonsive

Copilot AI review requested due to automatic review settings November 5, 2025 14:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the Highcharts credits field with captions to provide more flexible and responsive chart attribution. The change applies a more standard approach to displaying source information and last updated timestamps.

Key Changes:

  • Replaced credits configuration with caption field throughout the codebase
  • Simplified chart options logic by removing complex conditional credits positioning
  • Updated accessibility configuration to include caption translations

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/core/highcharts/themes.ts Added caption accessibility translation and changed credits config to caption
src/core/chartOptions/chartOptions.ts Replaced credits field with caption, removed complex positioning logic
src/core/conversion/pxGrafDataConverter.test.ts Updated test assertions from credits.text to caption.text
src/stories/chartstories/linechart.stories.tsx Added new story variant demonstrating caption with last updated information

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@sakari-malkki sakari-malkki merged commit e0a7bf8 into dev Nov 7, 2025
8 checks passed
@sakari-malkki sakari-malkki deleted the bugfix/fix-credits-field branch November 7, 2025 10:30
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