-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
server, but it's unlikely to happen at this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -54,6 +54,10 @@ | |||
|
|||
<!-- Input area --> | |||
<div class="new-message-form__input"> | |||
<NewMessageAbsenceInfo v-if="userAbsence" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be margin 16px I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full width looks good to me, so no strong opinions from my side on that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is ready 🦅
Time to fixup then |
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
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