Listoka / bittoka

4 stars 1 forks source link

The category should not be selectable when creating a post. Displayed, but no choice. #182

Open kels0la opened 5 years ago

kels0la commented 5 years ago

When you enter the publishing modal, the user is required to choose a category type. We do not want to make the user choose. Rather, they have already chosen by clicking the "create post" button in whatever category they were viewing.

Note [1]: Within the publishing modal, we will want to display the category the user is posting to. Note [2]: When properly implemented, this limits errors and makes for a smoother user experience. Note [3]: Once fixed, this will also solve the problem of the category names not displaying in the pending drafts. No category name is assigned to a draft when it is automatically saved to our database,

robbyphillips commented 5 years ago

FWIW, I disagree with this. I think that we should auto-populate the category, but not remove the option to change it.

Either way, this should be a pretty simple fix. We just need to pass the category name as a prop to the create post button, then have that button go to the /categories/:categoryName/posts/new url instead of the current /editor url.