Merge lp:~jindallo/today-scope/convergence-ui-support into lp:today-scope

Proposed by Jin
Status: Merged
Approved by: Jin
Approved revision: 98
Merged at revision: 100
Proposed branch: lp:~jindallo/today-scope/convergence-ui-support
Merge into: lp:today-scope
Diff against target: 119 lines (+42/-14) (has conflicts)
1 file modified
click-src/aggregator/child_scopes.json (+42/-14)
Contents conflict in click-src/aggregator/libcom.canonical.scopes.aggregator_aggregator.so
To merge this branch: bzr merge lp:~jindallo/today-scope/convergence-ui-support
Reviewer Review Type Date Requested Status
Kyle Nitzsche (community) Approve
Today Scope Team Pending
Review via email: mp+299777@code.launchpad.net
To post a comment you must log in.
97. By Jin

Library rebased to 4.9 for Today aggregator

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Hi Jin,

Please note today trunk is now at 4.11 release.

I assume you tested this on tablet landscape & portrait and something small like the Krillin.

Instead of:
* "_category_title": "Upcoming Holidays"
Can you consider "_category_title": "Holidays"

Because Holidays is already translated and seems good in this context.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Hi Jin,

On the Recent category, I think you should probably revert to collapsed-rows of 0. 0 means display ALL results. We don't want to collapse here. We want to show all three results (one from calls, one from texts, and one from telegram), unless the user doesn't have them or has disabled them.

So I don't think the cardinality needs to change for Recent either.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Thanks Jin!

review: Needs Fixing
98. By Jin

Code review patch - 01

Revision history for this message
Jin (jindallo) wrote :

Hello Kyle,

Please have a look,
what you mentioned make sense to me,
already patched as r.98.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Thanks Jin. LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'click-src/aggregator/child_scopes.json'
2--- click-src/aggregator/child_scopes.json 2016-03-09 14:45:03 +0000
3+++ click-src/aggregator/child_scopes.json 2016-07-29 07:47:09 +0000
4@@ -81,7 +81,7 @@
5 {
6 "scope": {
7 "_category_title": "Weather",
8- "cardinality": 3,
9+ "cardinality": 10,
10 "id": "com.canonical.scopes.weatherchannel",
11 "local_id": "weather_channel_localId",
12 "renderer": {
13@@ -94,16 +94,16 @@
14 "template": {
15 "card-layout": "vertical",
16 "card-size": "small",
17- "category-layout": "grid"
18+ "category-layout": "grid",
19+ "collapsed-rows": 1
20 }
21 }
22 }
23 },
24 {
25 "scope": {
26- "_category_title": "Next Holiday",
27- "child_category": "left",
28- "child_category_max_results": 1,
29+ "_category_title": "Holidays",
30+ "cardinality": 10,
31 "id": "com.canonical.scopes.holidays_holidays",
32 "local_id": "holidays_localID",
33 "renderer": {
34@@ -113,9 +113,10 @@
35 },
36 "schema-version": 1,
37 "template": {
38- "card-layout": "horizontal",
39- "card-size": "small",
40- "category-layout": "vertical-journal"
41+ "card-layout": "vertical",
42+ "card-size": "medium",
43+ "category-layout": "grid",
44+ "collapsed-rows": 1
45 }
46 }
47 }
48@@ -123,19 +124,45 @@
49 {
50 "scope": {
51 "category_title_use_incoming": "true",
52- "child_category": "Events today",
53+ "cardinality": 10,
54 "id": "com.canonical.scopes.events_events",
55 "local_id": "events_localID",
56- "max_child_category_results": 3
57+ "renderer": {
58+ "components": {
59+ "art": "art",
60+ "subtitle": "subtitle",
61+ "title": "title"
62+ },
63+ "schema-version": 1,
64+ "template": {
65+ "card-layout": "horizontal",
66+ "card-size": "small",
67+ "category-layout": "grid",
68+ "collapsed-rows": 1
69+ }
70+ }
71 }
72 },
73 {
74 "scope": {
75 "category_title_use_incoming": "true",
76- "child_category": "Tasks due today",
77+ "cardinality": 10,
78 "id": "com.canonical.scopes.tasks_sctasks",
79 "local_id": "tasks_localID",
80- "max_child_category_results": 1
81+ "renderer": {
82+ "components": {
83+ "art": "art",
84+ "subtitle": "subtitle",
85+ "title": "title"
86+ },
87+ "schema-version": 1,
88+ "template": {
89+ "card-layout": "horizontal",
90+ "card-size": "small",
91+ "category-layout": "grid",
92+ "collapsed-rows": 1
93+ }
94+ }
95 }
96 },
97 {
98@@ -194,7 +221,7 @@
99 {
100 "scope": {
101 "_category_title": "My Activity",
102- "cardinality": 3,
103+ "cardinality": 10,
104 "id": "com.canonical.scopes.fitbit_fitbit",
105 "local_id": "fitbit_localId",
106 "renderer": {
107@@ -206,7 +233,8 @@
108 "schema-version": 1,
109 "template": {
110 "card-size": "small",
111- "category-layout": "grid"
112+ "category-layout": "grid",
113+ "collapsed-rows": 1
114 }
115 },
116 "result_category_id_to_common_template": [
117
118=== renamed file 'click-src/aggregator/libcom.canonical.scopes.aggregator_aggregator.so' => 'click-src/aggregator/libcom.canonical.scopes.aggregator_aggregator.so.OTHER' (properties changed: +x to -x)
119Binary files click-src/aggregator/libcom.canonical.scopes.aggregator_aggregator.so 2016-07-13 15:27:21 +0000 and click-src/aggregator/libcom.canonical.scopes.aggregator_aggregator.so.OTHER 2016-07-29 07:47:09 +0000 differ

Subscribers

People subscribed via source and target branches

to all changes: