Closed Bug 973827 Opened 10 years ago Closed 10 years ago

Power button modal should be an object menu instead of a custom implementation

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.0 fixed)

RESOLVED FIXED
2.0 S3 (6june)
Tracking Status
b2g-v2.0 --- fixed

People

(Reporter: vicky, Assigned: arnau)

References

Details

Attachments

(3 files, 3 obsolete files)

Attached image power_button_modal.png
Power button triggers a set of actions, that's why it should be a different compoenent, Action menu instead of value selector.
Assignee: nobody → arnau
Assignee: arnau → joan.leon
Attached image Power_button_modal_Action_menu.png (obsolete) —
Attachment #8394017 - Flags: review?(vpg)
Attachment #8394017 - Flags: review?(arnau)
Attached file Power button modal (obsolete) —
Attachment #8394019 - Flags: review?(arnau)
Attached file Power-button-modal (obsolete) —
Attachment #8394019 - Attachment is obsolete: true
Attachment #8394019 - Flags: review?(arnau)
Attachment #8394160 - Flags: review?(arnau)
Attachment #8394017 - Flags: review?(vpg) → review+
Comment on attachment 8394160 [details] [review]
Power-button-modal

CSS LGTM. Asking module owners for JS review.
Attachment #8394160 - Flags: review?(arnau) → review+
Attachment #8394160 - Flags: review?(alive) → review+
commit 3ba39ebd3fd4613640f9477898a008580ef8fb41
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.4 S4 (28mar)
Back out: https://github.com/mozilla-b2g/gaia/commit/072a6683cda997a2b6c3954d6616461bdc342b77

I had to revert this because of several issues:
- The commit message had no bug number in it. Please format your messages like this "Bug xxx - Solving foobar"
- Neither the commit or the merge commit had any reviewer information. One of them should contain "r=arnau,alive" or "r=arnau r=alive"
- The linter tests were failing.
- A lot of System ActionMenu unit tests were failing.
- test_power_button_long_press.TestPowerButton.test_power_button_long_press was failing.

Joan: You need to wait for a green travis before landing your patches. Given all the issues with that patch and the fact that none of your previous patches included bug numbers nor reviewers, I've revoked your Github rights on Gaia. For your next patches, you'll need to ask someone to land patches for you or put "checkin-needed" in the keyword field. Once you have more patches and experience on the project, we can give you that permission back.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry I didn't notice the commit message when reviewing and test results, I will pay attention next time.
In favor of Joan, I would say he is an expert in CSS and not in Javascript, neither am I. That's why I added an app owner to further review his code.
I will me reviewing his work in the following weeks in order to get his permissions back.
Thank you guys.
Attachment #8394017 - Flags: review?(arnau)
Assignee: joan.leon → pacorampas
Target Milestone: 1.4 S4 (28mar) → 2.0 S2 (23may)
Target Milestone: 2.0 S2 (23may) → 2.0 S3 (6june)
Assignee: pacorampas → arnau
Summary: Power button modal should be an action menu instead of a value selector. → Power button modal should be an object menu instead of a custom implementation
Attached file patch in github
Attachment #8394160 - Attachment is obsolete: true
Attached image after_patch.png
Attachment #8394017 - Attachment is obsolete: true
Comment on attachment 8433487 [details] [review]
patch in github

Alive, could you review that patch?
I've retaken what Joan did in the past with a different approach to avoid previous test failures.
Thanks
Attachment #8433487 - Flags: review?(alive)
Comment on attachment 8433487 [details] [review]
patch in github

test_power_button_long_press.py test_power_button_long_press.TestPowerButton.test_power_button_long_press
is broken
could you get it over?
Attachment #8433487 - Flags: review?(alive)
Comment on attachment 8433487 [details] [review]
patch in github

Could you please review it again?
I've fixed the test :)
Attachment #8433487 - Flags: review?(alive)
Comment on attachment 8433487 [details] [review]
patch in github

Everything is fine except the change to testvar-template :)
Attachment #8433487 - Flags: review?(alive) → review+
Merged: a06fc5812b4cb633d20992913a05bdb3f64c9622
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Depends on: 1022878
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: