Page MenuHomePhabricator

Viewing a Data:.chart page should render a preview of the chart
Closed, ResolvedPublic3 Estimated Story Points

Description

When the user views a Data:.chart page, they currently see a tabular representation of the chart definition JSON. Instead, they should see a rendering of the chart, using the default data source specified in the chart definition.

Sometimes it won't be possible to render a chart preview, for example if the definition is invalid or if the data source is missing. In that case we should display an error box explaining that.

The JsonConfig extension allows for custom page view behavior, see https://www.mediawiki.org/wiki/Extension:JsonConfig#Customizing_behavior_on_the_storage_wiki

  • Viewing a valid Data:.chart page displays the chart
  • Viewing an invalid Data:.chart page displays an error message (ideally explaining the type of issue e.g. invalid type, missing parameter, etc; but that's not needed)
  • Viewing a Data:.chart page that has no default data source but is otherwise valid displays a warning message

Details

Event Timeline

Catrope triaged this task as Medium priority.Jul 23 2024, 2:08 AM
LGoto set the point value for this task to 3.Jul 29 2024, 5:57 PM
LGoto moved this task from Backlog to Up Next on the Charts board.
Catrope removed the point value 3 for this task.
LGoto set the point value for this task to 3.Jul 29 2024, 6:09 PM

Change #1059442 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/extensions/Chart@master] Render chart when viewing chart page

https://gerrit.wikimedia.org/r/1059442

Change #1059442 merged by jenkins-bot:

[mediawiki/extensions/Chart@master] Render chart when viewing chart page

https://gerrit.wikimedia.org/r/1059442

Catrope claimed this task.
Catrope moved this task from Up Next to Sprint 3 on the Charts board.
Catrope edited projects, added Charts (Sprint 3); removed Charts.