Vivek-sudo / nimble-assessment.server

0 stars 0 forks source link

[Feature] Inform the user regarding expected CSV format #8

Open longnd opened 11 months ago

longnd commented 11 months ago

Issue

The application expect the CSV in the following format

keyword
{keyword1}
{keyword2}

example

keyword
reactJS
expressJS
hook

but there is no clue for the users to know unless reading the code https://github.com/Vivek-sudo/nimble-assessment.server/blob/713d24ad3c0567152aebc1c5ba9d720fa42d8ac5/src/controllers/keywordController.js#L27-L32

In fact, there are different format the user can upload, including

reactjs, expressJS, hook

or (without the keyword column name)

reactJS
expressJS
hook

but all of those case will fail without an error message letting the user know.

Expected

There is a clear instructions for the user regarding the expected CSV format. Ideally, there should be a template file for the user to download.

Vivek-sudo commented 11 months ago

Yes this could be done on the frontend side, I had some issues at home and due to which I wasn't able to improve the UX and make it more friendly. But yes this can be and should have been done.

Vivek-sudo commented 11 months ago

But I believe this is more of improvments and not implementation issue for the problem statement provided. I focused more on functionality on the problem statement given