-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Changed delete conversation button tooltip #5477
Changed delete conversation button tooltip #5477
Conversation
Please only edit the English locale, see https://wiki.diasporafoundation.org/Contribute_translations |
I agree, that's a far better word for this function. Although perhaps 'Mute conversation' would be more accurate, because (as I understand it) you are still included as part of the conversation from the other participants' point of view, it's just that you won't see any future replies. I'm happy with 'Leave conversation', although I'm not sure it's completely accurate for the current behaviour. |
I use 'Leave conversation' because once you click the button, conversation is no longer shown in your conversation list. |
52f0f83
to
e1cb98d
Compare
Done. |
'leave conversation' sounds to me like you can still see the old messages. (the same applies to 'Mute conversation') |
OK. Please, what tooltip do you suggest? My big concern is about trust: when I read 'delete conversation', I expect that conversation to be deleted from server when all participants agree to delete it. If it remains, then 'delete conversation' is a lie. |
How about ignore? |
Better :-) |
e1cb98d
to
e93a58f
Compare
@margori I completely agree that the current tooltip is wrong and that we should change it. I just thought that 'leave conversation' could confuse users who don't expect that the button would remove the conversation from the front end. How about 'hide' or 'hide and ignore' / 'hide and mute'? |
'Ignore' is neat; however I think I prefer 'hide and mute' as it spells out more explicitly what will happen: the current conversation will be hidden from your view and future posts will be muted from you. This makes really clear to users what this button does. |
e93a58f
to
0849459
Compare
What about this?
How this change should be tested? |
c78fc6e
to
81327c3
Compare
@margori Sounds good. I think in that case you should also change https://github.com/diaspora/diaspora/blob/develop/app/controllers/conversation_visibilities_controller.rb#L13 so you will get different flash messages depending on the number of remaining participants. (>0: successfully hidden, else: successfully deleted) |
Since Pull request #5478 was merge, delete conversation button has two effects over the conversation. That's why my previous comment. :) @svbergerem Good idea! I'll use it. |
Yes, I like this. Thanks to #5478 (if I understand it correctly), that is a good solution. |
5bfa081
to
ea8e7cd
Compare
Implemented + Test. What do you think? |
@@ -33,5 +33,18 @@ | |||
delete :destroy, :conversation_id => @conversation.id | |||
}.not_to change(ConversationVisibility, :count) | |||
end | |||
|
|||
it 'return "hidden"' do |
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 'returns "hidden"' do
(the 's' is missing :-P)
ea8e7cd
to
c34979d
Compare
's' added. :-P |
if @vis.destroy | ||
flash[:notice] = I18n.t('conversations.destroy.success') | ||
if (participants == 1) |
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.
please remove the round brackets
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.
C# syntax... my bad :P
c34979d
to
27a1886
Compare
Changed delete conversation button tooltip
Thank you! |
Thanks! |
You're very welcome! |
Delete conversation button currently says 'delete and block conversation'.
When I click that button I expect to delete or block that conversation from DB so that neither me or any participant can see it or reply.
Currently, signed in user is deleted from visibility table, so he is not longer part of the conversation.
"Leave conversation" is an appropriate text to describe button behavior.
Some localization files are update as well.