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

feat: add shopLogoUrls to shop settings to allow logo to be rendered from url #5227

Merged
merged 10 commits into from
Jun 28, 2019

Conversation

kieckhafer
Copy link
Member

Impact: minor
Type: feature

Adds a field to allow operators to link to an existing logo URL, and use that logo / url as their primary shop logo.

Breaking changes

None. The URL logo will take precedence, if available, but will not affect anything if it is not added.

Testing

  1. Start the app, see that the default reaction logo is used as the shop logo.
  2. Upload a logo via the upload image feature, and see that the uploaded image takes over as the shop logo.
  3. Add an image URL, and see that the image form the URL takes over as the shop logo.
  4. Remove the URL, and see the image goes back to the uploaded image.
  5. Remove uploaded image, and see it goes back to the default
  6. Add a URL (without uploading an image), and see that the URL logo becomes the shop logo.

Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
@kieckhafer kieckhafer changed the title [WIP] feat: add shopLogoUrls to shop settings to allow logo to be rendered from existing upload [WIP] feat: add shopLogoUrls to shop settings to allow logo to be rendered from url Jun 20, 2019
}
});

registerSchema("ShopLogoUrls", ShopLogoUrls);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this being used anywhere. Should the field just be added to shop schema?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
@kieckhafer kieckhafer changed the title [WIP] feat: add shopLogoUrls to shop settings to allow logo to be rendered from url feat: add shopLogoUrls to shop settings to allow logo to be rendered from url Jun 21, 2019
@kieckhafer kieckhafer marked this pull request as ready for review June 21, 2019 21:52
@kieckhafer kieckhafer requested a review from aldeed June 21, 2019 21:52
Signed-off-by: Erik Kieckhafer <ek@ato.la>
@kieckhafer
Copy link
Member Author

@aldeed schema validation has been added: 2d2336b

@kieckhafer
Copy link
Member Author

snyk has been fixed in another branch, it should be passing once this is merged.

@willopez
Copy link
Member

@kieckhafer merging develop into this branch should fix the build issues.

Copy link
Contributor

@aldeed aldeed left a comment

Choose a reason for hiding this comment

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

Reviewed code and tested. 👍

@aldeed aldeed merged commit c10680f into develop Jun 28, 2019
@aldeed aldeed deleted the feat-kieckhafer-addShopLogoUrlField branch June 28, 2019 20:08
@jeffcorpuz jeffcorpuz mentioned this pull request Jul 2, 2019
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