Closed
Bug 826289
Opened 13 years ago
Closed 13 years ago
Make default bookmarks customisable
Categories
(Firefox OS Graveyard :: Gaia::Browser, defect, P3)
Tracking
(blocking-basecamp:+)
People
(Reporter: stas, Assigned: benfrancis)
References
Details
(Keywords: productization, Whiteboard: QARegressExclude)
Attachments
(1 file)
+++ This bug was initially created as a clone of Bug #803328 +++
We should be able to customize init.json per locale/country/region/partner/other?.
Ideally, we would also have a default, unbranded version of this file checked into the repository.
Reporter | ||
Comment 1•13 years ago
|
||
Oops, bb+ got cloned over. Requesting properly now.
blocking-basecamp: + → ?
Comment 2•13 years ago
|
||
What do you think about that Beatriz ? If the target market is different the bookmark will be different and it will be a non issue ?
Flags: needinfo?(brg)
Comment 3•13 years ago
|
||
I'm wondering if this should be folded into bug 815517 as a partner customization.
Comment 4•13 years ago
|
||
I think that's a good concept. It rubs me backwards a bit that that bug is moco confidential. I don't think the general concept of doing bookmarks should be.
But yes, I think the bookmarks are more likely to be partner- than localization-dependent.
Comment 5•13 years ago
|
||
Triage: BB+, C4, P3
blocking-basecamp: ? → +
Target Milestone: --- → B2G C4 (2jan on)
Comment 6•13 years ago
|
||
Bookmarks should be customized per country-carrier-device type... not only localized.
Flags: needinfo?(brg)
Assignee | ||
Comment 7•13 years ago
|
||
What exactly is the blocking-basecamp requirement here?
As we've agreed before and as has been discussed here again, these bookmarks don't really need to be localisable as described in the bug title, they just need to be customisable by partners.
They can already be customised by editing the init.json file, but this isn't yet generated at build time from applications-data.js. We could achieve this by base-64 encoding the favicons as data URLs and putting the bookmarks data in applications-data.js if this is the requirement?
Assignee: nobody → ben
Reporter | ||
Updated•13 years ago
|
Keywords: l12y → productization
Assignee | ||
Comment 8•13 years ago
|
||
Changing title to what I understand the requirement to be.
Summary: Make default bookmarks localizable → Make default bookmarks customisable
Assignee | ||
Comment 9•13 years ago
|
||
Attachment #697952 -
Flags: review?(21)
Comment 10•13 years ago
|
||
This looks good to me. I would also like it if the file customize.json with the key bookmarks was present, that these bookmarks would get used instead of hardcoded bookmarks in applications-data.js but that can be added after.
Reporter | ||
Comment 11•13 years ago
|
||
So the proposed patch simply moves these Brazil-specific bookmarks from apps/browser to build/. It doesn't really make anything much more customizable than it is right now. It's a step in the right direction, for sure.
Here's an outline of a solution I had in mind. It can be implemented in this bug, or as a follow-up.
apps/browser/default_data/init.json should exist and have some unbranded default bookmarks in it. E.g. mozilla.org.
build/applications-data.js should also have a set of bookmarks in it, so that we can test that the build system correctly copies them to apps/browser/default_data/init.json. This could be for instance mozilla.org/firefoxos.
Finally, separate config files per partner, possibly living in a separate write-protected repository, should exist. When building Gaia, one would pass a variable specifying the customization file to use.
Comment 12•13 years ago
|
||
Looks good up to the last paragraph. most things in applications-data.js need to be hacked into oblivion by the people doing the builds to put on devices for partners, and I don't think we need to have all those variants in our repo.
Assignee | ||
Comment 13•13 years ago
|
||
(In reply to Staś Małolepszy :stas from comment #11)
> Here's an outline of a solution I had in mind. It can be implemented in
> this bug, or as a follow-up.
>
> apps/browser/default_data/init.json should exist and have some unbranded
> default bookmarks in it. E.g. mozilla.org.
The only reason I haven't put any data there is because I'd need to know what the "unbranded" default bookmarks should be, and it took about 6 months to get an answer on what the current ones should be!
> Finally, separate config files per partner, possibly living in a separate
> write-protected repository, should exist. When building Gaia, one would
> pass a variable specifying the customization file to use.
That's not how all the other customisations seem to currently work so that would be a wider issue. I agree with Axel. Let's not over-engineer this until we actually need this complexity. I doubt partners are going to want to check these files into our repository in general anyway.
Comment 14•13 years ago
|
||
Comment on attachment 697952 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/7292
This is probably good enough for now. Is is good to have as many things as possible in the build/application-data.js file in order to understand exactly what needs to be customize and to implement a decent customization strategy.
We have more and more things that our partners want to customize and implementing a definitive solution probably require more or less a dedicated person for a few weeks. I have heard many things in the last few months, UX/Products has ideas / requirements, l10n has some, devs have some... so... I would say let's identify the needs by moving things out of applications first (like this patch) and let's build on top of that later.
Attachment #697952 -
Flags: review?(21) → review+
Comment 15•13 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/b51c5e379c806f13558197d95db317f12f1d0e54
It would be nice to have a meta bug for tracking the customization infrastructure as well. (Ben, hint!)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 16•13 years ago
|
||
Comment 17•13 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #14)
> Comment on attachment 697952 [details] [review]
> https://github.com/mozilla-b2g/gaia/pull/7292
>
> This is probably good enough for now. Is is good to have as many things as
> possible in the build/application-data.js file in order to understand
> exactly what needs to be customize and to implement a decent customization
> strategy.
>
> We have more and more things that our partners want to customize and
> implementing a definitive solution probably require more or less a dedicated
> person for a few weeks. I have heard many things in the last few months,
> UX/Products has ideas / requirements, l10n has some, devs have some... so...
> I would say let's identify the needs by moving things out of applications
> first (like this patch) and let's build on top of that later.
I agree with this approach, let's try to keep it as simple as we can for the short term.
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•