diff --git a/app.js b/app.js
index e7ded2f9c7..7ce7c91ab9 100644
--- a/app.js
+++ b/app.js
@@ -6,5 +6,6 @@ const express = require('express');
const app = express();
app.use('/api/v1', require('./routes/api'));
+app.use('/client/', express.static('./dist'));
module.exports = app;
diff --git a/client/coral-embed-stream/public/samplearticle.html b/client/coral-embed-stream/public/samplearticle.html
new file mode 100644
index 0000000000..493fc29fac
--- /dev/null
+++ b/client/coral-embed-stream/public/samplearticle.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
Lorem ipsum
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lobortis sollicitudin eros a ornare. Curabitur dignissim vestibulum massa non rhoncus. Cras laoreet ante vel nunc hendrerit, ac imperdiet neque egestas. Suspendisse aliquet iaculis fermentum. Pellentesque interdum nec elit sed tincidunt. Donec volutpat, tellus posuere laoreet consequat, mi lacus laoreet massa, sed vehicula mauris velit non lectus. Integer non enim nec neque congue faucibus porttitor sit amet dui.
+
Nunc pharetra orci id diam feugiat, vitae rutrum magna efficitur. Morbi porttitor blandit lorem, et facilisis tellus luctus at. Morbi tincidunt eget nisl id placerat. Nullam consectetur quam vel mauris lacinia, non consectetur est faucibus. Duis cursus auctor nulla nec sagittis. Aenean sem erat, ultrices a hendrerit consectetur, accumsan non lorem. Integer ac neque sed magna sodales vulputate at quis neque. Praesent eget ornare lacus. Donec ultricies, dolor eget commodo faucibus, arcu velit ullamcorper tellus, in cursus tellus elit sed urna. Suspendisse in consequat magna. Duis vel ullamcorper tortor, vel cursus libero. Proin et nisi luctus ligula faucibus luctus. Morbi pulvinar, justo ac feugiat elementum, libero tellus congue justo, pharetra ultrices felis felis id leo. Integer mattis quam tempus libero porta, ac pretium ligula elementum.
+
+
+
+
+
+
diff --git a/client/coral-embed-stream/src/CommentStream.js b/client/coral-embed-stream/src/CommentStream.js
index 28d35860da..da5e25ff46 100644
--- a/client/coral-embed-stream/src/CommentStream.js
+++ b/client/coral-embed-stream/src/CommentStream.js
@@ -14,7 +14,7 @@ import Flag from '../../coral-plugin-flags/FlagButton'
import {ReplyBox, ReplyButton} from '../../coral-plugin-replies'
import Pym from 'pym.js'
-const {addItem, updateItem, postItem, getItemsQuery, postAction, appendItemRelated} = itemActions
+const {addItem, updateItem, postItem, getStream, postAction, appendItemArray} = itemActions
const {addNotification, clearNotification} = notificationActions
const {setLoggedInUser} = authActions
@@ -38,8 +38,8 @@ const {setLoggedInUser} = authActions
postItem: (data, type, id) => {
return dispatch(postItem(data, type, id))
},
- getItemsQuery: (rootId) => {
- return dispatch(getItemsQuery(rootId))
+ getStream: (rootId) => {
+ return dispatch(getStream(rootId))
},
addNotification: (type, text) => {
return dispatch(addNotification(type, text))
@@ -53,8 +53,8 @@ const {setLoggedInUser} = authActions
postAction: (item, action, user) => {
return dispatch(postAction(item, action, user))
},
- appendItemRelated: (item, property, value) => {
- return dispatch(appendItemRelated(item, property, value))
+ appendItemArray: (item, property, value) => {
+ return dispatch(appendItemArray(item, property, value))
}
}
}
@@ -72,7 +72,7 @@ class CommentStream extends Component {
// Set up messaging between embedded Iframe an parent component
// Using recommended Pym init code which violates .eslint standards
new Pym.Child({ polling: 500 })
- this.props.getItemsQuery('assetTest')
+ this.props.getStream('assetTest')
}
render () {
@@ -97,60 +97,58 @@ class CommentStream extends Component {
const rootItemId = 'assetTest'
const rootItem = this.props.items[rootItemId]
- console.log(this.props.items);
return