[18.0][IMP] web_chatter_position: add toggle button for chatter position#3453
[18.0][IMP] web_chatter_position: add toggle button for chatter position#3453JoanSForgeFlow wants to merge 1 commit intoOCA:18.0from
Conversation
|
Hi @trisdoan, |
AaronHForgeFlow
left a comment
There was a problem hiding this comment.
It works well, awesome feature. Nitpicking alert: I would add the button on the right part of the screen, having it next to the "New" button feels rare.
7fd3e88 to
05c6f39
Compare
|
Hi @AaronHForgeFlow, The button was there in previous versions, 15.0 and earlier. |
AaronHForgeFlow
left a comment
There was a problem hiding this comment.
Ok! Thanks for the clarification! LGTM.
|
This is now implemented at #3444 |
|
This PR has the |
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thanks for this, Joan -- a toggle button is a very welcome addition.
Code looks solid overall. A few observations:
-
Compiler vs runtime interaction: The existing module positions the chatter at compile time via
FormCompiler.compile(). This PR adds runtime repositioning via DOM manipulation inFormController. When the user preference is"auto"(compiler does nothing special), the toggle still appears and switches to"bottom"on first click, which works because_moveChatterhandles the class/DOM changes. Worth noting this dual approach in case of future refactors to the compiler patch -- the two mechanisms need to stay in sync. -
Toggle state is ephemeral: The toggled position lives only in component state and resets on navigation. If that's intentional (per-session override), maybe worth a brief note in the README. If persistence is desired eventually, an RPC to update the user preference would be the way to go.
-
Minor:
moveChatter()is called from bothonMountedandonPatched, which is correct to handle initial render and subsequent OWL re-renders. The resize listener for"bottom"is a nice touch for responsive behavior.
LGTM -- nice feature.
|
Hi @arch-fan, From my point of view, this PR is not duplicating The goal here is to restore the possibility of moving the chatter to the bottom, which existed in previous versions of Also, the behavior is different: If there are concerns about the visibility of the button or the UX, we could also make the button optional, for example by showing it only when enabled through a configuration option Thank you |
|
Ahh just for moving the chatter ATM. I thought it was just for collapsing. Ok sorry, great PR 🙏 GJ |
|
Hi @etobella Could you take a look when you get a chance? It would be great if you could merge it if everything looks good to you. Thank you! |
No description provided.