Closed Bug 1515679 Opened 2 years ago Closed 2 years ago

Add test data / initial dev tools for testing / developing pocket layouts


(Firefox :: New Tab Page, enhancement, P1)




Firefox 66
66.3 - Jan 7 - 20


(Reporter: k88hudson, Assigned: k88hudson)



We'd like to be able to easily develop on the layout/component system so having some locally available data would be beneficial.
It was mentioned today that there's a gist being passed around to do this in the interim.  What's the URL for that?
Flags: needinfo?(gsuntop)
We should switch over to the actual API ASAP. The gist schema is slightly outdated now...
Hmm...looks like that's down. Mathijs, what URL is the endpoint at now?
Flags: needinfo?(mathijs)
I was using my staging server briefly for something else on Friday and switched back to this branch when done. Sorry for the interruption. I'll deploy to production today.
Flags: needinfo?(mathijs)
Repost from Slack:

Layout endpoint is live on our production server:

You can use Mozilla's CDN as we do for the current new-tab:
Let me know if you want to test any particular layouts. Once the actual feed variants are defined by product, I'll add those too.

We're also hosting the endpoint definition (thanks for the idea @gvn!)
It's using the OpenAPI 3.0 syntax. The intent is to use this for automated tests, to validate that the schema. Let me know if you want to use it for some other purpose, in particular if you want to use it in production code, which I am assuming we won't do.
Assignee: nobody → khudson
Iteration: --- → 66.3 - Jan 7 - 20
Priority: -- → P1
Severity: normal → enhancement

I'm going to close this since our initial implementation is usable and working for what we need.

If there is more work to be done, let's file individual issues as needed.

Closed: 2 years ago
Resolution: --- → FIXED

[Note for QA]: No new code is associated with this bug, new functionality was tested in

Target Milestone: --- → Firefox 66
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.