Closed Bug 1014219 Opened 10 years ago Closed 10 years ago

[Messages] Consider using real <button>s instead of <a> links for the header icons

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.2 fixed)

RESOLVED FIXED
2.2 S2 (19dec)
Tracking Status
b2g-v2.2 --- fixed

People

(Reporter: julienw, Assigned: anusha91rao, Mentored)

References

Details

Attachments

(1 file, 2 obsolete files)

The goal is to use real buttons for the actions.

We can argue that the "new message" button could be a link (as it should move to another panel with another hash in the end, with bug 1011089). But the request attachment and settings buttons can change.

Also, we should change the IDs for these buttons.
Blocks: 1029727
May I take this?
Flags: needinfo?(felash)
(In reply to Jaipradeesh [:jai] from comment #1)
> May I take this?

Welcome! Thanks for helping.
Assignee: nobody → jaipradeesh
Flags: needinfo?(felash)
Would you tell me how exactly should I proceed with this?
Flags: needinfo?(schung)
If you have no experience in contributing gaia patch or even developing gaia codebase, please refer this link[1] first for more details. Don't hesitate to ask any question while in environment setup or developing.

If your question is about the solution of this issue, I think comment 0 already got sufficient information about implementation. Since we moved the attachment button to message input block and set as button already, you just need to the adjust settings button on header to button element with new precise ID name.

[1] https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia
Flags: needinfo?(schung)
Got my environment setup ready. Working on the bug.
Hello,
I would like to work on this bug,
Please assign this bug to me,
Thank you.
Anusha, thanks for your interest.

As you see, someone already works on this issue :) I'm sure you can find other bugs on http://www.joshmatthews.net/bugsahoy/?b2g=1 ! 

Jaipradeesh, are you still working on this?
Flags: needinfo?(jaipradeesh)
Anusha,

You may proceed with this. Pretty busy with launch here. Apologies for the delay.
Flags: needinfo?(jaipradeesh)
Assignee: jaipradeesh → anusha91rao
Oleg, is this bug fixed in bug 1074224?
Flags: needinfo?(azasypkin)
(In reply to Julien Wajsberg [:julienw] (PTO until 7th October, ask :steveck or :azasypkin for SMS stuff) from comment #9)
> Oleg, is this bug fixed in bug 1074224?

Nope, bug 1074224 removes only CSS selectors that used [role=button]. So this bug is still valid.
Flags: needinfo?(azasypkin)
Comment on attachment 8530205 [details] [review]
Bug 1014219 - [Messages] Consider using real <button>s instead of <a> links for the header icons

Thanks for the patch and sorry for the delay!

I've just left some comments at GitHub.

Please, set r? once you're ready!
Attachment #8530205 - Flags: feedback?(azasypkin)
Oleg sorry for the delay had exams. Sent the patch.
Thanks.
Comment on attachment 8532835 [details] [review]
Bug 1014219 - [Messages] Consider using real <button>s instead of <a> links for the header icons

(In reply to Anusha from comment #14)
> Oleg sorry for the delay had exams. Sent the patch.
> Thanks.

Hey Anusha, no worries, always take your time, as much as you need!

Everything looks good, but several tests are failed (Li - linter, f1,f2,f3 - pyhton integration tests). I've left more details at GitHub.

Regarding to PRs - you don't need to create a new PR every time. The usual flow is the following:

1. You create PR with initial changes (you already did it!);

2. After round of review, you're making changes in the same branch, create a separate commit with these new changes (I usually use commit message for such commit like "Review round №1: fixed this, added that...");

3. Push this new commit to the the same branch at GitHub, PR is automatically updated in this case. Moreover all tests are re-run with new changes.

When tests are restarted "try-server-hook" adds comment to the PR with the link to the test results (like this one [1]). Once all tests finished you can see if patch didn't break anything.

So please ask r? once you're ready!

[1] https://github.com/mozilla-b2g/gaia/pull/26652#issuecomment-65911274
Attachment #8532835 - Flags: review?(azasypkin)
Attachment #8530205 - Attachment is obsolete: true
Mentor: azasypkin
Comment on attachment 8534856 [details] [review]
Bug 1014219 - [Messages] Consider using real <button>s instead of <a> links for the header icons

Looks good now!

Now before we land the patch, please do the following:

1. Squash all your commits into one [1];

2. Add "r=azasypkin" at the end of commit message (will be like " Bug 1014219 - [Messages] Consider using real <button>s instead of <a> links for the header icons. r=azasypkin");

3. Push (with --force flag) your joined commit to the same branch;

4. Tests will be restarted again, and once they are green please add "checkin-needed" keyword to the bug ("Keywords:" field in bug description).

Thanks a lot for your work!

[1] https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/
Attachment #8534856 - Flags: review?(azasypkin) → review+
Attachment #8532835 - Attachment is obsolete: true
Keywords: checkin-needed
Keywords: checkin-needed
Keywords: checkin-needed
Comment on attachment 8534856 [details] [review]
Bug 1014219 - [Messages] Consider using real <button>s instead of <a> links for the header icons

https://github.com/mozilla-b2g/gaia/pull/26914
Master: https://github.com/mozilla-b2g/gaia/commit/3a8e75217255a281c92991994674a07ae6c48650
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S2 (19dec)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: