summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer_text_input
AgeCommit message (Collapse)Author
2021-03-26[FIX] mail: do not show typing when using a / commandPriyanka Kakadiya
PURPOSE: Currently typing status is sent when typing a command. SPECIFICATION: Typing status should not be sent when typing a command. Task-2363267 closes odoo/odoo#66821 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-03-10[FIX] mail; hr: restore faster and more accurate mention suggestionsXavier Dubuc
The code from v13 used to look for partners in JS before making the RPC, which was much faster, and also gave better results by returning partners that were already known and therefore more likely to be selected. The same logic is reintroduced here, and further improved to take into account all known partners and sort them according to the likeliness they will be selected based on various criteria. task-2413776 closes odoo/odoo#64161 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com>
2021-03-10[FIX] mail: fix keyboard shortcut issue for small screenPriyanka Kakadiya
Current behavior before PR: When having a small screen, the composer in a chat window has no actual shortcut to send the message. Desired behavior after PR is merged: 'CTRL-Enter' keyboard shortcut will work for small screen size. LINKS: PR https://github.com//pull/65241 Task-2446076 closes odoo/odoo#65241 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-01-21[FIX] mail, *: significantly reduce number of useless rendersSébastien Theys
* = hr_holidays, im_livechat, website_livechat A huge amount of components where rendered for no reason, notably when typing a new message (at every key press), which significantly slowed down the interface. There were 2 causes to this number of renders: - OWL rendering all children automatically, even if their props didn't change, unless `shouldUpdate` is overridden, which is now done. - `useStore` selectors being way too generous in what they observed task-2399731 closes odoo/odoo#62703 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-01-15[FIX] mail: prevent composer cursor from randomly changing positionSébastien Theys
task-2388600 closes odoo/odoo#62446 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-04[FIX] mail: prevent Safari from indefinitely focusing composerAlexandre Kühn
`setSelectionRange()` on Safari has side-effect to focusing the input element, which is not the case in Chrome and Firefox. Task-2410311 closes odoo/odoo#62912 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-04[FIX] mail: wrong top value in composer cssDidier (did)
closes odoo/odoo#62881 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-12-03[FIX] mail: increase chatter max-height.Didier (did)
We go back to the fake textarea to avoid a flickering created by the `this._textareaRef.el.style.height = "0px";`. This height reset create an unwanted scrollbar jump that could hide the content of the textarea (not aside mode). task-2390354 closes odoo/odoo#62588 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-24[FIX] mail: fix text selection in composer using SHIFT and arrow keysJulien Giannone
This commit corrects the faulty SHIFT + ArrowKey selection behavior. task-2388650 closes odoo/odoo#62059 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-16[FIX] mail: fix race conditions, especially with scrollSébastien Theys
The `_update` of some components must take place before the `_update` of other (usually sibling) components that might directly influence their layout. This is in particular the case for `_update` that are relying on height. Prevent force save of scroll position if there are pending hints to adjust it, and prevent pending hints from overriding new scroll value. Prevent flicker with message date. This should fix all known issues related to incorrectly saving or restoring scroll position. task-2344226 task-2358066 task-2369332 task-2372339 task-2373741 closes odoo/odoo#61054 Related: odoo/enterprise#14736 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-29[FIX] mail: fix height overflow of mentionsSébastien Theys
Due to mentions being positioned inside thread view and messaging list (when in chat window) and those two elements having `overflow: auto`, it is necessary to give mentions an appropriate max height to prevent overflow. This makes it necessary to add a scrollbar to the mention list, which makes scrolling into view of active item necessary when navigating with the keyboard. Also removed activating item on mouse over to prevent activation of wrong items when navigating with keyboard if the cursor is unfortunately over another item. task-2275828 closes odoo/odoo#60930 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-30[FIX] mail: make only composer as fixed in chatterXavier Dubuc
task-2282325 closes odoo/odoo#60524 Related: odoo/enterprise#14481 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-10-29[FIX] mail: fix handling of lastVisibleMessage in channel seen conditionXavier Dubuc
also fix a problem with composer.hasFocus field not always correctly updated (e.g. when switching from a channel to another in discuss) task-2278915 closes odoo/odoo#60079 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-27[Fix] mail: ensures composer cleanup on message postThanh Dodeur
Before this commit, the state of the composer was not properly saving its state when focusing out, which caused erroneous composer states in some corner cases, like when posting messages on mobile in some browsers. This commit fixes this issue. opw-2366374 closes odoo/odoo#60841 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com>
2020-10-14[FIX] mail: open mentions below composer in chatterSébastien Theys
opw-2358094 closes odoo/odoo#60004 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-21[IMP] mail: reintroduce channel mentions, canned responses, commandsJulien Giannone
task-2280308 closes odoo/odoo#58166 X-original-commit: b63d0d2ee5f3bff24a5e1e1cd962d59bebef082d Related: odoo/enterprise#13392 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-03[FIX] mail: allow composer text input to send message with ctrl+enterXavier Dubuc
Also allow meta+enter task-2296863 closes odoo/odoo#57045 X-original-commit: 6bad3666be3d3631eaadae409d0cabcdd02661a8 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-28[FIX] mail, *: fix opens and redirects, adapt messaging menu closeSébastien Theys
task-2244279 task-2262862 task-2274993 task-2277537 task-2282238 closes odoo/odoo#56745 X-original-commit: 109f202 Related: odoo/enterprise#12761 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-21[FIX] mail: fix some CSS in chat window and attachmentsXavier Dubuc
Also make rounded style for composer tool buttons. task-2282342 closes odoo/odoo#56282 X-original-commit: 307fa6877ad72fe0afb10f1b4e67ec573422b732 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-07-08[FIX] mail: bring back extended composer for mailing channelXavier Dubuc
task-2171877 task-2282377 task-2282382 closes odoo/odoo#54249 X-original-commit: acf8eb3e2e49c1ade638ff1f2fed4969f9944053 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-06-26[FIX] mail: fix (inbox reply) composer event handlers (and discard)Sébastien Theys
task-2092950 closes odoo/odoo#53731 X-original-commit: c29f5776594c4d2278ce163a78d8eb917fb672c0 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-25[FIX] mail: clarify composer placeholderXavier Dubuc
Also moved isLog from composer component prop to composer model field. task-2280159 & task-2250887 closes odoo/odoo#53645 X-original-commit: ba41b1de5edc2b3153a5b20a4f11778a3f724ade Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-16[FIX] mail: mark message as seen only when thread composer is focusedXavier Dubuc
task-2272510 closes odoo/odoo#53088 X-original-commit: edf356c2022b3039e53e82a092fc64533f59df27 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>