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

[SC-44672][FEAT] Add new legend symbol: Image #204

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

KevinFabre-ods
Copy link
Contributor

Summary

The goal for this PR is to add a new legend symbol in the legend.

Render an image as a legend item by providing an URL

(Internal for Opendatasoft only) Associated Shortcut ticket: sc-44672.

image

Changes

  • A new legend item symbol: ImageSymbol
  • Update POI map stories

Breaking Changes

describe the changes that are not backward compatible

Open discussion

Should we add the alt property ?

To be tested

Try to load large images to break the legend layout

Review checklist

  • Description is complete
  • Commits respect the Conventional Commits Specification
  • 2 reviewers (1 if trivial)
  • Tests coverage has improved
  • Code is ready for a release on NPM

Copy link
Contributor

@etienneburdet etienneburdet left a comment

Choose a reason for hiding this comment

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

All good for me :ok-hand:

Copy link
Contributor

@RafaelSzmarowski RafaelSzmarowski left a comment

Choose a reason for hiding this comment

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

LGTM ! Nice and smooth, I don't know about the alt property, my first thought was that we can always add one but then, the legend has a label so it seems a little bit duplicating the information ! We have no alt on the KPIs image so I guess shouldn't be a problem here too

@KevinFabre-ods KevinFabre-ods force-pushed the feature/sc-44672/studio-exploration-tech-create-png-images branch 2 times, most recently from affcb28 to edf3e31 Compare November 24, 2023 13:52
@KevinFabre-ods KevinFabre-ods force-pushed the feature/sc-44672/add-new-legend-symbol--image branch from cba597f to 4bf7bfd Compare November 24, 2023 13:56
Base automatically changed from feature/sc-44672/studio-exploration-tech-create-png-images to main November 24, 2023 15:21
@KevinFabre-ods KevinFabre-ods merged commit d9666b6 into main Nov 24, 2023
7 checks passed
@KevinFabre-ods KevinFabre-ods deleted the feature/sc-44672/add-new-legend-symbol--image branch November 24, 2023 15:32
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.

3 participants