Closed Bug 1007148 Opened 11 years ago Closed 7 years ago

[Dialer][Call Screen] Call status, duration and direction refactoring

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gtorodelvalle, Unassigned)

References

Details

The current code which deals with showing the call status ("Incoming", "Connecting" and "Call Ended" messages), ongoing and total duration (once the call ends) and direction of the call is probably more complex than needed as a consequence of the distinct iterations it has experienced and some refactoring is needed. The current HTML code looks like this: <div class="duration"> <span class="font-light"></span> <div class="direction"></div> <div class="total-duration font-light"></div> </div> Right now, the span element is used to show the status of the call when it's being established ("Incoming" or "Outgoing"). Once it is established it is used to hold the call duration until it ends. At this point it is used to show the "Call Ended" message. As already discussed with Doug Sherk in bug 1003846 a more "natural" structure should be used such as (please, take it only as a reference): <div class="call-info"> <!-- Or any other informative name. --> <div class="call-status font-light"></div> <div class="duration font-light"></div> <div class="direction"></div> </div> In which case, the .call-status element would hold the current status of the call, this is the text "Incoming" or "Connecting" when being established, hidden during the call and showing "Call Ended" once it ends. On the other hand, the .duration element would hold the duration of the call once it is established and, consequently, its total duration once it ends. Please, take into account that this minor change, at least in principle, has important implications in the styling (oncall.css file) and call management code (handled_call.js and conference_group_handler.js, mainly) as a way to cover all the possible call scenarios, these are: 1) 1 to 1 calla, 2) call waiting, 3) conference calls and 4) call information in the status bar.
Looks good! I'm kind of backseat driving here, but I would suggest changing "call-status" to "call-state", and perhaps rename "duration" to "call-duration" and "direction" to "call-direction" while we're at it. Just little things we can do while we're already at it.
Component: Gaia::E-Mail → Gaia::Dialer
Depends on: 1003846
OS: Mac OS X → All
Hardware: x86 → All
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.