Closed
Bug 1008127
Opened 11 years ago
Closed 10 years ago
[Messages][Refresh] Subject handling in the Composer
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(tracking-b2g:backlog, b2g-v2.0 fixed, b2g-v2.1 fixed)
People
(Reporter: noemi, Assigned: pivanov)
References
Details
(Whiteboard: [sprint2 p=3][sprint3 p=2][not-part-of-initial-sprint])
Attachments
(2 files, 3 obsolete files)
(deleted),
text/x-github-pull-request
|
steveck
:
review+
julienw
:
feedback+
azasypkin
:
feedback+
bajaj
:
approval-gaia-v2.0+
|
Details |
(deleted),
image/png
|
vicky
:
ui-review+
|
Details |
The goal of this bug is to handle subject in the composer as described in the visual spec:
https://bug963018.bugzilla.mozilla.org/attachment.cgi?id=8417465
covering the following scenarios:
*long text + subject empty
*long text + subject filled up
Reporter | ||
Updated•11 years ago
|
Target Milestone: --- → 2.0 S2 (23may)
Updated•11 years ago
|
blocking-b2g: --- → backlog
feature-b2g: --- → 2.0
Updated•11 years ago
|
Assignee: joan.leon → pivanov
Assignee | ||
Comment 1•11 years ago
|
||
Hey all,
I made a patch who cover almost all of the spec with some small things that need to be discused.
First of all about the spec:
No Subject (MMS)
================================================================================
1. When we have one line message counter is not visible for the user (right?)
2. When we have two or more lines of the message the counter is visible and is aligned with the top of the message (if we follow the spec when we have 2 lines the counter goes under the `Send` button. That's why i move the counter a bit up.
With Subject (SMS)
================================================================================
1. Here we have the 'MMS' instead of 'Counter' and the MMS text is aligned with the bottom of the Subject with bottom border with color #9ef2e7
Noemí, can you confirm this?
Julien :),
if Noemí is OK with this, I think that we need only few things to be done in to JS logic:
================================================================================
1. Maybe we need to change data-counter on #messages-input only when we don't have subject
2. Maybe we need to remove the code who add/remove/toggle the `has-counter` class of #messages-send-button element
I think that's all.
Hope this help all of us :)
Attachment #8427759 -
Flags: feedback?(felash)
Flags: needinfo?(noef)
Updated•11 years ago
|
Comment 2•11 years ago
|
||
Historically, we display the counter when we have less than 20 characters left in the first message section (it means that we have 20 characters left before sending 2 SMS).
I think we want to keep it that way, but Omega will confirm.
Flags: needinfo?(ofeng)
Comment 4•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #2)
> Historically, we display the counter when we have less than 20 characters
> left in the first message section (it means that we have 20 characters left
> before sending 2 SMS).
>
> I think we want to keep it that way, but Omega will confirm.
Correct, we want to keep it that way.
BTW, I also found two issue in the patch.
1) The counter seems to stay 82/1 always and never change.
2) The counter can be scroll outside of the screen.
Please also fix these issues, thanks.
Flags: needinfo?(ofeng)
Flags: needinfo?(jelee)
Comment 5•11 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
I haven't tried (this needs a rebase now that bug 963018 landed) but the general code looks right.
Attachment #8427759 -
Flags: feedback?(felash) → feedback+
Comment 6•11 years ago
|
||
Pavel, please ask a review from :steveck if you need a review before the end of the week.
Assignee | ||
Updated•11 years ago
|
Attachment #8427759 -
Flags: review?(schung)
Comment 7•11 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
I don't think it's ready for review yet.
Pavel, I think you need someone to work with you to finish this, especially on the JS side.
Oleg, can you do the needed JS changes here? See comment 1 for more information and don't hesitate to ask me on IRC tomorrow if necessary.
Attachment #8427759 -
Flags: review?(schung)
Flags: needinfo?(azasypkin)
Comment 8•11 years ago
|
||
Vicky, Pavel has some questions for you in comment 1, can you please have a look? Thanks !
Flags: needinfo?(noef) → needinfo?(vpg)
Comment 9•11 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #1)
> Created attachment 8427759 [details]
> patch for Gaia/master
>
> Hey all,
> I made a patch who cover almost all of the spec with some small things that
> need to be discused.
>
> First of all about the spec:
>
>
> No Subject (MMS)
> =============================================================================
> ===
> 1. When we have one line message counter is not visible for the user (right?)
Right
> 2. When we have two or more lines of the message the counter is visible and
> is aligned with the top of the message (if we follow the spec when we have 2
> lines the counter goes under the `Send` button. That's why i move the
> counter a bit up.
>
> With Subject (SMS)
> =============================================================================
> ===
> 1. Here we have the 'MMS' instead of 'Counter' and the MMS text is aligned
> with the bottom of the Subject with bottom border with color #9ef2e7
>
> Noemí, can you confirm this?
>
This is correct. When you haven't started typing the subject, the line is shorter, and when the user starts typing it, the line grows reaching the full width and the MMS indicator appears above it. This is because I think is good to give the user a hint of why this message is turning into an MMS (because of the subject addition)
>
> Julien :),
> if Noemí is OK with this, I think that we need only few things to be done in
> to JS logic:
> =============================================================================
> ===
> 1. Maybe we need to change data-counter on #messages-input only when we
> don't have subject
> 2. Maybe we need to remove the code who add/remove/toggle the `has-counter`
> class of #messages-send-button element
>
> I think that's all.
> Hope this help all of us :)
Thanks!
Flags: needinfo?(vpg)
Assignee | ||
Comment 10•11 years ago
|
||
Thanks all,
we need JS help for this one for sure :) and if you need my help don't hesitate to ask me on IRC or email
Comment 11•11 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #10)
> Thanks all,
> we need JS help for this one for sure :) and if you need my help don't
> hesitate to ask me on IRC or email
Hey Pavel and Julien, don't worry I'm looking into it :)
Flags: needinfo?(azasypkin)
Comment 12•10 years ago
|
||
So, here is what I think we need from JS side. But we still need few things that I believe we can do with CSS:
Omega's suggestions:
1. Show counter only when <= 20 available characters left, so you can use 'has-counter' class as earlier;
2. The counter can be scrolled outside of the screen.
Victoria suggestion:
> When you haven't started typing the subject, the line is
> shorter, and when the user starts typing it, the line grows reaching the
> full width and the MMS indicator appears above it. This is because I think
> is good to give the user a hint of why this message is turning into an MMS
> (because of the subject addition)
Pavel, please let me know whether JS updates work for you and if so, I'll ask for code review.
Thanks
Flags: needinfo?(pivanov)
Assignee | ||
Comment 13•10 years ago
|
||
LGTM :)
BTW: I update my patch because of conflicts in sms.css
Flags: needinfo?(pivanov)
Assignee | ||
Comment 14•10 years ago
|
||
Hey Oleg,
as we chat on IRC I made the changes and I update my PR
The only one thing is that we need to add `has-counter` class on `<div class="message-complete">` when user start typing a message ... this will show the MMS/counter :) and also stretch the blue border of the subject
ping me when you add the JS part and I can f+ your PR
Thanks again :)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(azasypkin)
Comment 15•10 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #14)
> Hey Oleg,
> as we chat on IRC I made the changes and I update my PR
>
> The only one thing is that we need to add `has-counter` class on `<div
> class="message-complete">` when user start typing a message ... this will
> show the MMS/counter :) and also stretch the blue border of the subject
>
> ping me when you add the JS part and I can f+ your PR
>
> Thanks again :)
Hey Pavel,
Not sure that adding "has-counter" when user starts typing a message is the right thing. We add "has-counter" only for SMS and only when we have <= 20 chars left, so it can be used to show\hide available chars counter.
Regarding to the 'MMS' label - as it's shown for MMS only, "[data-message-type="mms"]" selector was used to detect that case previously. Initially we have "[data-message-type="sms"]", and change it to "[data-message-type="mms"]" when user converts message to mms. If we show subject field, but it's empty - it's still SMS, but once user enters something into subject field then type is changed to MMS. We show "MMS" label and extend bottom border (looks like it's just manipulating with subject's input margin-right?) when we have "[data-message-type="mms"]" on the parent container.
We already have all this in JS part, so looks like we need to adjust CSS only.
What do you think?
Flags: needinfo?(azasypkin) → needinfo?(pivanov)
Assignee | ||
Comment 16•10 years ago
|
||
Ok ... my PR is updated now ... can you update yours with adding `has-counter` on `#messages-subject-input` when use start typing the subject. and then we will ask Vicky for opinion because I saw few cases when we have `MMS` label over the blue border and under the blue border ... I think this is a mistake because otherwise we will need to change a lot of stuff there.
Flags: needinfo?(pivanov) → needinfo?(azasypkin)
Comment 17•10 years ago
|
||
Pavel, can you base your work here on the code of bug 1015867 ?
I change how the composer is layed out and I think this will change some of the things you do here.
Flags: needinfo?(pivanov)
Updated•10 years ago
|
Blocks: sms-sprint-3
Whiteboard: [p=3] → [sprint2 p=3][sprint3 p=2]
Target Milestone: 2.0 S3 (6june) → 2.0 S4 (20june)
Comment 19•10 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #16)
> Ok ... my PR is updated now ...
Hmmm, I still see that available chars counter can go off screen when you type long message, so you have to scroll the content to see how much characters left.
> can you update yours with adding `has-counter` on `#messages-subject-input` when use start typing the
> subject.
Sorry it's not clear, why do you need to ".has-counter" for #messages-subject-input? These two are unrelated. Can you just use "[data-message-type="mms"]" for this case, I mean when user starts typing subject message it's converted to mms anyway? At the same time I don't see that you use ".has-counter" to show\hide available chars counter.
> and then we will ask Vicky for opinion because I saw few cases when
> we have `MMS` label over the blue border and under the blue border ... I
> think this is a mistake because otherwise we will need to change a lot of
> stuff there.
I think it would be better to ask Vicky as soon as possible :)
Please, ping me on IRC if you need more details.
Thanks!
Flags: needinfo?(azasypkin) → needinfo?(pivanov)
Assignee | ||
Comment 20•10 years ago
|
||
Hey Vicky,
what happened when we have a long message? where the counter should be? Also I saw in the spec two cases the first one is when we have `MMS` over the blue border and the second one is when the `MMS` is under the border?
Flags: needinfo?(pivanov) → needinfo?(vpg)
Assignee | ||
Comment 21•10 years ago
|
||
I also update my PR based on Oleg's comment about `[data-message-type="mms"]` so we just need info from Vicky about my previews comment
Comment 22•10 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #21)
> I also update my PR based on Oleg's comment about
> `[data-message-type="mms"]` so we just need info from Vicky about my
> previews comment
Hey Pavel, looks like something went wrong when you were rebasing your last PR, sms.css in the PR contains a lot of changes that it shouldn't. Could you please check?
Thanks!
Flags: needinfo?(pivanov)
Comment 24•10 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #20)
> Hey Vicky,
>
> what happened when we have a long message? where the counter should be? Also
> I saw in the spec two cases the first one is when we have `MMS` over the
> blue border and the second one is when the `MMS` is under the border?
Hi Pavel,
MMS indicator should always be over that line. When there's a subject, there's an MMS indicator.
If there's no subject, the cpunter and MMS indicator should be vertically aligned to the top of the input area. All this I said a few times already, Joan, Arnau and Oleg, who's taking care of this?
Thanks.
Flags: needinfo?(vpg)
Comment 25•10 years ago
|
||
(In reply to Victoria Gerchinhoren [:vicky] from comment #24)
> (In reply to Pavel Ivanov [:ivanovpavel] from comment #20)
> > Hey Vicky,
> >
> > what happened when we have a long message? where the counter should be? Also
> > I saw in the spec two cases the first one is when we have `MMS` over the
> > blue border and the second one is when the `MMS` is under the border?
>
> Hi Pavel,
> MMS indicator should always be over that line. When there's a subject,
> there's an MMS indicator.
> If there's no subject, the cpunter and MMS indicator should be vertically
> aligned to the top of the input area. All this I said a few times already,
> Joan, Arnau and Oleg, who's taking care of this?
>
> Thanks.
Hey Victoria,
Thanks for your reply! We're all trying to take care of this :) Though there is one more case that I'd like to confirm with you:
In case we have empty and visible subject input we don't display MMS per spec (cause it's still SMS) and <= 20 avaialable chars left. Should we display available chars counter aligned to the top of the input area (below subject input). I've attached screenshot for you.
Thanks!
Attachment #8439840 -
Flags: ui-review?(vpg)
Updated•10 years ago
|
Attachment #8439840 -
Flags: ui-review?(vpg) → ui-review+
Assignee | ||
Comment 26•10 years ago
|
||
I work on it ... we just land few patches who I need to rebase and Oleg and I work on it. Hope I will post a patch today
Assignee | ||
Comment 27•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
Hey Oleg,
as we talk few hours ago ... I made totally new patch ... and I think it works perfect :) you can also check our patches together here (https://github.com/pivanov/gaia/tree/pr-19598-subject-vr)
Attachment #8427759 -
Flags: feedback?(azasypkin)
Comment 28•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
(In reply to Pavel Ivanov [:ivanovpavel] from comment #27)
> Comment on attachment 8427759 [details]
> patch for Gaia/master
>
> Hey Oleg,
> as we talk few hours ago ... I made totally new patch ... and I think it
> works perfect :) you can also check our patches together here
> (https://github.com/pivanov/gaia/tree/pr-19598-subject-vr)
Hey Pavel!
I've just briefly tested your patch on device and subject part works great except that you need to use 'has-counter' to show counter-label only when this class is applied + '[data-message-type='mms']' to hide it totally;
Also I've noticed that message input behavior has changed - it doesn't occupy that much empty space as before. You can just compare how it looked before and how it looks after your patch is applied e.g. if you open message draft with very long message (3-4 sms) especially if you hide keyboard.
I'm on holiday today, so you can ask for feedback from Julien who made message input to occupy as much empty space as possible btw :)
Thanks!
Attachment #8427759 -
Flags: feedback?(azasypkin)
Comment 29•10 years ago
|
||
I think it's better if Steve reviews this, as I'm not here next week and I expect this will need several rounds.
Comment 30•10 years ago
|
||
Pavel, what is the status? Please update.
If Julien has been on holiday, does someone else need to review this? We are now two weeks past feature landing and we need to make a decision on whether or not to block ship on 2.0 on this. No more feature work should be happening right now.
Oleg, can you do anything to help move this along or to give a judgment call? We need to make a call by tomorrow.
Flags: needinfo?(pivanov)
Flags: needinfo?(azasypkin)
Updated•10 years ago
|
Blocks: sms-sprint-4
Flags: needinfo?(azasypkin)
Assignee | ||
Comment 31•10 years ago
|
||
Hey Steph,
Oleg and I work on it and I will do my best to have this patch till end of the day.
Flags: needinfo?(pivanov)
Updated•10 years ago
|
Whiteboard: [sprint2 p=3][sprint3 p=2] → [sprint2 p=3][sprint3 p=2][not-part-of-initial-sprint]
Updated•10 years ago
|
Target Milestone: 2.0 S4 (20june) → 2.0 S5 (4july)
Comment 32•10 years ago
|
||
Thank you, Pavel!
Assignee | ||
Comment 33•10 years ago
|
||
Hey Oleg ... I think that I cover everything now ... can you check it before we ask for r+?
Attachment #8445339 -
Flags: feedback?(azasypkin)
Comment 34•10 years ago
|
||
Comment on attachment 8445339 [details]
this PR contains Oleg and Pavel patches
Great job! I don't see any issues now. So let me update unit tests in JS part and I think we'll be ready for review.
Thanks!
Attachment #8445339 -
Flags: feedback?(azasypkin) → feedback+
Updated•10 years ago
|
feature-b2g: 2.0 → ---
Assignee | ||
Comment 35•10 years ago
|
||
Thanks Oleg :) When you are ready I will update my patch with my changes and you can update yours ... or ... we will push everything like one PR?
Flags: needinfo?(azasypkin)
Comment 36•10 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #35)
> Thanks Oleg :) When you are ready I will update my patch with my changes and
> you can update yours ... or ... we will push everything like one PR?
Hey Pavel,
I've finished with JS/unit tests changes in my branch (see attached URL).
Thanks
Attachment #8434812 -
Attachment is obsolete: true
Flags: needinfo?(azasypkin)
Assignee | ||
Comment 37•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
Hey Oleg,
I update my patch (branch ) and you can f+ if you are ok and also you can remove following files from your patch:
apps/sms/index.html
apps/sms/style/composer.css
Thanks :)
Attachment #8427759 -
Flags: feedback?(azasypkin)
Assignee | ||
Comment 39•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
Hey Steve,
this PR contains all changes for this bug.
Attachment #8427759 -
Flags: review?(schung)
Assignee | ||
Updated•10 years ago
|
Attachment #8445339 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8445899 -
Attachment is obsolete: true
Comment 40•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
Thanks Pavel, it looks good on devices I have, I've also quickly skimmed through the code, I think it would be nice to have some clarification comments for the most important numbers used in CSS (especially for numbers used in "calc" functions).
Thanks!
Attachment #8427759 -
Flags: feedback?(azasypkin) → feedback+
Comment 41•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
I left some comments and question for Oleg. The new visual works really great, thanks!
Comment 42•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
Hi Pavel/Oleg, the patch seems got some conflicts(might related to patch in bug 1013296), could you please fix them for another review? Thanks!
Attachment #8427759 -
Flags: review?(schung)
Assignee | ||
Updated•10 years ago
|
Attachment #8427759 -
Flags: review?(schung)
Comment 43•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
Looks great now! r=me and thanks for the all the efforts. Travis is still red but we already got the corresponding bugs(bug 1032288 for vertical home and bug 1032037 for music), it should be fine for merging.
Attachment #8427759 -
Flags: review?(schung) → review+
Comment 44•10 years ago
|
||
In master: 331250d734e6f2539f1fab8ba6e9e0e3fcbe2172
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 45•10 years ago
|
||
Comment on attachment 8427759 [details]
patch for Gaia/master
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): new feature
[User impact] if declined: not following visual refresh targeted for 2.0
[Testing completed]: yes
[Risk to taking this patch] (and alternatives if risky): low
[String changes made]: No
Since this feature is part of visual refresh and affected bug 990537, requesting approval for v2.0
Attachment #8427759 -
Flags: approval-gaia-v2.0?(bbajaj)
Updated•10 years ago
|
status-b2g-v2.1:
--- → fixed
Comment 46•10 years ago
|
||
Note that it's part of the visual refresh but also fixes and polishes the issues that the previous visual refresh patches brought. Without this patch in v2.0, we'll likely have blockers to fix things this patch is already fixing.
Updated•10 years ago
|
Attachment #8427759 -
Flags: approval-gaia-v2.0?(bbajaj) → approval-gaia-v2.0+
Updated•10 years ago
|
status-b2g-v2.0:
--- → affected
Comment 47•10 years ago
|
||
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•