activity-stream
activity-stream copied to clipboard
Testing a sponsored section flow
I added comments to help explain the code. if you give it a try, I've setup some test data in the hardcoded layout. what happens in there is trying different combinations of sponsored collections, campaign collections, same with components. If it's a DSDismiss stub, it's wrapped in light green!
Overall this should work, I guess the biggest assumption this approach has is there is no way to individually identify a record is a promotion content or publisher content. All the items in a collection if it has campaign_id are promotion content and we are not allowing a collection e.g. with CardGrid have both promotion content and publisher content in it which definitely simplifies complexity.