Tuesday, September 27, 2022
4 changes · master
Enhancements to existing features
The Knowledge app gets a cleaner, more consistent sidebar with better spacing, resizing, and readability across screen sizes. Users and website visitors can resize the sidebar and keep their preferred width, while several article display, sharing, publishing, and creation issues are fixed for a smoother experience.
Original PR description
Purpose: ======= - Change the indentation of the articles names in the sidebar, so that articles of the same level (parent/1st child/2nd child, ...) are aligned - Make the size of the input match…
Purpose: ======= - Change the indentation of the articles names in the sidebar, so that articles of the same level (parent/1st child/2nd child, ...) are aligned - Make the size of the input match exactly the length of the article name: previously, the input size was set using the size attribute, which approximates the length using the number of characters of the name and a mean character width value. This resulted in cropped names if there was a majority of large characters, or in a too large input if it was the opposite. The name was also cropped when entering the edition mode. The input size now matches exactly the article name, at any time - Change the range of the allowed width for the resizable sidebar: allows users to make it smaller than before, but not as wide (users could resize it to take the half of the screen width, which was too much considered it is a sidebar) - Change wording of messages shown when trying to move an article: adds the article name in the message, and the destination in the title to make it easier for the user - Make icons bigger in the options panel - Avoid changing the look of the sidebar when installing website: fixes the font-size in the sidebar so that the search bar, section headers and article names are not too large when installing website. - Fix broken logos in the permission panel: mimicks the behavior of the many2one_avatar widget by zooming in the image to fill the container, instead of stretching the image. - Fix hidden article names in the sidebar: shows the article names in the sidebar even when the window size is small. - Add resizable sidebar in frontend: allows visitors to resize the sidebar, the same way users can do it in backend, as visitors can also have small screens - Keep selected sidebar size: when an user changes the size of the sidebar, the selected width is stored in localStorage so that it can be set automatically when the user selects another article or reloads the page Task-2858661
Users can now change tags on each signature request at any time, without affecting other requests. The update also makes tag fields easier to identify and edit, including bulk tag editing from the request list.
Original PR description
Tags can be modified at any time for each sign request separately.
Resolved issues and error corrections
Fixes a timing issue that could prevent users from selecting date fields during invoice document extraction. It also prevents crashes when working with longer PDFs where some pages do not have extracted selection boxes, making the invoice review flow more stable.
Original PR description
There was a race condition between the handlers of the blur and click events for date boxes. If the blur is handled first, the boxes are removed from the DOM and the click fails as it happens on an element which isn't present. For the other field's boxes, there was no issue as the `mousedown` event was prevented and the field wasn't losing focus, letting the boxes mounted. For the date fields, the `mousedown` event wasn't prevented as it was used to hide the calendar dropdown for UI feedback. In this new version, the `mousedown` event is always prevented and a fake <kbd>ESC</kbd> keypress is triggered for date fields to hide the calendar. This also has the benefit that the boxes are still displayed after a click which is better for the user experience.
The mobile control panel now displays and behaves correctly again by restoring missing page structure and styling. This helps users navigate and search smoothly on phones without layout issues.
Original PR description
This PR and its community counterpart add back some missing DOM attributes and CSS rules that made the mobile ControlPanel work. Community: https://github.com/odoo/odoo/pull/94975