Closed Bug 796702 Opened 12 years ago Closed 11 years ago

[Calendar] When I switch to a different day in the day view, the day selected and shown in the month view should update respectively

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ghtobz, Assigned: igordsm)

Details

(Whiteboard: interaction, UX-P3)

Attachments

(1 file, 1 obsolete file)

46 bytes, text/x-github-pull-request
kgrandon
: review+
Details | Review
[GitHub issue by jds2501 on 2012-09-21T18:23:48Z, https://github.com/mozilla-b2g/gaia/issues/5036]
## Build

* Device: Otoro
* Gaia: e721ac345b957e658bb78f1618438668732c6d94
* Mozilla Central: 4e49e8497cc2ac4dd40fe29a63c05991eeefc2d0

## Steps

1. Open the day view in the calendar
2. Switch to a new day
3. Go back to the month view

## Expected

The day shown in the month view should be changed to reflect the change made in the day view.

## Actual

The day in the month view doesn't change. Probably not a blocker, but definitely polish to improve the UX.

cc @lightsofapollo
[GitHub comment by lightsofapollo on 2012-09-21T18:25:57Z]
@michalbe There is logic to do inverse in day view (for selectedDay switching in month view) it should be very easy to apply the same logic to the day view -> month view case.
Component: Gaia → Gaia::Calendar
Also seen in week view, sometimes works but under some conditions fails.
Priority: -- → P2
Whiteboard: [label:calendar][label:polish] → [label:calendar][label:polish][interaction]
Priority: P2 → --
Whiteboard: [label:calendar][label:polish][interaction] → interaction, UX-P2
Whiteboard: interaction, UX-P2 → interaction, UX-P3
Assignee: mbudzynski → nobody
Attached file Pointer to GitHub patch (obsolete) —
Simple patch for this bug. 
GH pull request: https://github.com/mozilla-b2g/gaia/pull/13049
Attachment #821398 - Flags: review?(jlal)
Comment on attachment 821398 [details]
Pointer to GitHub patch

Fell _way_ off my radar sorry for the long turn-around... I am going to assign review to kgrandon though
Attachment #821398 - Flags: review?(jlal) → review?(kgrandon)
Attached file Github pull request
Appears that the attached PR links to the wrong commit, so fixing that here.

I'll mark myself to review this later, but we're going to be unable to land as-is without tests.
Attachment #821398 - Attachment is obsolete: true
Attachment #821398 - Flags: review?(kgrandon)
Attachment #828446 - Flags: review?(kgrandon)
Hi Igor,

I think we will need a unit test to land this. Would you like to add a unit test to this? If you don't have the time to do so, I can take over the patch - just let me know.

Information on unit tests: https://github.com/mozilla-b2g/gaia/#unit-tests
Flags: needinfo?(igordsm)
Comment on attachment 828446 [details] [review]
Github pull request

Clearing review flag for now.
Attachment #828446 - Flags: review?(kgrandon)
Kevin,

I would like to add the unit test, but I have never coded one. I'll try to do it in this weekend.
Flags: needinfo?(igordsm)
I added a unit test in test_day.js . 

Is it enough or perhaps a marionette test would be more suitable?

Thanks.
Flags: needinfo?(kgrandon)
Nice work, this will do for now, and we can always follow-up with a marionette test. If you have some cycles to build one, it would be much appreciated.

Thanks for your contribution!
Flags: needinfo?(kgrandon)
Attachment #828446 - Flags: review+
https://github.com/mozilla-b2g/gaia/commit/a32e81bf56a0326dfcadcacf176f48a682a0dce4
Assignee: nobody → igordsm
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: