Revert "UX: Added tooltips to topic admin menu (#7146)"

This reverts commit d1c4981f65.

Per discussion with @coding-horror it was decided this change is to
far reaching.

Instead we will make smaller strategic changes to tooltips that add
value.
This commit is contained in:
Sam Saffron 2019-03-18 11:50:18 +11:00
parent daf5a268a7
commit c47b0a8bee
2 changed files with 13 additions and 54 deletions

View File

@ -16,7 +16,6 @@ createWidget("admin-menu-button", {
action: attrs.action, action: attrs.action,
icon: attrs.icon, icon: attrs.icon,
label: attrs.fullLabel || `topic.${attrs.label}`, label: attrs.fullLabel || `topic.${attrs.label}`,
title: attrs.title,
secondaryAction: "hideAdminMenu" secondaryAction: "hideAdminMenu"
}) })
); );
@ -137,8 +136,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "toggleMultiSelect", action: "toggleMultiSelect",
icon: "tasks", icon: "tasks",
label: "actions.multi_select", label: "actions.multi_select"
title: "topic.actions.multi_select_tooltip"
}); });
const topic = attrs.topic; const topic = attrs.topic;
@ -150,8 +148,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-danger", buttonClass: "btn-danger",
action: "deleteTopic", action: "deleteTopic",
icon: "far-trash-alt", icon: "far-trash-alt",
label: "actions.delete", label: "actions.delete"
title: "topic.actions.delete_tooltip"
}); });
} }
@ -161,8 +158,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "recoverTopic", action: "recoverTopic",
icon: "undo", icon: "undo",
label: "actions.recover", label: "actions.recover"
title: "topic.actions.recover_tooltip"
}); });
} }
@ -172,8 +168,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "toggleClosed", action: "toggleClosed",
icon: "unlock", icon: "unlock",
label: "actions.open", label: "actions.open"
title: "topic.actions.open_tooltip"
}); });
} else { } else {
buttons.push({ buttons.push({
@ -181,8 +176,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "toggleClosed", action: "toggleClosed",
icon: "lock", icon: "lock",
label: "actions.close", label: "actions.close"
title: "topic.actions.close_tooltip"
}); });
} }
@ -191,8 +185,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "showTopicStatusUpdate", action: "showTopicStatusUpdate",
icon: "far-clock", icon: "far-clock",
label: "actions.timed_update", label: "actions.timed_update"
title: "topic.actions.timed_update_tooltip"
}); });
const isPrivateMessage = topic.get("isPrivateMessage"); const isPrivateMessage = topic.get("isPrivateMessage");
@ -204,10 +197,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "showFeatureTopic", action: "showFeatureTopic",
icon: "thumbtack", icon: "thumbtack",
label: featured ? "actions.unpin" : "actions.pin", label: featured ? "actions.unpin" : "actions.pin"
title: featured
? "topic.actions.unpin_tooltip"
: "topic.actions.pin_tooltip"
}); });
} }
@ -217,8 +207,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "showChangeTimestamp", action: "showChangeTimestamp",
icon: "calendar-alt", icon: "calendar-alt",
label: "change_timestamp.title", label: "change_timestamp.title"
title: "topic.change_timestamp.tooltip"
}); });
} }
@ -227,8 +216,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "resetBumpDate", action: "resetBumpDate",
icon: "anchor", icon: "anchor",
label: "actions.reset_bump_date", label: "actions.reset_bump_date"
title: "topic.actions.reset_bump_date_tooltip"
}); });
if (!isPrivateMessage) { if (!isPrivateMessage) {
@ -237,10 +225,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "toggleArchived", action: "toggleArchived",
icon: "folder", icon: "folder",
label: topic.get("archived") ? "actions.unarchive" : "actions.archive", label: topic.get("archived") ? "actions.unarchive" : "actions.archive"
title: topic.get("archived")
? "topic.actions.unarchive_tooltip"
: "topic.actions.archive_tooltip"
}); });
} }
@ -250,10 +235,7 @@ export default createWidget("topic-admin-menu", {
buttonClass: "btn-default", buttonClass: "btn-default",
action: "toggleVisibility", action: "toggleVisibility",
icon: visible ? "far-eye-slash" : "far-eye", icon: visible ? "far-eye-slash" : "far-eye",
label: visible ? "actions.invisible" : "actions.visible", label: visible ? "actions.invisible" : "actions.visible"
title: visible
? "topic.actions.invisible_tooltip"
: "topic.actions.visible_tooltip"
}); });
if (details.get("can_convert_topic")) { if (details.get("can_convert_topic")) {
@ -264,12 +246,7 @@ export default createWidget("topic-admin-menu", {
? "convertToPublicTopic" ? "convertToPublicTopic"
: "convertToPrivateMessage", : "convertToPrivateMessage",
icon: isPrivateMessage ? "comment" : "envelope", icon: isPrivateMessage ? "comment" : "envelope",
label: isPrivateMessage label: isPrivateMessage ? "actions.make_public" : "actions.make_private"
? "actions.make_public"
: "actions.make_private",
title: isPrivateMessage
? "topic.actions.make_public_tooltip"
: "topic.actions.make_private_tooltip"
}); });
} }
@ -278,8 +255,7 @@ export default createWidget("topic-admin-menu", {
action: "showModerationHistory", action: "showModerationHistory",
buttonClass: "btn-default", buttonClass: "btn-default",
icon: "list", icon: "list",
fullLabel: "admin.flags.moderation_history", fullLabel: "admin.flags.moderation_history"
title: "admin.flags.moderation_history_tooltip"
}); });
} }

View File

@ -1932,36 +1932,21 @@ en:
actions: actions:
recover: "Un-Delete Topic" recover: "Un-Delete Topic"
recover_tooltip: "Restores the topic."
delete: "Delete Topic" delete: "Delete Topic"
delete_tooltip: "Marks the topic as deleted."
open: "Open Topic" open: "Open Topic"
open_tooltip: "Marks the topic as open and allows new replies."
close: "Close Topic" close: "Close Topic"
close_tooltip: "Marks the topic as closed and prevents new replies."
multi_select: "Select Posts…" multi_select: "Select Posts…"
multi_select_tooltip: "Toggles multiselect mode in which multiple posts can be selected."
timed_update: "Set Topic Timer..." timed_update: "Set Topic Timer..."
timed_update_tooltip: "Opens a new window in which a timer for different actions can be set."
pin: "Pin Topic…" pin: "Pin Topic…"
pin_tooltip: "Opens a window in which the topic can be featured in different ways."
unpin: "Un-Pin Topic…" unpin: "Un-Pin Topic…"
unpin_tooltip: "Unpins the topic and it will no longer be featured."
unarchive: "Unarchive Topic" unarchive: "Unarchive Topic"
unarchive_tooltip: "Unfreezes the topic and allows interacting with it."
archive: "Archive Topic" archive: "Archive Topic"
archive_tooltip: "Freezes the topic and prevents interacting with it."
invisible: "Make Unlisted" invisible: "Make Unlisted"
invisible_tooltip: "Prevents the inclusion of the topic in lists and digest emails."
visible: "Make Listed" visible: "Make Listed"
visible_tooltip: "Marks the topic as visible and includes the topic in lists and digest emails."
reset_read: "Reset Read Data" reset_read: "Reset Read Data"
make_public: "Make Public Topic" make_public: "Make Public Topic"
make_public_tooltip: "Converts to public topic and makes it visible for other users."
make_private: "Make Personal Message" make_private: "Make Personal Message"
make_private_tooltip: "Converts to personal message and makes it invisible for other users."
reset_bump_date: "Reset Bump Date" reset_bump_date: "Reset Bump Date"
reset_bump_date_tooltip: "Puts the topic back into chronological order according to when it was originally created."
feature: feature:
pin: "Pin Topic" pin: "Pin Topic"
@ -2119,7 +2104,6 @@ en:
change_timestamp: change_timestamp:
title: "Change Timestamp..." title: "Change Timestamp..."
tooltip: "Opens a window in which the timestamp can be changed."
action: "change timestamp" action: "change timestamp"
invalid_timestamp: "Timestamp cannot be in the future." invalid_timestamp: "Timestamp cannot be in the future."
error: "There was an error changing the timestamp of the topic." error: "There was an error changing the timestamp of the topic."
@ -2996,7 +2980,6 @@ en:
old_posts: "Old Flagged Posts" old_posts: "Old Flagged Posts"
topics: "Flagged Topics" topics: "Flagged Topics"
moderation_history: "Moderation History" moderation_history: "Moderation History"
moderation_history_tooltip: "Shows the moderation history."
agree: "Agree" agree: "Agree"
agree_title: "Confirm this flag as valid and correct" agree_title: "Confirm this flag as valid and correct"