feat(integration): show out-of-office message in 1-1 conversation#10902
feat(integration): show out-of-office message in 1-1 conversation#10902
Conversation
612063a to
6e94192
Compare
|
@nextcloud/designers should we shrink the width to match the quote component? |
DorraJaouad
left a comment
There was a problem hiding this comment.
I didn't mean to approve 🙈
|
Looks really nice when the width is adjusted! :) 2 small questions/feedback:
|
Was like this since the beginning: #4584, but I can't see the reasons to align the widths.
Also agreed, as we don't have to align it with messages list anymore. |
6e94192 to
bd9d73d
Compare
|
@nimishavijay the avatar is there because there is a message from the person just below (See the first screenshot). This whole message should be expanded by default. To make this clearer when it's collapsed, we could use a layout similar to the NcListItem component. In the first line we could have the warning, and in the second line a preview of the message. About the with of both component. Could we create a separate issue and see before and after screenshots? I think I tried that back then and it looked worse. |
bd9d73d to
6da90ad
Compare
6da90ad to
94d5772
Compare
| if (!conversation?.status || conversation.status !== 'dnd' | ||
| || !this.isOneToOneConversation || this.chatExtrasStore.absence[this.token] !== undefined) { |
There was a problem hiding this comment.
| if (!conversation?.status || conversation.status !== 'dnd' | |
| || !this.isOneToOneConversation || this.chatExtrasStore.absence[this.token] !== undefined) { | |
| if (!conversation?.status || conversation.status !== 'dnd' | |
| || !this.isOneToOneConversation ) { |
It is already being checked inside the store
Also, conversation.status !== 'dnd' is also questionable because the status update wasn't updated in some tests while the OoO is there. I am not sure how it is synchronized.
There was a problem hiding this comment.
I'm checking here specifically for undefined. If user has standard DnD status, but without "Out of office" it will send a request to server each time you open the tab, and receive null. With that line, if stored value has null, request will be sent only once.
Once status message_id will be exposed (should be 'vacationing'), we can switch to checking it, and refactor this code
cc @nickvergessen should i raise an issue to track it? server or spreed repo?
There was a problem hiding this comment.
server, but it's unlikely to happen at this point
|
|
||
| <!-- Input area --> | ||
| <div class="new-message-form__input"> | ||
| <NewMessageAbsenceInfo v-if="userAbsence" |
There was a problem hiding this comment.
I think we should also check the dates. For example, I can set my OoO proactively from tomorrow and I am still working today. AbsenceInfo should be shown starting from tomorrow and not from now.
There was a problem hiding this comment.
Then OoO should be set up from tommorow by BG job, I don't think it has to be double-checked on Talk side
There was a problem hiding this comment.
I wasn't sure if it should be from the server side to only render the active OoO or any OoO that exists because dates were given in the response.
Should we use them to show when they will be back for example ? like on Webex
There was a problem hiding this comment.
In the next iteration maybe
| @import '../../assets/variables'; | ||
|
|
||
| .absence-reminder { | ||
| margin: 0 calc(var(--default-clickable-area) / 2) 12px; |
There was a problem hiding this comment.
Should be margin 16px I guess
There was a problem hiding this comment.
but pill border-radius is already calc(var(--default-clickable-area) / 2). So, technically, 22px is correct (but maybe visually 16px would be better)
|
Btw the short status message is not used anywhere. I guess it should be the text on the actual user status (so upstream issue) or would it appear in the notecard? |
It is not shown anymore in the notecard, only long description is used but we can use the short description as a fallback if long description is empty. |
marcoambrosini
left a comment
There was a problem hiding this comment.
Full width looks good to me, so no strong opinions from my side on that
|
Time to fixup then |
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
ab8b77e to
54655bf
Compare
|
/backport to stable28 |












☑️ Resolves
chatExtras(for further migration of quoteReplyStore, as both related to the input component)🖌️ UI Checklist
🖼️ Screenshots / Screencasts
Main chat:
Screencast.from.29.11.2023.11.35.50.webm
Sidebar chat:

🚧 Tasks
🏁 Checklist