Open seefeldb opened 6 years ago
re - 2: if the view was provided by a particle (that fetches wishlists from a certain service or smth) and that particle has description configured for its output view, this description would carry over to the next suggestions using this view.
1: Excellent, seems that this got lost in the recipe shuffle. I'll add it back.
2: It's being extracted from the other arc and inserted into the context by the frontend code. So the original particle isn't running, but the frontend code could probably play the same role? @noelutz?
(re 2.: it seems that should work! we'll try that tomorrow. the tests you wrote are also very helpful to understand how that all works!)
I tried
create #wishlist as wishlist
description `wishlist`
But that didn't work. This is an example of using a few generic particles in a new meaning that only emerges at the recipe level, so this would be quite useful. Should we add that or am I misunderstanding the concept?
The full recipe is:
recipe
map WishlistCandidates as candidates
create #wishlist as wishlist
Chooser
resultList = wishlist
choices <- candidates
ShowProducts
list <- wishlist
there is no support for the description in a recipe view (like the example you gave). the description now is only supported for particle view connections (and manifest views).
let me know if you think i should add descriptions to recipe views as well. ideally the recipe aren't hand-crafted and good descriptions are derived from properly-ranked particles, but until we get there, it is probably a good workaround - WDYT?
Yes, ideally they aren't handcrafted, so we should have an idea of where this could come from in the future, before we depend too much on it. But this is a good example for where the user would naturally add this, when somehow naming the arc or the arc's contents: It is a combination of particles that together now have a new meaning, the individual particles didn't have. So FTR, I could see these options:
In the meantime, I think I can hack this by copying an empty list instead of creating one. Does the description get copied as well?
I like option 3 the most (the less we depend on users to label stuff, the better the system is).
yes, if the manifest view has description and the recipe copies this view - the description will be copied too (if it isn't, this is a bug and i'll fix it:).
@seefeldb now that we do have recipe descriptions, so probably adding descriptions to stores via recipe handle is reasonable and consistent. shall i add it, wdyt?
@seefeldb to comment on above.
Right now we say things like "recommendation from list of Products (Minecraft and 3 more)", when it would be nice to say "recommendations from Claire's wishlist (Minecraft and 3 more).
Unpacking this, there are actually two requests: 1) A way for the view itself to have a name that is used in descriptions, replacing "list of Products" with "wishlist" 2) A modifier describing where that view came from, i.e. "Claire's". Right now the frontend does that, but in the future I'd imagine a strategy doing that.