Page MenuHomePhabricator

MediaWikiChat should use a <textarea> element instead of an <input> for writing messages
Open, Needs TriagePublic

Description

It's impossible to read your whole message when it's long within an <input> - A <textarea> would make more sense.

Event Timeline

SamanthaNguyen moved this task from Backlog to Feedback / Suggestions on the MediaWikiChat board.
SamanthaNguyen moved this task from Backlog to MediaWikiChat on the Brickimedia board.

would allow for newlines without having to use <br /> as well which is good

Change 332005 had a related patch set uploaded (by SamanthaNguyen):
v2.20.2 - use textarea instead of input for messages

https://gerrit.wikimedia.org/r/332005

[17:39:21] <+georgebarnick> so what happens in the logs when someone sends a message with a newline? because logs don't have newlines
[17:43:40] <SamanthaNguyen> good question
[17:45:51] <wikibugs> (PS3) SamanthaNguyen: [WIP] v2.20.2 - use textarea instead of input for messages [extensions/MediaWikiChat] - https://gerrit.wikimedia.org/r/332005 (https://phabricator.wikimedia.org/T145980)
[17:47:41] <SamanthaNguyen> tested the patch out on my localhost, so even though there's a textarea, it doesn't currently allow you to type on separate lines
[17:49:08] <wikibugs> (PS4) SamanthaNguyen: [WIP] v2.20.2 - use textarea instead of input for messages [extensions/MediaWikiChat] - https://gerrit.wikimedia.org/r/332005 (https://phabricator.wikimedia.org/T145980)
[17:50:24] <SamanthaNguyen> It could be written so that when the message is sent, it's logged as separate log actions, just in a row
[18:02:07] <SamanthaNguyen> http://stackoverflow.com/questions/10950538/how-to-detect-line-breaks-in-a-text-area-input
[18:21:19] <+georgebarnick> doesn't sound like a good idea because they're one action, they shouldn't be logged separately... that could be misused easily

thoughts anyone?

Change 332005 abandoned by SamanthaNguyen:
[WIP] v2.20.2 - use textarea instead of input for messages

https://gerrit.wikimedia.org/r/332005

SamanthaNguyen removed SamanthaNguyen as the assignee of this task.Jun 30 2018, 8:49 PM
SamanthaNguyen removed a project: Patch-For-Review.
SamanthaNguyen removed a subscriber: SamanthaNguyen.