-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
UX improvements change status dialog #23305
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
Conversation
|
Regarding compiled assets, I had to guess by looking at other PRs. |
| {{ $t('user_status', 'Clear status message') }} | ||
| </button> | ||
| <button class="status-buttons__primary primary" @click="saveStatus"> | ||
| <button class="status-buttons__primary primary" :disabled="isSavingStatus || !message" @click="saveStatus"> |
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.
| <button class="status-buttons__primary primary" :disabled="isSavingStatus || !message" @click="saveStatus"> | |
| <button class="status-buttons__primary primary" :disabled="isSavingStatus" @click="saveStatus"> |
Setting to empty clears the status just fine, might be less confusing
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 didn't in my instance and caused a server error as it was sending a status icon + empty message.
I personally wanted to set a status icon without message at that time, this is how I found the issue. Another user might think likewise. So if we fix it to clear the status on empty, the icon would not be set and would not match the user's expectation here.
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.
55f5522 to
73cdb88
Compare
|
I've now removed the code related to empty messages. The disabled attribute is still there but only for disabling the button when saving as we do in other places. Adjusted and squashed. |
|
I've raised #23411 for the empty status issue |
73cdb88 to
ead50ec
Compare
|
I did rebuild and check in the assets. Strange. After rerunning |
72740c8 to
997ce7c
Compare
|
ouch, pushed on wrong branch... fixing... |
|
okay, I decided to push the empty message fix here as well to avoid needless future conflicts. Fixes #23411 |
jancborchardt
left a comment
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.
Good stuff design-wise, great work @PVince81! :)
|
there was a weird unrelated error: build restarted |
|
@nickvergessen CI green, can you review teh codez ? |
|
@PVince81 could you rebase so we can get this in? |
When selecting an emoji but not specifying a message, the internal message value was null which caused a server validation error on sending. This fixes the SetStatusModal to always work with an empty string upfront, as this is the value the field would have if edited and cleared manually. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Focus on the custom message field after picking an emoji. Hitting the enter key while in the custom message field now triggers saving. Disable save buttons while saving is in progress. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2d6a50b to
08813f5
Compare
|
Rebased and rebuilt the module in question, as it was the only conflict. |
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 34374: failurenodbShow full logacceptance-app-files-sharing
Show full log |

Description
Focus on the custom message field after picking an emoji.
Enter key in the custom message field saves the status.
Disable the save button when no custom message is entered (would resultin a server error).
Disable save buttons while saving is in progress.
Fixes setting an empty message for clearing when not touching the field (#23411)
Motivation
~~
This was mostly because I noticed that entering no custom message triggered an error. I didn't manage to make the server accept empty messages (and even then who knows what side effects...), so I went with prevent empty status message.
And as a bonus added the enter key + autofocus.
~~
Issues
Partial fix for #23276 by introducing "save by enter key"
Fixes #23411