Merge lp:~alecu/unity-scope-click/cosmetic-fixes into lp:unity-scope-click/devel

Proposed by Alejandro J. Cura
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 375
Merged at revision: 379
Proposed branch: lp:~alecu/unity-scope-click/cosmetic-fixes
Merge into: lp:unity-scope-click/devel
Diff against target: 92 lines (+34/-6)
4 files modified
libclickscope/click/configuration.h (+3/-3)
scope/clickapps/apps-query.cpp (+2/-1)
scope/clickstore/store-query.cpp (+4/-2)
scope/tests/test_apps_query.cpp (+25/-0)
To merge this branch: bzr merge lp:~alecu/unity-scope-click/cosmetic-fixes
Reviewer Review Type Date Requested Status
Diego Sarmentero (community) Approve
dobey (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+229165@code.launchpad.net

Commit message

- Apps category must be expanded (and can't be collapsed).
- Search results category must be expanded.
- Change top 6 apps: phone, messages, contacts, camera, browser, clock.
- Remove "Apps" category title in searches.
- Use art not mascot for app icons in store searches.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libclickscope/click/configuration.h'
--- libclickscope/click/configuration.h 2014-07-31 19:15:59 +0000
+++ libclickscope/click/configuration.h 2014-08-01 05:17:22 +0000
@@ -70,10 +70,10 @@
70 static std::vector<std::string> default_apps {70 static std::vector<std::string> default_apps {
71 "dialer-app",71 "dialer-app",
72 "messaging-app",72 "messaging-app",
73 "com.ubuntu.calculator_calculator",73 "address-book-app",
74 "com.ubuntu.clock_clock",
75 "com.ubuntu.camera_camera",74 "com.ubuntu.camera_camera",
76 "com.ubuntu.calendar_calendar"75 "webbrowser-app",
76 "com.ubuntu.clock_clock"
77 };77 };
78 return default_apps;78 return default_apps;
79 }79 }
8080
=== modified file 'scope/clickapps/apps-query.cpp'
--- scope/clickapps/apps-query.cpp 2014-07-31 20:54:02 +0000
+++ scope/clickapps/apps-query.cpp 2014-08-01 05:17:22 +0000
@@ -53,6 +53,7 @@
53 "schema-version" : 1,53 "schema-version" : 1,
54 "template" : {54 "template" : {
55 "category-layout" : "grid",55 "category-layout" : "grid",
56 "collapsed-rows": 0,
56 "card-size": "small"57 "card-size": "small"
57 },58 },
58 "components" : {59 "components" : {
@@ -357,7 +358,7 @@
357 pusher.push_top_results(localResults, categoryTemplate);358 pusher.push_top_results(localResults, categoryTemplate);
358 }359 }
359360
360 const bool show_cat_title = current_dept.empty();361 const bool show_cat_title = current_dept.empty() && querystr.empty();
361 pusher.push_local_results(362 pusher.push_local_results(
362 localResults,363 localResults,
363 categoryTemplate,364 categoryTemplate,
364365
=== modified file 'scope/clickstore/store-query.cpp'
--- scope/clickstore/store-query.cpp 2014-07-31 19:25:30 +0000
+++ scope/clickstore/store-query.cpp 2014-08-01 05:17:22 +0000
@@ -100,12 +100,14 @@
100 "template" : {100 "template" : {
101 "category-layout" : "grid",101 "category-layout" : "grid",
102 "card-layout" : "horizontal",102 "card-layout" : "horizontal",
103 "collapsed-rows": 0,
103 "card-size": "large"104 "card-size": "large"
104 },105 },
105 "components" : {106 "components" : {
106 "title" : "title",107 "title" : "title",
107 "mascot" : {108 "art" : {
108 "field": "art"109 "field": "art",
110 "aspect-ratio": 1.13
109 },111 },
110 "subtitle": "subtitle"112 "subtitle": "subtitle"
111 }113 }
112114
=== modified file 'scope/tests/test_apps_query.cpp'
--- scope/tests/test_apps_query.cpp 2014-07-22 20:07:28 +0000
+++ scope/tests/test_apps_query.cpp 2014-08-01 05:17:22 +0000
@@ -271,3 +271,28 @@
271 }271 }
272}272}
273273
274TEST_F(DepartmentsTest, testNoDepartmentSearch)
275{
276 auto clickif = std::make_shared<MockClickInterface>();
277 auto ptrCat = std::make_shared<FakeCategory>("id", "", "", renderer);
278 auto depts_db = std::make_shared<MockDepartmentsDb>(":memory:", true);
279
280 // query for department-less search
281 {
282 const unity::scopes::CannedQuery query("foo.scope", "App", "");
283
284 MockAppsQuery q(query, depts_db, metadata, clickif);
285
286 scopes::testing::MockSearchReply mock_reply;
287 scopes::SearchReplyProxy reply(&mock_reply, [](unity::scopes::SearchReply*){});
288
289 EXPECT_CALL(*clickif, find_installed_apps(_, _, _)).WillOnce(Return(installed_apps));
290 EXPECT_CALL(mock_reply, register_category("local", StrEq(""), _, _)).WillOnce(Return(ptrCat));
291 EXPECT_CALL(mock_reply, register_category("store", _, _, _)).WillOnce(Return(ptrCat));
292
293 EXPECT_CALL(mock_reply, push(Matcher<unity::scopes::CategorisedResult const&>(_))).Times(2).WillRepeatedly(Return(true));
294
295 q.run(reply);
296 }
297}
298

Subscribers

People subscribed via source and target branches

to all changes: