community-platform icon indicating copy to clipboard operation
community-platform copied to clipboard

[feature request] Add button to delete (or draft) research step

Open davehakkens opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. Currently a user can't delete a research step. Atm we deleted them directly in Firebase. This problem is mainly occuring on newly created steps, not old ones with comments.

Page https://dev.onearmy.world/research/[insert-research-topic-title]/edit-update/

Describe the solution you'd like A button that can delete a research step

Describe alternatives you've considered Another way to fix the problem is we could add the feature to "save as draft" for the latest step. In this case if a new step gets posted but is not completed enough it could be reverted to a draft.

Additional context Not sure how much complexcity this adds in the changing the order of the research articles if an older step gets deleted. Since steps numbers might be linked to notifications or urls.

Additional context delete research step

davehakkens avatar Apr 02 '23 14:04 davehakkens

Thanks for taking the time to write up these steps. I think we would probably want both options here:

  • The ability to unpublish something
  • The option to delete a step

In fact you could argue that a deleted status is similar to the draft status, the post is not publicly accessible but available for the author. Think of it as the trash/recycling bin common to most operating systems, so it's still there for a period of time to recover if the author changes their mind.

thisislawatts avatar Apr 02 '23 16:04 thisislawatts

Agree both are useful. Should we keep both in one issue or split them?

davehakkens avatar Apr 03 '23 16:04 davehakkens

I think a single issue is reasonable, there may be multiple PRs required to deliver the changes but that would be for the implementer to decide

thisislawatts avatar Apr 03 '23 20:04 thisislawatts

@thisislawatts are you actively working on this one or should I add it back to the pool?

iSCJT avatar Jun 22 '23 14:06 iSCJT

I think this has already been closed by: https://github.com/ONEARMY/community-platform/issues/2199

thisislawatts avatar Jul 10 '23 19:07 thisislawatts