Closed Bug 1009254 Opened 10 years ago Closed 10 years ago

[STK] No option on UI to terminate/abort the proactive session

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)

RESOLVED FIXED
2.0 S3 (6june)
blocking-b2g 1.4+
Tracking Status
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: cyang, Assigned: frsela)

References

Details

(Keywords: regression, Whiteboard: [caf priority: p2][cr 660825], )

Attachments

(11 files, 1 obsolete file)

46 bytes, text/x-github-pull-request
vingtetun
: review+
Details | Review
46 bytes, text/x-github-pull-request
vingtetun
: review+
cyang
: feedback+
Details | Review
91.08 KB, image/png
Details
99.28 KB, image/png
jelee
: ui-review-
Details
413.78 KB, application/pdf
Details
12.68 KB, image/png
Details
15.31 KB, image/png
Details
15.31 KB, image/png
Details
15.64 KB, image/png
Details
15.67 KB, image/png
Details
12.58 KB, patch
Details | Diff | Splinter Review
Currently, for a GET_INKEY command, the options of 'Help', 'Back', and 'OK' are available on the UI. This looks like a regression as there used to be a 'Close' button for GET_INKEY to indicate that the proactive session is to be terminated.
Hey Fernando, thought you were the best person to look at this.
Flags: needinfo?(frsela)
Whiteboard: [cr 660825]
Flags: needinfo?(frsela)
Hi Carol, I'll check this

So it's supposed to show only a close button for INKEY operations
Hi Fernando,

No it should show all other buttons along with close button.

The spec says a user can 

1. terminate the session (Close button)
2. Go back (back button)
3. Enter a digit/text that will be passed by a  terminal response (on clicking OK button)
4. Help button should be displayed and enabled if help is requested. Right now, if help is not requested, the UI shows the help button but greys it out. I am not very sure about this behavior. We could either show the Help button or not show it at all. Maybe Carol can add to this.

Thanks,
Nivi.
(In reply to Nivi from comment #3)
> Hi Fernando,
> 
> No it should show all other buttons along with close button.
> 
> The spec says a user can 
> 
> 1. terminate the session (Close button)
> 2. Go back (back button)
> 3. Enter a digit/text that will be passed by a  terminal response (on
> clicking OK button)

Agree with Nivi here. These buttons should all be made available for a GET_INKEY proactive command.

> 4. Help button should be displayed and enabled if help is requested. Right
> now, if help is not requested, the UI shows the help button but greys it
> out. I am not very sure about this behavior. We could either show the Help
> button or not show it at all. Maybe Carol can add to this.

The Help button depends on the command details byte. If specified by the command details byte, "isHelpAvailable:true" will be sent. When this is not sent, the 'Help' button can either be removed completely or grayed out. IMO, that's a Gaia decision.

> 
> Thanks,
> Nivi.
Carol - Has this present on past releases? What's the partner-specific need for 1.4?
Flags: needinfo?(cyang)
(In reply to Jason Smith [:jsmith] from comment #5)
> Carol - Has this present on past releases? What's the partner-specific need
> for 1.4?

This is to the tech spec and was added since v1 release. It has since regressed. For your reference, bug 826508 added the 'Close' button in the first place.
Flags: needinfo?(cyang)
(In reply to Carol Yang [:cyang] from comment #6)
> (In reply to Jason Smith [:jsmith] from comment #5)
> > Carol - Has this present on past releases? What's the partner-specific need
> > for 1.4?
> 
> This is to the tech spec and was added since v1 release. It has since
> regressed. For your reference, bug 826508 added the 'Close' button in the
> first place.

Carol,

Can we please have the regression window?
Keywords: regression
Whiteboard: [cr 660825] → [cr 660825],
blocking-b2g: 1.4? → 1.4+
Assign to Fernando for now, thanks.
Assignee: nobody → frsela
Before implement the path I want to be sure we are on same page:

Currently, INKEY can show 3 or 4 buttons as codec here:
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/index.html#L1142
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/icc.js#L397

  HELP, BACK and OK

or if the option isYesNoRequired is received

  HELP, BACK, NO and YES

So what we want is to add a new CLOSE bottom leaving it as:

  HELP, CLOSE, BACK and OK

or if isYesNoRequired:

  HELP, CLOSE, BACK, NO and YES

Is this correct? Should we put 5 buttons?
Flags: needinfo?(cyang)
(In reply to Fernando R. Sela (no CC, needinfo please) [:frsela] from comment #9)
> Before implement the path I want to be sure we are on same page:
> 
> Currently, INKEY can show 3 or 4 buttons as codec here:
> https://github.com/mozilla-b2g/gaia/blob/master/apps/system/index.html#L1142
> https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/icc.js#L397
> 
>   HELP, BACK and OK
> 
> or if the option isYesNoRequired is received
> 
>   HELP, BACK, NO and YES
> 
> So what we want is to add a new CLOSE bottom leaving it as:
> 
>   HELP, CLOSE, BACK and OK
> 
> or if isYesNoRequired:
> 
>   HELP, CLOSE, BACK, NO and YES
> 
> Is this correct? Should we put 5 buttons?

Thanks for explicitly listing out the options! At the minimum, the CLOSE and BACK button will be displayed as these are options always available to the user during a GET_INKEY proactive session.

To answer your question on 5 buttons, yes, it does look like there could be a scenario in which all 5 buttons need to be displayed (when command details byte is 0x0C). This is based on info from section 12.6 of 3GPP2 TS 11.14

 GET INKEY
 bit 1: 0 = digits (0 9, *, # and +) only
        1 = alphabet set;
 bit 2: 0 = SMS default alphabet
        1 = UCS2 alphabet
 bit 3: 0 = character sets defined by bit 1 and bit 2 are enabled
        1 = character sets defined by bit 1 and bit 2 are disabled and the "Yes/No" response is requested
 bits 4-7: = RFU
 bit 8: 0 = no help information available
        1 = help information available

I'm not quite sure how you'll want to fit 5 buttons on the screen but it does look like there is a use case for that.
Flags: needinfo?(cyang)
Fernando,

Can you provide next steps?
Flags: needinfo?(frsela)
(In reply to Preeti Raghunath(:Preeti) from comment #11)
> Fernando,
> 
> Can you provide next steps?

Working on it today. I've a patch which I'm testing and adjusting CSS for 4 and 5 buttons.

As soon as I tested all use cases I'll upload it :)
Flags: needinfo?(frsela)
Attached file Patch for 1.4 branch
Attachment #8424699 - Flags: feedback?(cyang)
Attached image INPUT_4_BTN.png
New STK INPUT dialog with 4 buttons
Attached image INPUT_5_BTN.png
New STK INPUT dialog with 5 buttons
Fernando,

Is the patch ready for review?
Flags: needinfo?(frsela)
Hi Fernando, could you put ETA on this CS blocker? thanks.
Flags: needinfo?(frsela)
Attachment #8424698 - Flags: review?(21)
Flags: needinfo?(frsela)
Comment on attachment 8424699 [details] [review]
Patch for 1.4 branch

Hi Fernando,

Everything looks good except that pressing the Help button does nothing. Like the other buttons, it should send the corresponding terminal response down. In this case, it should send '13' for Help information required by the user.

Thanks,
Carol
Attachment #8424699 - Flags: feedback?(cyang) → feedback-
Comment on attachment 8424699 [details] [review]
Patch for 1.4 branch

I guess I will do the review when the patch fix the issue mentioned :)
Attachment #8424699 - Flags: review?(21)
Comment on attachment 8424698 [details] [review]
Patch for master branch

Same comment as the 1.4 version.
Attachment #8424698 - Flags: review?(21)
(In reply to Carol Yang [:cyang] from comment #19)
> Comment on attachment 8424699 [details] [review]
> Patch for 1.4 branch
> 
> Hi Fernando,
> 
> Everything looks good except that pressing the Help button does nothing.
> Like the other buttons, it should send the corresponding terminal response
> down. In this case, it should send '13' for Help information required by the
> user.
> 
> Thanks,
> Carol

Hi Carol,

I tested into my device and it's working well:

I/GeckoDump(  622): [system] STK sendStkResponse -- # response = {"resultCode":19}

The call is made here:
https://github.com/mozilla-b2g/gaia/blob/v1.4/apps/system/js/icc.js#L509

Can you provide some log traces?
Flags: needinfo?(cyang)
Whiteboard: [cr 660825], → [cr 663379],
Whiteboard: [cr 663379], → [cr 660825],
> Hi Carol,
> 
> I tested into my device and it's working well:
> 
> I/GeckoDump(  622): [system] STK sendStkResponse -- # response =
> {"resultCode":19}
> 
> The call is made here:
> https://github.com/mozilla-b2g/gaia/blob/v1.4/apps/system/js/icc.js#L509
> 
> Can you provide some log traces?

You're right, looks like I was missing bug 1009188 in my build. The help info button now generates the correct TR. This patch looks good!
Flags: needinfo?(cyang)
Attachment #8424699 - Flags: feedback- → feedback+
Attachment #8424698 - Flags: feedback?(cyang)
(In reply to Carol Yang [:cyang] from comment #23)
>
> You're right, looks like I was missing bug 1009188 in my build. The help
> info button now generates the correct TR. This patch looks good!

Ok, good :) - Thank you

Adding 1009188 as a dependency to avoid this error in the future ;)
Depends on: 1009188
Comment on attachment 8424701 [details]
INPUT_5_BTN.png

I suspect the labels will not fit for some locales. Flagging UX for comment.
Attachment #8424701 - Flags: ui-review?(firefoxos-ux-bugzilla)
Preeti, could you please get this patch reviewed; we need this fix soon.
Flags: needinfo?(praghunath)
Anshul,

Trying to get UX review.
Flags: needinfo?(praghunath)
Comment on attachment 8424701 [details]
INPUT_5_BTN.png

Flagging Omega on ui-review?. Omega, I do not have Jenny's name or email; please flag her as needed here as well.
Attachment #8424701 - Flags: ui-review?(firefoxos-ux-bugzilla) → ui-review?(ofeng)
Hi Vance,

As you know this is PTCRB blocker, would you please push landing patch to 1.3.

Thanks.
Flags: needinfo?(vchen)
Flags: needinfo?(jelee)
Attachment #8424701 - Flags: ui-review?(ofeng) → ui-review?(jelee)
Flags: needinfo?(jelee)
Comment on attachment 8424701 [details]
INPUT_5_BTN.png

Hello all,
Fitting 5 buttons on footer is not very ideal. It could cause truncation (for other languages) and it requires more effort for user to read through the options.
Attachment #8424701 - Flags: ui-review?(jelee) → ui-review-
Attached file STK layout v1.0.pdf
See attachment for proposed layout redesign. We moved "back" to upper left and "help" to upper right (as how we positioned "back" and "action" in our apps), this gives our users a more familiar layout that is easier to find what they want actions to take next. Header text and page content shown in the document varies as the context changes, the ones you see are only for demonstration purpose. Thanks =) !!
Thank you Vivien.

I'll upload a new commit with the new layout.

Should I add to this patch? or you consider that is better to open a new bug for the new layout ...
Flags: needinfo?(21)
Attached patch ICC New layout (obsolete) — Splinter Review
Attachment #8429268 - Flags: feedback?(21)
Attachment #8429268 - Attachment is obsolete: true
Attachment #8429268 - Flags: feedback?(21)
Attachment #8429271 - Flags: feedback?(21)
This patch solve the issue. The other patch is to make it looks better, which makes sense. 
But I would prefer to have a separate bug for the other, this way if we need to back out the new layout the underlying issue is still fixed.
Flags: needinfo?(21)
Comment on attachment 8429271 [details] [diff] [review]
icc_newlayout.patch

Let's discuss that into a separate bug.
Attachment #8429271 - Flags: feedback?(21)
(In reply to Vivien Nicolas (:vingtetun) (:21) (NOT reading bugmails, needinfo? please) from comment #43)
> Comment on attachment 8429271 [details] [diff] [review]
> icc_newlayout.patch
> 
> Let's discuss that into a separate bug.

Fully agree !
Thanks Vivien
Target Milestone: --- → 2.0 S3 (6june)
Whiteboard: [cr 660825], → [caf priority: p2][cr 660825],
Flags: in-moztrap?(ychung)
Unable to create a test case. This bug involves STK query.
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(ychung)
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: