Merge lp://qastaging/~nik90/ubuntu-clock-app/replace-alarmsound-checkbox into lp://qastaging/ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Bartosz Kosiorek
Approved revision: 377
Merged at revision: 370
Proposed branch: lp://qastaging/~nik90/ubuntu-clock-app/replace-alarmsound-checkbox
Merge into: lp://qastaging/ubuntu-clock-app
Diff against target: 3046 lines (+754/-717)
5 files modified
app/alarm/AlarmSound.qml (+158/-112)
app/alarm/EditAlarmPage.qml (+1/-17)
debian/changelog (+2/-0)
po/com.ubuntu.clock.pot (+567/-559)
tests/unit/tst_alarmSound.qml (+26/-29)
To merge this branch: bzr merge lp://qastaging/~nik90/ubuntu-clock-app/replace-alarmsound-checkbox
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nekhelesh Ramananthan Abstain
Bartosz Kosiorek Approve
Victor Thompson Needs Fixing
Review via email: mp+269328@code.qastaging.launchpad.net

Commit message

- Replaces alarm sound page checkboxes with tick icons instead to match system-settings app
- Added section headers to separate custom and default alarm sounds

Description of the change

- Replaces alarm sound page checkboxes with tick icons instead to match system-settings app
- Added section headers to separate custom and default alarm sounds

The use of tick-marks allowed me to move the QML FolderListModel from the EditAlarmPage.qml to AlarmSound.page. This means we shave of the loading times of the EditAlarmPage.qml a bit.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

Comments:

1. Please update the pot file for the new strings.
2. Could we indent the alarm sound delegate text? This might help to make the section headings more obvious? This is just an opinion, however.
3. As part of this MP could you make it so the when the user selects the original alarm sound in the AlarmSound page that the saveAction is still enabled? It's weird if you play a few and get back to the original and you can't save it. IMO it should always be enabled.
4. I wonder if it'd be useful to put a small play/pause toggle next to the tick box. This would make it more apparent that tapping the item again will stop the alarm playback.

Only the first issue needs to be fixed.

review: Needs Fixing
Revision history for this message
Victor Thompson (vthompson) wrote :

Additional comment:

Consider changing "Default sounds" and "Custom sounds" to "Default alarms" and "Custom alarms". Or maybe "Custom alarm sounds", etc? My prefered Android alarm clock uses "alarm sound" as the term.

Revision history for this message
Victor Thompson (vthompson) wrote :

If you do change the headings per that last comment--you may also want to change "Add custom sound" and "Add sound from" to match.

Also, maybe "Custom Alarm Sounds" should be "Custom alarm sounds" (note capitalization).

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

> Comments:
>
> 1. Please update the pot file for the new strings.

Will do once we agree on the wording of the headers to be used.

> 2. Could we indent the alarm sound delegate text? This might help to make the
> section headings more obvious? This is just an opinion, however.

I agree that the section headings need to be more obvious and I am a bit conflicted on how to proceed. If I indent the alarm sound delegate text, it breaks consistency with section headers shown by the address-book-app and the world city page in the clock app. Right now, the page looks very busy with so many listitem dividers. I will try out a couple different variations and see which one maintains consistency, clean loook etc.

> 3. As part of this MP could you make it so the when the user selects the
> original alarm sound in the AlarmSound page that the saveAction is still
> enabled? It's weird if you play a few and get back to the original and you
> can't save it. IMO it should always be enabled.

Hmm I can see how it gets annoying after you makes changes and then revert back to the original sound. At the moment, the save button is enabled *only* when you change the value to something new. We follow this pattern everywhere now. I suppose I can change that to enabling the save button if *any* change is done regardless of whether that changes defaults to the old/new value. I will have to do this in 3 different places and also fix the unit tests. A separate MP is a better idea.

> 4. I wonder if it'd be useful to put a small play/pause toggle next to the
> tick box. This would make it more apparent that tapping the item again will
> stop the alarm playback.
>

Hmm good idea. I will add this.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

As for the naming, the page title where we show "add sound from" can accommodate only up to 3 strings beyond which it ellipses due to lack of space (especially when translated).

I like to use "Default alarm sounds" and "Custom alarm sounds".

So the button would also need to be changed to "Add custom alarm sound". While the page title stays "add sound from" due to space constraints.

Does this sound good?

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

- In my opinion "Add custom sound" button should be on inside "Custom Sounds" list, as it is belongs it it.
- In my opinion "Custom Sounds" and "Default Sounds" should be always visible
- After that "Add custom sound" could be renamed to just "Add sound" as this button is already in "Custom Sounds"

Use cases:
- When there is no custom sounds, the header "Custom Sounds" will be displayed, and "Add sound" will be there
- When there is custom sounds, the header "Custom Sounds" will be displayed, and "Add sound" will be on top of the list. Next it will be custom alarms sounds.

If you want I could create some mockup for you.

review: Needs Information
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

One more comment:
- After adding new Custom Sound it will be great to show simple add animation, as it is already done for "Stopwatch -> Lap". It will visualize what was changed in the list.

review: Needs Fixing
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

@Victor Where we should use capital letters an where not: I mean "Custom Sounds" vs "Custom sounds" ?

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Some small coding style remarks.

review: Needs Fixing
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Okay, I fixed almost all of the feedback/issues pointed out except for the following,

> 1. - After adding new Custom Sound it will be great to show simple add animation, as it is already done for "Stopwatch -> Lap". It will visualize what was changed in the list.

This is not easy to do since we use Repeater+Column which doesn't provide us with onDisplaced signal to animate the addition/deletion of sounds.

> 2. Could we indent the alarm sound delegate text? This might help to make the
> section headings more obvious? This is just an opinion, however.

Indentation will break the consistency. So I would rather keep it this way by making the section headers text semibold.

> 3. As part of this MP could you make it so the when the user selects the
> original alarm sound in the AlarmSound page that the saveAction is still
> enabled? It's weird if you play a few and get back to the original and you
> can't save it. IMO it should always be enabled.

As mentioned earlier, this deserves its own MP since it affects 3 other files. Let's do it in one go.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

NOTE: Please do not merge this MP before we push out the clock-app 3.5 store update since this MP will update the pot file and change strings that I won't be able to bisect from the release. QA tested and approved rev 361. I will merge upcoming spanish and chinese translation which requires the .pot file not be updated.

review: Needs Fixing
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

It is working perfectly for me.

Everything is fine according to checklist.
Thanks.

review: Approve
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

MP ready to be merged now that v3.5 has been released.

review: Abstain
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches