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

[IMP] website: improve configurator logo upload #145047

Conversation

Guillaume-gdi
Copy link
Contributor

@Guillaume-gdi Guillaume-gdi commented Dec 5, 2023

This PR improves the logo detection part of the website configurator.
Summary of changes:

  • prevent having multiple logos attachment for a website
  • add a button to remove website logo in the configurator
  • select logo colors after uploading logo
  • premit to detect colors of webp logo

task-3609329

@Guillaume-gdi Guillaume-gdi self-assigned this Dec 5, 2023
@robodoo
Copy link
Contributor

robodoo commented Dec 5, 2023

Pull request status dashboard.

@C3POdoo C3POdoo added the RD research & development, internal work label Dec 5, 2023
@Guillaume-gdi Guillaume-gdi force-pushed the 17.0-improve-configurator-logo-palette-gdi branch from ab06443 to 06830df Compare December 7, 2023 09:31
@Guillaume-gdi Guillaume-gdi changed the title [IMP] website: add a button to remove webiste logo in the configurator [IMP] website: improve configurator logo upload Dec 7, 2023
@Guillaume-gdi Guillaume-gdi force-pushed the 17.0-improve-configurator-logo-palette-gdi branch 9 times, most recently from 7ec43f3 to 154f9ba Compare December 7, 2023 14:26
@Guillaume-gdi Guillaume-gdi marked this pull request as ready for review December 7, 2023 14:27
@C3POdoo C3POdoo requested a review from a team December 7, 2023 14:29
@Guillaume-gdi Guillaume-gdi force-pushed the 17.0-improve-configurator-logo-palette-gdi branch 2 times, most recently from 6c67c5e to 31a06d9 Compare December 13, 2023 12:12
@qsm-odoo
Copy link
Contributor

@robodoo delegate=sobo-odoo
@sobo-odoo

Copy link
Contributor

@sobo-odoo sobo-odoo left a comment

Choose a reason for hiding this comment

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

Here is my review 😉
It seems to work well except for a detail (see "behavior" comment)
I also have a few questions so the changes will depend on your answers 🙂

@Guillaume-gdi Guillaume-gdi force-pushed the 17.0-improve-configurator-logo-palette-gdi branch 8 times, most recently from f183862 to c436795 Compare December 20, 2023 15:06
Copy link
Contributor

@sobo-odoo sobo-odoo left a comment

Choose a reason for hiding this comment

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

Last nitpicks and then I will r+ 🙂

Before this commit, when a user was uploading a logo for a website via
the website configurator, the logo was added as an attachment but the
potential previous logo was not deleted. This commit fixes this by
deleting the previous logo when a new one is uploaded.

Steps to reproduce the issue:
- Create a new website
- Fill the configurator until you can upload a logo
- Upload a logo, then upload another one
- Finish the configurator
- Edit a page of the website
- Change an image

=> You can see the first logo you uploaded in the list of images.

task-3609329
This commit adds a button to remove the website logo in the website
configurator.

task-3609329
This commit permits to automatically select the colors of the logo after
uploading it.

task-3609329
Before this commit, when a user uploaded a webp logo through the website
configurator, the colors of the logo were not detected. This commit adds
the possibility to detect the colors of a webp logo.

task-3609329
@Guillaume-gdi Guillaume-gdi force-pushed the 17.0-improve-configurator-logo-palette-gdi branch from c436795 to cd0f77c Compare December 21, 2023 10:52
Copy link
Contributor

@sobo-odoo sobo-odoo left a comment

Choose a reason for hiding this comment

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

Alright, let's r+ ! 😉

@robodoo rebase-ff r+

@robodoo
Copy link
Contributor

robodoo commented Dec 21, 2023

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Dec 21, 2023
Before this commit, when a user was uploading a logo for a website via
the website configurator, the logo was added as an attachment but the
potential previous logo was not deleted. This commit fixes this by
deleting the previous logo when a new one is uploaded.

Steps to reproduce the issue:
- Create a new website
- Fill the configurator until you can upload a logo
- Upload a logo, then upload another one
- Finish the configurator
- Edit a page of the website
- Change an image

=> You can see the first logo you uploaded in the list of images.

task-3609329

Part-of: #145047
robodoo pushed a commit that referenced this pull request Dec 21, 2023
This commit adds a button to remove the website logo in the website
configurator.

task-3609329

Part-of: #145047
robodoo pushed a commit that referenced this pull request Dec 21, 2023
This commit permits to automatically select the colors of the logo after
uploading it.

task-3609329

Part-of: #145047
@robodoo robodoo closed this in 6b6b136 Dec 21, 2023
@Guillaume-gdi Guillaume-gdi deleted the 17.0-improve-configurator-logo-palette-gdi branch December 21, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants