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

Master snippet options owl role #3300

Draft
wants to merge 102 commits into
base: master-snippet-options-owl-ard
Choose a base branch
from

Conversation

robinlej
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Jun 21, 2024

This PR targets the un-managed branch odoo-dev/odoo:master-snippet-options-owl-ard, it needs to be retargeted before it can be merged.

@robinlej robinlej force-pushed the master-snippet-options-owl-role branch from 44648c4 to b06895f Compare June 24, 2024 15:03
Copy link

@detrouxdev detrouxdev left a comment

Choose a reason for hiding this comment

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

Good job on those refactoring! WeList etc are not easy widgets to handle. They seem to work fairly well! Maybe next you could convert the conditional visibility option, as this one uses WeMany2many!

I left a few comments, nothing crazy, mostly questions. Once those are handled I should be able to cherry pick most of these commits 😄

@robinlej robinlej force-pushed the master-snippet-options-owl-role branch 4 times, most recently from 59bf89c to a649eff Compare June 25, 2024 14:29
@detrouxdev detrouxdev force-pushed the master-snippet-options-owl-ard branch from fb98eb8 to 50c6b00 Compare June 25, 2024 14:35
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch 13 times, most recently from 394c7fd to 1df955e Compare July 2, 2024 08:24
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch from 1666389 to d6f2885 Compare July 3, 2024 13:54
@detrouxdev detrouxdev force-pushed the master-snippet-options-owl-ard branch from 50c6b00 to f2f5489 Compare July 3, 2024 14:27
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch from 2a1514f to cd9a55e Compare July 4, 2024 08:06
@detrouxdev detrouxdev force-pushed the master-snippet-options-owl-ard branch from f2f5489 to b54010f Compare July 4, 2024 09:05
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch 2 times, most recently from 20f0e05 to eaa85d0 Compare July 4, 2024 09:34
@detrouxdev detrouxdev force-pushed the master-snippet-options-owl-ard branch 2 times, most recently from 879bffb to 51f6d38 Compare July 4, 2024 15:01
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch from 134a190 to a5741f2 Compare July 5, 2024 08:21
…s to Owl

Kept in a separate commit as this fix only makes sense if the changes
that are in the parent commit are accepted
@detrouxdev detrouxdev force-pushed the master-snippet-options-owl-ard branch from 2f8aa1e to 1ea9cc1 Compare August 6, 2024 08:47
*: website, website_sale

This commit converts ImageTools and WebsiteAnimate options to OWL. For
website, a new WebsiteAnimateMixin is created to be able to combine both
sets of options into a single ImageToolsAnimate class in order to apply
hover effects on images: the previous code moved elements from one
widget to the other (back and forth) depending on some conditions, which
is neither sustainable nor advisable with the OWL framework.
As much as possible, the code from both ImageTools and WebsiteAnimate
related to hover effects is moved into ImageToolsAnimate.
Having all the methods in the same class also makes for a better and
easier communication between the different widgets.

For the same reason (avoid moving elements from one component to
another), the commit also adds a way for options to appear directly in
the Toolbar, to apply a TextAnimate class.

task-3850413
This commit converts TextHighlight options to OWL. In the process, we
add `<WeTextHighlightSelect>` and `<WeTextHighlightBtn>` components in
order to be able to add the highlight SVGs on the `<WeButton>` once the
components are mounted and have a size (i.e. once the select toggler has
been opened).

task-3850413
This commit adds a util `updateOption()` function to modify a snippet
option already registered on the registry.

task-3850413
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch from e97adae to d062586 Compare August 8, 2024 14:34
@robinlej robinlej force-pushed the master-snippet-options-owl-role branch from d062586 to d8a5dc4 Compare August 9, 2024 07:27
@detrouxdev detrouxdev force-pushed the master-snippet-options-owl-ard branch 9 times, most recently from 633ee8d to 1240c73 Compare August 20, 2024 08:52
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.

5 participants