Closed Bug 991062 Opened 10 years ago Closed 10 years ago

Call log: Take out filters while in edit mode

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(feature-b2g:2.0, tracking-b2g:backlog, b2g-v2.0 fixed)

VERIFIED FIXED
2.0 S1 (9may)
feature-b2g 2.0
tracking-b2g backlog
Tracking Status
b2g-v2.0 --- fixed

People

(Reporter: vicky, Assigned: gtorodelvalle)

References

Details

(Whiteboard: [p=3])

Attachments

(2 files, 2 obsolete files)

Filters should not be present while in call logs edit mode, the possible actions are selecting, unselecting and removing items. Having the filters there would only cause interaction noise.
Assignee: nobody → arnau
Blocks: 951700
Comment on attachment 8400910 [details] [review]
patch in github

thanks Arnau, f+ by this should be r+ by a dialer peer, thus, redirecting r? to :Rik
Attachment #8400910 - Flags: review?(jmcf)
Attachment #8400910 - Flags: review?(anthony)
Attachment #8400910 - Flags: feedback+
That makes sense to me but just confirming with Carrie that this is ok. See comment 0.
Flags: needinfo?(cawang)
Comment on attachment 8400910 [details] [review]
patch in github

Why the transform? Isn't .recents-edit .recents-filter-container { display: none } working?

Using display: none is also better for accessibility.
Attachment #8400910 - Flags: review?(anthony) → review-
:Rik As far as I can remember, I first tried this but the transition from one stage to the other looked weird. I'll create a new patch tomorrow in order to compare it.
Which transition? I believe I've removed all of them because they were not visible on a device and slowed down the operation.
(In reply to Anthony Ricaud (:rik) from comment #3)
> That makes sense to me but just confirming with Carrie that this is ok. See
> comment 0.

Yes, this make sense to me. Thanks! guys.
Flags: needinfo?(cawang)
(In reply to Anthony Ricaud (:rik) from comment #6)
> Which transition? I believe I've removed all of them because they were not
> visible on a device and slowed down the operation.

Please review the new patch without transitions.
I agree in low end devices the transition won't show, and may slow down the action, although transform animations are not much expensive.
My point is trying to provide a richer experience to capable devices.
But if that works for you, works for me ;)
Attached file patch in github (obsolete) —
Attachment #8400910 - Attachment is obsolete: true
Attachment #8400910 - Flags: review?(anthony)
Attachment #8404603 - Flags: review?(anthony)
Comment on attachment 8404603 [details] [review]
patch in github

I'd love to keep the transitions but with a lot of entries, we were not seeing anything.

Sorry I forgot to say so the first time but we also need to remove the specific code that was introduced in https://github.com/mozilla-b2g/gaia/commit/78f1497046f792fc4ac474e43f8d418ce4f6af93. We should keep the new tests but remove the code that disables edit mode when clicking a filter.
Attachment #8404603 - Flags: review?(anthony) → review-
Hi guys! I was helping Arnau on this bug regarding comment 10 and found an issue I do not know if you are currently aware of.

The point is that I did not want just to delete the unit tests related to exiting the edit mode when filtering the calls which no longer apply, but to include an integration test which validated that after entering the edit mode, no filtering options are provided to the user. You can find my updates added to Arnau's ones here: https://github.com/gtorodelvalle/gaia/compare/rnown-call-log-bug-991062?expand=1 The new integration tests can be found at apps/communications/dialer/test/marionette/call_log_test.js

The problem is that I realised that the Call Log is not starting correctly when running the integration tests and consequently the new provided integration test fails. You can check this by pulling my branch (https://github.com/gtorodelvalle/gaia/tree/rnown-call-log-bug-991062) and running:

make test-integration TEST_FILES=apps/communications/dialer/test/marionette/call_log_test.js 

The B2G Desktop will pop up running the new integration test which just opens the Dialer app and taps on the Call Log tab. As you will see the Call Log is not loading completely since no "No calls recorded..." message is shown. If fact, if you click on the "Missed" tab you will notice that nothing happens. On the other hand, you can click on the "Contacts" app to go to it and everything works as expected.

I will contact Arnau and Anthony via IRC tomorrow to decide the way to proceed ;-)
Target Milestone: --- → 1.4 S6 (25apr)
In fact and since it may take some time for Anthony to try what I mention in comment 11 I think I'll better need-info him :-)

Anthony, are you aware of the issue regarding the loading of the Call Log when running the communications app in the B2G Desktop to run integration tests, for example? (please have a look and try what I mention in comment 11).

Feel free to contact me via IRC ;) Thanks!
Flags: needinfo?(anthony)
QA Contact: lolimartinezcr
Whiteboard: [p=3]
Target Milestone: 1.4 S6 (25apr) → 2.0 S1 (9may)
I'm not surprised. It says navigator.mozIccManager is undefined and that's expected on a desktop :) .

We mostly write unit tests for Dialer until we get a proper way to effectively do integration. For this patch, it looks like testing that we set/unset .recents-edit is the proper thing to do.
Flags: needinfo?(anthony)
Attached file 18972.html
According to Anthony's comment 13, I have skipped the integration test created to validate that the filters are hidden when the edit mode is activated until it is possible to start the Call Log using the B2G Desktop.

Apart from this, the PR is ready for review. Thanks!
Attachment #8404603 - Attachment is obsolete: true
Attachment #8417874 - Flags: review?(etienne)
Assignee: arnau → gtorodelvalle
Comment on attachment 8417874 [details]
18972.html

r=me with an optional comment on github
Attachment #8417874 - Flags: review?(etienne) → review+
Minor counter-comment :p in the PR ;-) As soon as we agree on this, I'll merge it ;)
Merged in master: https://github.com/gtorodelvalle/gaia/commit/647f369f881c6180515a1111fec36b9e98ed3dea
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
blocking-b2g: --- → backlog
feature-b2g: --- → 2.0
Depends on: 1014495
Tested and fine
Hamachi
2.0
Gecko-564e4e1
Gaia-a436da1
Status: RESOLVED → VERIFIED
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: