summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/client_action.xml
AgeCommit message (Collapse)Author
2018-02-01[REF][IMP] *: mail js refactoringAaron Bohy
This commit improves the JS code of the mail module, which comes maily from the new coding guidelines and the addition of "JS services". JS services are important objects that do not fit well in the component tree, such as chat_manager or ajax. The benefits of JS services are improved readability of the code, reduced coupling, and more testable modules. In particular, discuss was hard to Summary of the changes: - ClientAction has been renamed into Discuss - Clear instantiation of chatManager - New coding guidelines in most mail modules - JS Services can interact with each other - Chat Manager and Window Manager are services - Window Manager renamed to Chat Window Manager - bus.bus is now encapsulated in Bus Service (a service) - The test infrastructure has been tweaked with JS Services - Chat Mixin has been removed A future improvement would be to translate some 'trigger' into 'trigger_up'.
2017-10-02[FIX] mail: 'chatter app icons', restore design prior to 7a91d87stefanorigano
This commit will restore the chatter App icon design defined for v11 and accidentally removed on 7a91d87. Apps icons should NOT have a circular shape in order to keep branding consistency.
2017-10-02[FIX] mail: do not translate channel_iconsMartin Trigaux
2017-09-15[IMP] im_livechat, mail: Discuss UI in mobileAaron Bohy
- Extract mobile specific code for the client action to a specific file - Massive clean of less rules - Unify channels preview of the systray dropdown and the mobile UI of Discuss - Ensure to only load the last message of each channel in mobile, as this is not used in desktop (unless the user opens the systray menu) - Make livechat available in Discuss mobile UI
2017-09-15[IMP] mail: improve Discuss UI for mobile devicesDharmang Soni
- Brand new UI for Discuss client action (with tabs for Inbox, chats, channels...) - In mobile, conversations always open in Chat Windows - Chat window UI improved (both mobile and desktop) - Channels preview (used in the systray menu, and now in the mobile UI of Discuss) improved - Other minor less tweaks
2017-09-05[REF] mail: introduce new chatter/discuss designstefanorigano
- Improve overall design - Better use of UI colours - Replace planned activities icon - Vertically align kanban icons - Remove the 'bell shtcut' and followers caret - Use a mixin to style the chatter (inline, not inline, compact)
2017-08-18[FIX] mail, web: use 'o_input' class on kanban and discuss elementsqsm-odoo
Since the new views, the 'o_input' class has to be set explicitely on <input/>, <select/> and <textarea/> elements to have the proper styling.
2017-04-21[IMP] mail: move Discuss search on top of channelsAslam Shaikh
Indeed when having a lot of available channels searchbox is displayed quite low in the screen. This is annoying. This commit improves that behavior by putting the searchbox above channels.
2017-04-21[IMP] mail: hide 'mark all read' button in inbox when small deviceNeha Patel
Zizisse someutch uzabiliti.
2017-02-21[REM] mail: remove auto read in channelsThibault Delavallée
Currently using channels and inbox notifications is impossible because browsing a channel marks all related notifications as done. If an user has a lot of pending notifications, he cannot go on a channel linked to documents he is working on. Indeed in that case he looses all notifications. Auto-read of notifications is therefore removed. The only way of managing notifications when working by inbox is either in the inbox menu or either on documents, as reading a document marks related notification as done.
2016-12-30[IMP] mail: hide Unsubscribe button in channels using group-based subscriptionThibault Delavallée
Group-based channels automatically add people belonging to user groups to the channel. If a member leaves the channel he will be automatically added back by the channel automatic subscription. This generates unnecessary changes and messages in the channel. We now prevent people from leaving group-based channels. All group members have to be channel members. Unsubscribe buttons are therefore removed for those channels.
2016-06-01[IMP] mail: 'Mark all read' button is not a primary actionMansi Gandhi
In discuss, mark all read is green. It shouldn't because it is not the primary action.
2016-04-08[IMP] mail: Add counter in starredJigar Patel
2016-02-12[IMP] mail: remove 'Send Mail' button in DiscussAaron Bohy
as it was more confusing than useful.
2016-02-10[MERGE] forward port of branch saas-7 up to cab5c48Christophe Simonis
2016-02-08[FIX] mail: hide chat windows in discussAaron Bohy
Thus also remove the 'Detach' button in Discuss's control panel as we can now directly detach channels with the messaging menu. Also removed unused handler on 'messages_read' since rev. 30c26d7.
2016-02-03[FIX] mail: users can now reply directly in documents from channelsGéry Debongnie
A missing feature in discuss was the possibility to directly reply to a message from a channel without opening the document. This commit add that feature. Now, there is a small 'reply' icon in channels (including inbox/starred) if the message comes from another document. This icon opens an extended composer, which will post the message in the document chatter.
2016-02-02[MERGE] forward port of branch saas-7 up to e765569Christophe Simonis
2016-01-29[FIX] mail: various UI fixes/improvementsAaron Bohy
- don't print chat windows - add missing 'width: 100%' on composer and Discuss sidebar inputs (required for community edition) - center the Discuss sidebar inputs - Discuss sidebar items layout: one line, text ellipsis if name is too long - hide chatter in 'create' mode (messages wrote in the chatter need a res_model and a res_id, the latter is not yet existing if we are in 'create' mode) - revert 2d2dacc: print chatter by default (classname 'hidden-print' can be used for specific models for which we don't want the chatter to be printed) - thread: ensure the displayed message's date is in the past - re-render threads every minutes to update dates - don't squash messages in mass mailing channels
2016-01-27[MERGE] forward port of branch saas-7 up to 6f923cbChristophe Simonis
2016-01-25[FIX] mail: various ui fixesAaron Bohy
- limit partner search to 10 in new message's chat window to prevent overflow - prevent negative needaction counters (may occur in multi-tab, with needactions received during an inactivity period) - remove <pre> tag when computing messages' preview for the messaging dropdown as they break the layout and add 'overflow: hidden' on o_mail_channel_preview just in case - rename 'New message' button in Inbox into 'Send mail' as it was confusing, and adapt .pot file accordingly - focus on composer when opening a chat window - break lines in threads to avoid horizontal scrollbar (credit goes to qsm) - correctly apply rules on <p> in threads opw-667235
2016-01-14[IMP] mail: needaction/unread messages countersAaron Bohy
Some UI changes: - Unread messages in chat are now displayed as needactions in the Discuss's sidebar (badge with counter of unread messages, instead of simply bolding the channel name). - The counter displayed in the navbar is now the sum of needactions and total of unread messages in chat. - The counter displayed next to Inbox is still the needaction counter. For consistency between tabs/browsers/devices, the channel_seen info is now broadcasted, meaning that every tab/browser/device will be noticed. Also now correctly increment the unread counter of a channel if the received message is a needaction.
2016-01-14[IMP] mail: move 'New message' button from navbar to InboxAaron Bohy
2016-01-13[FIX] mail,web: : untranslated term in viewMartin Trigaux
_t(...) in xml qweb views do not work, not exported, not evaluted. No reason to use t-att-*, just using simple attribute is enough.
2016-01-12[MERGE] forward port of branch saas-7 up to 7fa6f73Christophe Simonis
2016-01-11[FIX] mail: prevent double scrollbar with notification barGéry Debongnie
when the bar asking for notification permission appears, it can cause two scrollbars to appear in the client action. This commit moves the notification bar inside the chat content, which solves the issue.
2016-01-05[MERGE] forward port of branch saas-7 up to 31ce19bChristophe Simonis
2015-12-29[FIX] im_livechat,mail: don't translate html data-type argumentAaron Bohy
as it is only there for a technical purpose (used in JS to bind event handlers)
2015-12-29[IMP] mail, bus: display native notifications if user awayGéry Debongnie
This commit introduces native notifications (if available) to the discuss application. Those notifications will only appear if the user grants the permission for that. A notification bar will appear in the discuss application if necessary to prompt the user. Also, it always is the master bus that will be the one sending the notification. For this change, it was necessary to be able to detect if the user has the focus on some other odoo tabs. For this reason, the bus was extended.
2015-12-28[FIX] im_livechat,mail: various ui fixes/improvementsAaron Bohy
im_livechat: - feedback message wording - livechat_channel form view typo mail: - channel form view: email_send field label wording and layout - notifications preview extended - client action mass mailing composer fine tuning - client action mass mailing channels tooltip - client action idle bullet color
2015-12-24[FIX] bus,mail: user presenceAaron Bohy
Commit 5d1b323. re-enabled the user presence updates and notifications. Unfortunately, it showed poor performance due to the high frequency of bus notifications triggered on our instance (~600k users). In this rev., we don't trigger notifications on presence changes anymore, but we rather send the presence of users we have a DM open with, at the end of each poll period. For performance reasons, we ensure not to do that more than once every 30 seconds. We also refined the detection of the 'away' status client side. 'Last presence' timestamps are stored in the local storage, and the current inactivity period is sent at each poll. Those presence timestamps now rely on browser activity detection (click, keypress... events) rather than on the focus on Odoo tabs. Finally, we removed the no more necessary cron introduced in 5d1b323.
2015-12-21[MERGE] Forward port of branch saas-7 up to c298cf3Martin Trigaux
2015-12-16[FIX] bus,mail: user presenceAaron Bohy
Before this rev., no notification was sent on the bus when the user presence changed. Thus, the bullets displayed in Discuss were never updated and stayed as they were on the initialilization of the chat_manager (on webclient launch). This rev. makes the bus.presence notifications work, and handles them client side. Moreover, the disconnections detection is now performed at each poll (with a maximum of 1 per minute), instead of randomly (1/100 chance) at each poll, as it scales better than the former solution. We also added a cron that performs this check every 5 minutes. It is needed to detect that the last connected user just disconnected (useful for visitors in the website, trying to talk with a livechat operator). Also, the 'away' status is now handled client side, as it makes more sense that way (being away at each poll, e.g. every 50seconds, during 10 minutes doesn't mean that we didn't come back between two polls). Finaly, in bus.js, CrossTabBus, we moved the code writing in/reading the local storage after the tab registration as this code depends on the fact that the tab is the master tab or not (and this is known only once the tab is registered). This rev. was necessary in stable because the livechat uses the user status to detect if there is an operator available, and this was often inaccurate. Moreover, it improves the user experience of the chat in the backend.
2015-12-10[MERGE] forward port of branch saas-7 up to 4022493Christophe Simonis
2015-12-07[IMP] mail: various improvementGéry Debongnie
- don't display subject for messages coming from chatter - better tooltip on the leave channel button in client action sidebar - don't squash nearby messages in chatter - reduce margin of date separator in chat windows
2015-11-30[IMP] mail: add kanban view of channels in discuss client actionGéry Debongnie
2015-11-23[FIX] mail: various UI improvementsAaron Bohy
- emoji are no more clickable in threads (they are only in the popover) - correctly update channel needaction counter - don't display 'New message' notification when the channel in detached - display in the ui channels that send emails and other channels - prevent notifications in mass mailing channels - increase bottom padding in client action thread
2015-11-17[FIX] mail: various UI improvementsAaron Bohy
- vertically center date and messages separators in threads - remove notifications in DM and livechat - order mail demo data so that messages appear ordered (they are ordered by id) - make sure that DM are pinned (they weren't on the receiver side) - don't display DM until a message has been sent - validate message body - undo snackbar fine tuning - fix Firefox scroll bug on sidebar rendering (the scroll position was often lost when the sidebar was re-rendered, seemingly because the width of the thread changed for a brief moment)
2015-11-12[IMP] mail: needactions and messages readAaron Bohy
Mainly concern the client action: - Display needactions per channels - For all channels except Inbox, clear needactions when opening the channel - Add snackbar to undo needactions clearing - Display a separator between read and unread messages in threads - Fix active channel (for Inbox and Starred) display in sidebar Various minor changes in chat_manager: - Code refactoring of bus notification handler - get_channel() don't fallback anymore on first channel
2015-11-09[FIX] mail: various ui improvementsGéry Debongnie
- display star/mark as read icon next to the message title instead on the far right - display unstar all message in channel starred - enable/disable the 'unstar all' and 'mark read' buttons depending on the number of messages in the corresponding channels - display star on the left sidebar in 'squashed messages' - tweaks to padding in client action - display hash in channel name in lighter tone - light opacity in sidebar - star icon in message sidebar is clickable + small less refactoring - message sidebar is aligned with the message now - messages are not squashed in inbox/starred
2015-11-04[IMP] mail: add mark all read feature to inboxGéry Debongnie
2015-11-03[IMP] mail: client action: control panel buttonsAaron Bohy
Extract all buttons from 'Action' dropdown
2015-11-03[IMP] mail: various ui improvementsGéry Debongnie
- display hash before text in create channel input - increase limit for message fetching from 20 to 100 - 'Show more messages' renamed ino 'Show older messages' - remove border top and bottom on selected messages
2015-10-22[IMP] mail: make the interface usable in mobile modeGéry Debongnie
The sidebar can be make visible by clicking on a button 'Channels' in the control panel.
2015-10-16[IMP] mail: client action: sidebar: hide livechat when emptyAaron Bohy
Channel types that disable the 'add a channel' feature like the livechat are now only rendered in the sidebar of the client action if there exists at least one channel of that type.
2015-10-16[IMP] mail,im_livechat: client action sidebar: 'unsubcribe' crossAaron Bohy
displayed for all channels
2015-10-16[IMP] mail: various small ui improvementsGéry Debongnie
including: - decrease vertical spacing between user name and text - decrease vertical spacing between messages - align avatar width with first line of message - bold channels more visible (color is actually white) - decrease online status icon size and change its color - hide the DM unpin icon, and show it only when hovering - the add channel icons are less white - offline user icon is now white - the unpin icon is now visible when hovering on user name - correctly display notifications in inbox
2015-10-06[IMP] mail: prepare livechat integrationAaron Bohy
- Extract sub-templates for client action's sidebar to ease the livechat integration - Handle livechat's channel_type and messages in chat manager - Make scrollBottom work in the frontend
2015-10-01[IMP] mail: increase needaction counter on new message notificationAaron Bohy
At least, when someone mentions a user in a message posted in a channel, a notification is sent by the server that a new message just arrived in that channel. Client side, we then decide whether or not this message should appear in the Inbox as well. In the positive case, we can increase the needaction counter. Problem remains for messages sent from chatters and by using the mail icon in the systray, as for those ones, no notification at all is sent by the server.
2015-10-01[REF] mail: second part of the chat refactoring (client side)Géry Debongnie
Joint work with aab