Build a Smart Pantry Restocker - Build a Smart Pantry Restocker

Tell us what’s happening:

I find the problem statement to be unclear. Each of the first three user stories is missing important information:

User story #1: The format of the parsed data is unclear.
User story #2: It is unclear how to decide which action to take. A look at the tests might be enough to provide guidance on this, though.
User story #3: If I understand correctly, the return type should be an object containing arrays of actions on each property?

Please provide me with more details, especially on #1.

Challenge Information:

Build a Smart Pantry Restocker - Build a Smart Pantry Restocker

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-smart-pantry-restocker/69a5f35669099ed52f8563b1.md at main · freeCodeCamp/freeCodeCamp · GitHub

Right as I’m posting this, I see there are hints on the GitHub link that was appended to my post.

The example given for the format is:
const rawData = ["A10|Tomatoes|5|2027-01-01|fridge"];

Yes this Lab needs some example strings because the User Story says very little in my opinion.

Solved this now.

One more issue I had, ‘actions’ are objects with the properties ‘type’ and ‘item’, both in #2 and #3.

Given all information I provided here, I believe, it should be possible to solve this lab without further help. #5 is a bit unclear, but there’s really just one straightforward way to do it.

Yes, just another prime example of how sloppy they’re getting with some of these new additions. Honestly not sure if humans are even producing these anymore and they’re passing poor design off as difficulty. Thanks for sharing the github link where we can find what the passed data looks like.

To staff, please consider improve this lab description, data format of rawData and each function output is not really clearly specified.

Or, the test case could be reworded clearer to describe expected. The experience of TTD here e.g. to dig thru console log is painful.

For real, I had to come here because the lesson was probably one of the most vague and confusing lessons I’ve encountered on FCC.

I would say that this lab would be a bit easier it they included the pantry and rawData arrays in the scripts.js from the start. I feel like other labs have some starter data to work with.

Hi

This has been raised as an issue on Github. I have asked them to also fix the instructions for the second function as well as the first one.

This style of instruction seems to be a very different from the older labs.

This lab took me around 4 hours, but with clearer and more complete instructions I could have finished it in about 15 minutes… And I’m still stock on #5… That’s not a productive exercise, you learn nothing except to guess what the author wanted when he wrote it.

edit : in #5 you have to add your own data to the exercice to show groupedbyzone…