Commit Graph
4792 Commits
Author SHA1 Message Date
tsm-odoo b1627dd3a7 [IMP] im_livechat: small ui changes to embed livechat
This PR makes two small improvments on the embed livechat:
- Same top/bottom padding for the livechat button
- Remove rounded border at the bottom of the livechat button.
- Put the chat window border on the web patch instead of
the base chat window: patch should add features to the
base component, not remove it.

closes odoo/odoo#123684

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-06-05 16:17:02 +02:00
Alexandre Kühn f85a4366b0 [FIX] mail: away im status should be yellow in discuss sidebar
Follow-up of https://github.com/odoo/odoo/pull/123143

This is the same fix applied to discus sidebar, which used another
component that had the exact same issue.

This omission comes from code duplication as a consequence of
added technical debt during a recent refactoring of Discuss code.

We will avoid making this mistake again in master, by cleaning and
properly sharing code for all showing of im status in Discuss.

closes odoo/odoo#123526

X-original-commit: 576e3caa50f6e23525b49fc3790ab29647903ed1
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-06-05 14:49:57 +02:00
Alexandre Kühn cd4e453c01 [FIX] mail: fully show message action list in chat window
Before this commit, squashed messages in chat window had part of
the action list being cut by the message above.

This comes from `overflow-auto` on the message content, which was
defined to make content shrink, but had the unintended side-effect
of cutting the message action list for squashed messages in chat
window.

This commit fixes the solution by using `min-width: 0;` instead to
shrink flex item to lower of content width. This style-rule works
like setting `overflow-auto` without actually affecting overflow.

X-original-commit: 3e4b32361ade567d8d4fde37f0ed2542a3e2e215
Part-of: odoo/odoo#123526
2023-06-05 14:49:57 +02:00
Sébastien Theys 04bdf6dc5a [FIX] mail: restore public discuss display on small screen
All features are not working as intended (examples: side panels should
be full screen instead of on the right, missing user rename/avatar
change) but at least something is shown with this commit.

closes odoo/odoo#123030

X-original-commit: 35a87c21230613852e1536eb0d717ad3f5753b5e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-06-05 13:31:38 +02:00
zel-odoo ec57f8d7ff [IMP] mail: user searching by most recent chat
task-2622887

closes odoo/odoo#122486

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-06-05 13:31:23 +02:00
tsm-odoo 20c1772d35 [REF] im_livechat, *: refactor livechat
This PR refactors the public livechat in order for it to use
owl and to rely on the discuss components as much as possible.

task-2212347

closes odoo/odoo#122834

Related: odoo/enterprise#41636
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-06-02 22:29:06 +02:00
stefanorigano (SRI) 181a618da2 [FIX] mail: o-mail-Message and ChatWindow, adjust overall spacing
task-3338419

closes odoo/odoo#123356

Part-of: task-3326263
X-original-commit: b5c035a454780a1e5e997c683cec536efa780ec6
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-06-02 17:00:12 +02:00
Sébastien Theys afbf556a6a [REF] mail: move discuss core files to core folder
This prevents from having files floating in the root folder and making
the navigation between subfolders more complex.

Part of task-3265211

closes odoo/odoo#123344

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-06-02 14:30:14 +02:00
Pierre Masereel 934fb4ccea [FIX] mail: encode url for pdf viewer
When the route to your file contains more than one argument, the
arguments following the first one are not taken into account. The
arguments that are after '&' symbol are considered as a arguments of the
route 'viewer.html' and not of the 'file' route.

To avoid this issue, we are encod the file route in URI, as documented
in https://github.com/mozilla/pdf.js/wiki/Viewer-options

closes odoo/odoo#123355

X-original-commit: 86a4fcf4647c9c6006b69c35d76bf80d87204114
Related: odoo/enterprise#41815
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Masereel Pierre <pim@odoo.com>
2023-06-02 00:35:51 +02:00
Elisabeth Dickinson c84d388fac [FIX] *: switch image's .rounded-circle to `.rounded
*: gamification, hr, hr_contract, hr_expense, hr_holidays, hr_org_chart,
lunch, mail, web

Since the Milk refactoring, the backend uses only `.rounded` avatar
images. The `.rounded-circle` classes on images have been replaced by
`.rounded`.

task-3336569
part of task-3326263

closes odoo/odoo#123286

X-original-commit: b492049788353274fb32bb6fbe4d40e97a184a87
Related: odoo/enterprise#41798
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-06-01 17:55:25 +02:00
Alexandre Kühn 41a414de1b [FIX] mail: im status away should be yellow
Before this commit, im status icon for "away" was brown
in white mode.

This comes from MILK redesign change changes the color of
`text-warning`, from yellow to brown in white mode.

This commit fixes the issue by explicitly using yellow color,
regardless of theme. Dark mode kept the yellow color, so this
is unchanged.

closes odoo/odoo#123188

X-original-commit: d500608c01370ffb712ea45ce3f6b58e706ed760
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-06-01 11:44:10 +02:00
Alexandre Kühn 75dd284ab1 [FIX] mail: attachment button in chatter mobile should not wrap
Before this commit, the attachment button had icon and label on
different lines in mobile, which made the chatter topbar bigger
in height than it should.

closes odoo/odoo#123098

X-original-commit: 1afe20789fcf197ccc0a240d39d57d10e1f1454a
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-31 17:26:22 +02:00
Brieuc-brd 40dea12b02 [FIX] mail: remove unnecessary css in chatter
This commit removes the css that was creating two layout issues :
[1] When the chatter was rendered under the form view with the
`isInFormSheetBg` class, it added an unwanted background and border.

[2] When an attachment was uploaded and created a preview (eg. in
approvals), it created an unwanted border.

This commit fixes these issues.

task-3334866
Part of task-3326263

closes odoo/odoo#123095

X-original-commit: 5171b0bb2054f4755d0ba70b6820806c5253774d
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-31 17:26:14 +02:00
Alexandre Kühn f6f3b56461 [FIX] mail: emoji picker select category works in Firefox
Before this commit, when clicking on a category in emoji picker
when using Firefox, sometimes the previous category was selected.

This come from Firefox selecting the previous sticky section with
`getBoundingRect()` and `elementFromPoint` on grid top coordinate.

This commit fixes the issue by rounding to the integer, so that
the previous hidden and sticky section is not selected in Firefox.

closes odoo/odoo#123068

X-original-commit: ecae83ef9bd93a55e296023bc8c735f04d5e73f8
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-31 15:54:21 +02:00
Alexandre Kühn 953498de76 [FIX] mail: reintroduce notif + chat window on new user connection
A recent refactoring of discuss app unintentionally removed the
feature to automatically notify and open chat window with new user
when they log in for the 1st time.

closes odoo/odoo#123044

X-original-commit: 9132dacbf9b4b9d000b6d0be23938b46db1035a1
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-31 15:54:13 +02:00
Alexandre Kühn 85c84207cc [FIX] mail: no focus locking in composer on Safari
Before this commit, when a discuss composer is open on Safari,
the focus was locked inside the composer. Click away did not
resolve it.

This most certainly happens because changing `selectionStart`
and `selectionEnd` on an input in Safari puts the focus on the
input.

This commit fixes the issue by not changing the current selection
of input just before backing up.

Related to https://github.com/odoo/odoo/commit/4efb465f6adcf8e4f9c6d4daa0b6f90079832af5

closes odoo/odoo#123069

X-original-commit: 71c745ea81baeb02bf217f37bf9a4c64e435da05
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-31 14:23:45 +02:00
Alexandre Kühn 9c33452387 [FIX] mail: yellow bubble when there's a mention of self
closes odoo/odoo#123029

X-original-commit: c3f68f3a1d9b0245586bc7f6acece3b9a98bbf91
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-31 13:08:32 +02:00
Xavier Luyckx (xlu) ad692e77c0 [FIX] mail: chatter, planned activities badge spacing
Prior to this commit, in the "Chatter", when a user planned an activity,
a new section appeared at the top of the chatter displaying the planned
activities. Users had the ability to collapse this section. When the
section was collapsed, a title and a badge were displayed next to it,
indicating the number of activities.

However, since milk, it was observed that the badge was positioned too
close to the title, requiring some spacing adjustments. Additionally,
the badge has been updated to adhere to milk by adopting a rounded-pill
shape.

task-3339256
part of task-3326263

closes odoo/odoo#122945

X-original-commit: fab1f6242cc0d8984a5f36876dcbf4150c340d8d
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-31 11:45:01 +02:00
zel-odoo 15f1913225 [IMP] mail: visual update on avatar in member list
- rounded avatar in member list and invitation link
- improved color in selectable users in invitation link
- show "Add Users" action in DM chat window
- no border on panels in chat windows
- slight header style adjusments on emoji picker
- improved borders on chat window (shared between content and header)

closes odoo/odoo#122731

X-original-commit: 0f7f858514126a6898c01bb6a8389d0b066b8a3f
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-26 20:12:28 +02:00
Zelong Lin d6a2ecb93b [FIX] mail: done activity not updated
task-3331827

closes odoo/odoo#122633

X-original-commit: e27ce3ff448b05bbdf0785968a145f8aa952d1b5
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-26 16:16:02 +02:00
tsm-odoo d10aab060f [FIX] mail: incomplete url regex
The discuss app uses an url regex in order to find links and
transform them to html before posting a message.

Before this commit, some unsafe url characters  were missing
from this regex, resulting in incorrectly parsed url.

This commit adds missing characters in order to match RFC1738
[1].

However the dot, comma and semicolon character won't be matched
if they are at the end of the url since those can be used as
punctuation.

[1]: https://www.ietf.org/rfc/rfc1738.txt

closes odoo/odoo#122621

Forward-port-of: 0dc68dc, 9302a23
X-original-commit: 80da20092b42d927ce8b09eb3b45de7216695263
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
2023-05-26 14:28:46 +02:00
Thanh Dodeur c9a7338cd0 [FIX] mail: fix the text color of rtc elements with dark backgrounds
Since MILK, the `bg-*` classes which used to set an appropriate
text color have turned into `text-bg-*`. Some were missed which resulted
in elements with low contrast between the text and the background.

This commit fixes this issue.

closes odoo/odoo#122606

X-original-commit: 15a2192c4fed0be7a62dbb6e0ab9eaadaecc10ce
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
Signed-off-by: Thanh Dodeur (tso) <tso@odoo.com>
2023-05-26 11:40:56 +02:00
Thanh Dodeur 4e4e412b46 [FIX] mail: fix the filter video option in video calls
During the refactoring of discuss in 16.3, the setting to filter
the videos was wrongly observed on the settings instead of the channel.

This commit fixes this issue.

closes odoo/odoo#122605

X-original-commit: 00f55c6f925fa02cd292549498643f5415392a9f
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
Signed-off-by: Thanh Dodeur (tso) <tso@odoo.com>
2023-05-26 11:40:54 +02:00
Alexandre Kühn 42a2a6b74a [FIX] mail: correct responsive UI for attachment cards
Before this commit, attachment cards overflow in chat window
when attachment name is very long.

Text is properly flagged for truncate, but the container had neither
`overflow-auto` or `min-width: 0` to allow flex to shrink below
its content size.

Also add some horizontal spacing in attachment list so the
attachment cards do not have any contact with composer border.

closes odoo/odoo#122583

X-original-commit: 0d0ab2543d8c6a944fb091fa4ac30a19e1924e71
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-26 10:29:16 +02:00
Alexandre Kühn a06ffa954a [FIX] mail: improve emoji picker style
- (rounded) buttons in header
- header buttons keep grayscale filter regardless of active
- search bar is rounded
- section in emoji content show the icon and the name of category
- less dark color in dark mode

closes odoo/odoo#122565

X-original-commit: 2c53cb5b07f3f940cd27b242949ff2ff4bae7672
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-26 09:13:31 +02:00
Alexandre Kühn 123c9b3b47 [FIX] mail: show more options in chat window header
Before this commit, chat window header showed all actions,
which made it quite bloated. The name of conversation was
sometimes completely truncated by available actions.

This commit fixes the issue by showing at most 2 actions
immediately in the chat window header. When there are more
actions, it shows an expandable more menu.

As a consequence of this change, when a panel is open, it
was harder to see the button to close the active panel
(toggling off the button).
To solve this issue, when a panel is open in chat window,
there's a floating button in the top-right corner of content
to close the panel.

Task-3334793

closes odoo/odoo#122419

X-original-commit: eef4ef86e66709eef5b34ebce37cda3aab037bf9
Related: odoo/enterprise#41466
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-25 22:33:42 +02:00
Alexandre Kühn dc2efbb124 [FIX] mail: good showing of avatar in discuss invitation screen
Follow-up of MILK web client redesign.

Before this commit, the avatar and im status in invitation popover
in discuss app were not showing properly: avatar not rounded,
and im status mispositionned in top-right corner.

This commit fixes the issue by absolutely positioning im status
like all other uses of IM status on top of user avatar.

closes odoo/odoo#122459

X-original-commit: 6061d4e718a8e15a1448c236414e8326ba5e13c5
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-25 19:16:27 +02:00
Alexandre Kühn 54eeb14123 [FIX] mail: correct style for discuss call
closes odoo/odoo#122288

X-original-commit: 8c69f8d57b87bf4247ed5b97a24bb2d7c0221b8b
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-24 15:45:35 +02:00
Sébastien Theys 80de5298b2 [REF] mail: move message pin to discuss folder
Part of task-3265211

closes odoo/odoo#121418

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-23 18:01:40 +02:00
Sébastien Theys 08eb87a982 [FIX] mail: fix uncessary render in message (potential initie loop)
Overwriting array with new array triggers reactive. This leads to
uncessary renders, and potential infitine loop if both read and insert
methods are used inside rendering cycle.

Part-of: odoo/odoo#121418
2023-05-23 18:01:40 +02:00
Sébastien Theys 36c7fc5449 [REF] mail: clean typing service
Make the whole service reactive to avoid state forwarding issues.

Part-of: odoo/odoo#121418
2023-05-23 18:01:40 +02:00
Antoine Guenet 995bf2d883 [REF] web, mail: rename attachment_viewer to file_viewer
Since the attachement viewer was moved to core, this renames it to file
viewer to decouple it from the Attachment model/concept from the mail
module.

Part-of: odoo/odoo#119625
2023-05-23 16:31:21 +02:00
Antoine Guenet 8aec394f71 [MOV] mail, mrp, mail, web: move attachment_viewer from mail to web
The `mail` module's `attachment_viewer` is useful for more than `mail`
alone. In order to be able to use it in the `web_editor` module (which
doesn't depend on `mail`), we move it to the `web` module.

task-3109331

Part-of: odoo/odoo#119625
2023-05-23 16:31:21 +02:00
Alexandre Kühn 11b4355a7b [FIX] mail: several discuss improvements (following MILK redesign)
closes odoo/odoo#121948

Forward-port-of: #121683
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-22 16:30:12 +02:00
Xavier Luyckx (xlu) 4f37525de4 [FIX] mail: CategoryItem buttons, adapt for milk
With redesign of web client style, buttons by default are now rounded
, this commit removes the border-radius for the members list buttons in
discuss sidebar.

task-3329620
part of task-3326263

closes odoo/odoo#121904

X-original-commit: 3d2953e4129ac3267dc08eeebda5cdc3569e4b62
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-22 13:54:10 +02:00
Brieuc-brd fa60bac197 [IMP] *: app icons : add viewBox attribute
Prior to this commit, the SVG's viewBox attribute was missing, which
prevented svgs from being scaled.

This commit fixes this issue.

task-3326633
Part of task-3326263

X-original-commit: 30300c373ad1c63a6cf8b035cae0785a09c6933f
Part-of: odoo/odoo#121886
2023-05-22 13:54:08 +02:00
tsm-odoo ea3008cc49 [IMP] mail, im_livechat: use ui service instead of store.isSmall
Since [1], the ui service is reactive which removes the needs for
the `mail.store` service to maintain a reactive version of `isSmall`.

This PR replaces the use of `store.isSmall` as well as `env.isSmall`
by the ui service.

1: https://github.com/odoo/odoo/pull/121343

closes odoo/odoo#121590

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-22 11:42:58 +02:00
std-odoo 09095db293 [IMP] web, mail: open the chat window when clicking on an avatar property
Purpose
=======
Like standard avatar widget, we want to open the chat window of a user
when clicking on a many2many / many2one avatar property.

Task-3208449

Part-of: odoo/odoo#114200
2023-05-17 13:37:37 +02:00
Mathieu Duckerts-Antoine 5304d8fc64 [REF] *: remove legacy search models/components
There is no action that uses the search models/components available in
the legacy control panel. We remove those.

closes odoo/odoo#121433

Related: odoo/enterprise#41078
Signed-off-by: Géry Debongnie <ged@odoo.com>
2023-05-16 15:55:24 +02:00
Zelong Lin 2b6a3aad66 [IMP] mail: visual update on emojiPicker
closes odoo/odoo#117357

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-16 14:42:06 +02:00
Alexandre Kühn f9d1bffe5e [FIX] mail: consistent size of input in discuss header
Before this commit, input size of thread name was bigger than
the description one. This happens because the input is sized
according to the font size, and the thread name was bigger due
to `lead` classname.

This commit fixes the issue by reducing the padding of input of
thread name input, so that both input have the exact same height.

Part-of: odoo/odoo#117357
2023-05-16 14:42:06 +02:00
Alexandre Kühn 2ecfd54251 [FIX] mail: improve style from webclient redesign
1. show hover effect in discuss sidebar

With redesign of web client style, hover effect in discuss sidebar
was not longer working.

This comes from buttons hover effect no longer having precedence
to defined bg classnames, e.g. `bg-100`.

This commit fixes the issue by explicitly defining a style for the
background when hovering items in the discuss sidebar.

2. improved background color of discuss app in dark mode

The background color was too dark. This commit fixes the issue by
using `bg-view`, which is the preferred background to put
content in both white and dark theme.

3. Send button visual matches composer rounded border

Send button lacked its border. This commit fixes the issue by
including Send button inside the element that does the pretty rounded
border of composer. That way, the border of send button will not
longer be affected by change of button style.

Also make the send button active / inactive state more visible, by
using button link (green when active, muted when inactive).

Part-of: odoo/odoo#117357
2023-05-16 14:42:05 +02:00
Zelong Lin ff122ac7ae [IMP] mail: avatar edit in channel and group
1. Display avatar in top bar next to channel name and description.
2. Edit icon appears on hover.
3. Clicking on the Edit icon opens file browser to upload a new avatar.
4. Certain file types are allowed.
5. Avatar can only be changed for group chat by any member of the channel.
6. For channel it can be done with admin rights.
7. Disable uploading text from file uploader in this case.

Also show avatar of channel/chat conversation in chat window.
Author avatar in message list no longer shown im status.
Chat window header color matches new systray color.

task-2684679

[FIX] mail: make chat window header match systray color

Part-of: odoo/odoo#117357
2023-05-16 14:42:05 +02:00
Alexandre Kühn d7d7f84ff2 [FIX] mail: make <hr/> visible
Before this commit, the <hr/> in Discuss and Chatter
were not visible.

These <hr/> had no height but had a border. The border showed the
separator.

With the redesign of web client, <hr/> now have opacity of 25%.
This combined with borders being lighter made these separators
barely visible.

This commit removes border on these <hr>, which makes them use
their default visual, which is the same as a border.

closes odoo/odoo#121378

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-15 12:56:17 +02:00
Sébastien Theys bb627ae9de [FIX] mail: allow guest to delete attachments
closes odoo/odoo#121256

Related: odoo/enterprise#41025
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-15 12:56:09 +02:00
Sébastien Theys c6b86893f2 [REF] mail: move channel attachment url to discuss folder
Part-of: odoo/odoo#121256
2023-05-15 12:56:09 +02:00
Sébastien Theys f9611105e6 [REF] mail: clean attachment url
Part-of: odoo/odoo#121256
2023-05-15 12:56:09 +02:00
Sébastien Theys b1660a0b5c [FIX] mail: fix link of link preview image url
Part-of: odoo/odoo#121256
2023-05-15 12:56:08 +02:00
Sébastien Theys d6558cdcbe [IMP] mail: remove unused channelId on Persona
Part-of: odoo/odoo#121256
2023-05-15 12:56:08 +02:00
Xavier Luyckx (xlu) 3132763e95 [FIX] mail: channel invitation missing gap
Previous to this commit, in discuss, when a user wanted to invite people
and select users, the 'selected users' tags were missing a gap between
them. 

This commit adds a gap between them (adapted for milk).

task-3326399
part of task-3326263

closes odoo/odoo#121361

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-15 11:41:51 +02:00