Wednesday, April 24, 2024
2 changes · saas-17.1
Resolved issues and error corrections
This fixes a visual issue in the website/page editor where the formatting toolbar could jump or flicker while using color picker options. Users get a steadier editing experience when changing or resetting text and background colors.
Original PR description
This PR fixes 2 reasons for toolbar flickering: - when hovering over the colorpicker if the selection was made from right to left, because the selection would be reset by `_processAndApplyColor` to a left to right direction, which caused the toolbar position to be recalculated. - when hovering over the colorpicker's "reset" button, regardless of the selection direction, if the selection still contained font elements after the call to the "applyColor" commmand with a falsy `color` parameter. This can happen, for example, when hovering over the Background Color colorpicker's "reset" button while having a selection containing a font element for foreground color. This would make the selection to be set around the remaining font element, leading to a toolbar repositioning. task-3700731
This update fixes a rare build/test failure where live messaging requests could arrive after the system stopped marking the registry as being in test mode. It improves internal test detection so automated checks are more reliable, reducing false failures during development and releases.
Original PR description
It looks like even with the registry check, we can still have rare case were the websocket request arrives after registry test mode is removed. This is fixed by checking if current test is set This flag is more reliable, but needs the backport of the new current_test behaviour (https://github.com/odoo/odoo/pull/156852).