Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

refactor(knobs): Gallery optional/mandatory knobs -FRONT-926 #392

Merged
merged 9 commits into from Apr 1, 2020

Conversation

Joosthe
Copy link
Contributor

@Joosthe Joosthe commented Mar 26, 2020

PR description

Please drop a few lines about the PR: what it does, how to test it, etc.

QA Checklist

In order to ensure a safe and quick review, please check that your PR follow those guidelines:

  • I have put the vanilla component as devDependencies
  • I have put the specs package as devDependencies
  • I have added the components directly used in the twig file (with include or embed) as dependencies
  • My component is listed in @ecl-twig/ec-components's dependencies
  • My variables naming follow the guidelines (snake case for twig)
  • I have provided tests
  • I have provided documentation (for the "notes" tab)
  • If my local yarn.lock contains changes, I have committed it
  • I have given my PR the proper label (pr: review needed to indicate that I'm done and now waiting for a review ,pr: wip to indicate that I'm actively working on it ...)

@Joosthe Joosthe added pr: review needed Use this label to show that your PR needs to be review tag: enhancement labels Mar 26, 2020
@Joosthe Joosthe changed the title refactor(knobs): Gallerij optional/mandatory knobs -FRONT-926 refactor(knobs): Gallery optional/mandatory knobs -FRONT-926 Mar 26, 2020
@planctus planctus added pr: under review pr: review needed Use this label to show that your PR needs to be review and removed pr: review needed Use this label to show that your PR needs to be review pr: under review labels Mar 26, 2020
@papegaill papegaill added pr: under review and removed pr: review needed Use this label to show that your PR needs to be review labels Mar 26, 2020
data.overlay.share.icon.path = defaultSprite;
const preperaGallery = data => {
data.items.forEach((item, index) => {
item.share_path = select(
Copy link
Contributor

Choose a reason for hiding this comment

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

What about the other parameters?

  • "path"
  • "alt"
  • "meta"
  • "icon"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i didn't see them in the documentation in ecl for the gallery but i will put them in

defaultSprite,
buttonLabels.required
);
data.overlay.download.icon.path = select(
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a link object, not only the icon.path should be a knob

defaultSprite,
buttonLabels.required
);
data.overlay.share.icon.path = select(
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a link object, not only the icon.path should be a knob

@planctus planctus added pr: wip Mark the PR as WIP and removed pr: modification needed labels Mar 31, 2020
@planctus planctus added pr: review needed Use this label to show that your PR needs to be review and removed pr: wip Mark the PR as WIP labels Apr 1, 2020
@papegaill papegaill added pr: under review and removed pr: review needed Use this label to show that your PR needs to be review labels Apr 1, 2020
@papegaill papegaill merged commit abc9a1b into develop Apr 1, 2020
@papegaill papegaill deleted the FRONT-926 branch April 1, 2020 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants