Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

feat(mc) #2837 Add snippets stuff #2868

Merged
merged 1 commit into from
Jul 18, 2017
Merged

Conversation

k88hudson
Copy link
Contributor

@k88hudson k88hudson commented Jul 17, 2017

This adds an initial implementation of snippets integration. It currently works with the v4 snippets endpoint (although it looks a bit weird). Remaining issues:

  • indexedDB still needs to be enabled on about:newtab for us to connect to it
  • default snippets need to be implemented

Closes #2013 and #2837

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.576% when pulling e9d6c60 on k88hudson:gh2837 into 1cb8c84 on mozilla:master.

Copy link
Contributor

@sarracini sarracini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ with nits


// Note that injecting snippets can throw if they're invalid XML.
if (containerEl) {
containerEl.style.display = "block";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unhide this after

@@ -0,0 +1,261 @@
const DATABASE_NAME = "abouthome";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename to aboutnewtab?

@@ -8,6 +8,10 @@
</head>
<body class="activity-stream">
<div id="root"></div>
<div id="topSection"></div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just add a comment here about why it's needed, since this sounds important 😅

}
onAction(action) {
switch (action.type) {
case at.INIT:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add feed init case here

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.576% when pulling 6072cf7 on k88hudson:gh2837 into 33cef85 on mozilla:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.576% when pulling 4132e47 on k88hudson:gh2837 into 33cef85 on mozilla:master.

@k88hudson k88hudson merged commit 157fcbc into mozilla:master Jul 18, 2017
@as-pine-proxy
Copy link
Collaborator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants