Closed Bug 1003960 Opened 10 years ago Closed 10 years ago

[Home2] Search Integration

Categories

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

defect
Not set
normal

Tracking

(feature-b2g:2.0, b2g-v2.0 fixed)

RESOLVED FIXED
2.0 S1 (9may)
feature-b2g 2.0
Tracking Status
b2g-v2.0 --- fixed

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

(Whiteboard: [p=3],[systemsfe])

Attachments

(1 file, 1 obsolete file)

We would like to ship the search app along with the vertical homescreen in 2.0.

The benefits to this is that we will have less code in the vertical homescreen, and we can get some early user testing in the search app.

The search app will largely remain the same, with the exception of the removal of local history results.
Attached file Just stashing my WIP here... (obsolete) —
Depends on: 971543
Attached file Github pull request
This is actually working surprisingly well. Going to run it by UX and do some more testing first, but feel free to check it out if you'd like.
Attachment #8415466 - Attachment is obsolete: true
Comment on attachment 8415698 [details] [review]
Github pull request

Hey Ben, Vivien - this patch is shaping up quite nicely, and I think it's at a good point to open it up for review. Changes to rocketbar.js are minimal, and the effort to remove this when we have full rocketbar should be trivial. We also have unit tests and marionette tests in the homescreen case, so that should ease in the maintenance.

I like the fact that we can leverage most of the existing rocketbar.js code paths with this approach. I think this should mean for less duplication and less maintenance overhead. Let me know what you think!
Attachment #8415698 - Flags: review?(bfrancis)
Attachment #8415698 - Flags: review?(21)
Also uploaded this on try just because it's new integration tests for a dev_app which I'm not sure we have yet. Hopefully everything works as expected: https://tbpl.mozilla.org/?tree=Try&rev=759c8decc301
Comment on attachment 8415698 [details] [review]
Github pull request

I've left some comments in GitHub.

I'd be interested to get Vivien's take on this, particularly the use of inheritance to extend a 2.1 feature to build a 2.0 feature as I can't make up my mind whether this is a terrible idea or not. I do think it creates more risk of introducing regressions as we work on the full Rocketbar, but it is kind of cool ;)
Attachment #8415698 - Flags: review?(bfrancis)
Comment on attachment 8415698 [details] [review]
Github pull request

Hey Ben - 

I think most of your concerns have been addressed, and this should be ready for another round of feedback. 

I think there will need to be some changes to the search app for things like local history and opening of browser windows - though I would prefer to do that in a follow-up so this commit doesn't become massively large.

Please take a look if you have time. Thanks!
Attachment #8415698 - Flags: review?(bfrancis)
Comment on attachment 8415698 [details] [review]
Github pull request

Nice work.

Nit: the search bar placeholder text looks off-centre vertically for me on the Open C.

r+me with a green Travis.

Please file follow-up bugs for:
* Disable the places database (both DataStore and IndexedDB) with full Rocketbar turned off.
* Open a browser tab using a view URL web activity from the system app rather than opening a wrapper window from the search app when the user enters a URL.
Attachment #8415698 - Flags: review?(bfrancis) → review+
Depends on: 1006801
Depends on: 1006808
Comment on attachment 8415698 [details] [review]
Github pull request

Think we should be good here. The unit test failure was due to a recent upstream change (the statusbar fix). I've also done a few tweaks to the rocketbar text, and filed some bugs.

Thanks for the review. Once travis is green we'll merge.
Attachment #8415698 - Flags: review?(21)
Landed: https://github.com/mozilla-b2g/gaia/commit/1f0cd528128dc6047899e1c3f679de9065bad670
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Regarding customization, what is the default search engine and how can it be configured?
Flags: needinfo?(kgrandon)
(In reply to Marcelino Veiga Tuimil [:sonmarce] from comment #10)
> Regarding customization, what is the default search engine and how can it be
> configured?

The default search provider is currently everything.me surfaced by the search app. The search app is replaceable via a setting, but you would need to build an entire search application and tie into the system APIs. It's possible to do, but not an easy task.

The code for the search app is here: https://github.com/mozilla-b2g/gaia/tree/master/apps/search

We define the URL to the search app in settings here: https://github.com/mozilla-b2g/gaia/blob/master/build/settings.js#L150
Flags: needinfo?(kgrandon)
OK, thanks for the info
feature-b2g: --- → 2.0
Mass modify - set status-b2g-v2.0 fixed for fixed bugs under vertical homescreen dependency tree.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: