Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show warning text below RichTextEditor when unable to show snapshot #1571

Conversation

HendrikThePendric
Copy link
Contributor

@HendrikThePendric HendrikThePendric commented Sep 5, 2023

Implements DHIS2-15781

Relates to dhis2/line-listing-app#428


Key features

  1. Show a warning below the rich text editor when adding an interpretation of type eventVisualization (line-listing-app) if no time dimension is available.

Screenshots

supporting text

HendrikThePendric and others added 8 commits September 25, 2023 17:42
Without this default value the changes in this PR would actually
constitute to a breaking change, at least for the line-listing-app:
if the `visualizationHasTimeDimension` prop is not provided and the
`type` equals `eventVisualization`, the helptext would be rendered.
By defaulting to `true` we avoid this, only explicitly setting
`visualizationHasTimeDimension` to `false` will cause the help text to
show.

I think this is mainly a theoretical issue, because the line-listing-app
will always set the prop. But who knows: there could be a 3rd party app
out there using the analytics library which would break because of this.
Co-authored-by: Edoardo Sabadelli <[email protected]>
@HendrikThePendric HendrikThePendric force-pushed the DHIS2-15781-show-warning-text-below-rich-text-editor branch from 37eb41c to 7dd3d31 Compare September 25, 2023 15:42
@martinkrulltott
Copy link
Contributor

Superseded by the combo PR #1588

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.

4 participants