iScsc / iscsc.fr

The iScsc website, build with passion by wannabe devs 🔥
GNU General Public License v3.0
4 stars 12 forks source link

Allow article to be set to `private` #75

Open ctmbl opened 1 year ago

ctmbl commented 1 year ago

Context

Right now, when creating an article it is directly published and there isn't any step between.

Problem

In multiple situations this could upset the user:

Solution I'd like

We should change the article storage scheme to add at list one of the state I introduced above. We should filter the list of article shown on the main page to show only:

The state of such articles should be clearly displayed with a colored tag near its name for example, maybe with the mention "only you can see this". The user should find (ofc) these articles on its future profile page introduced by #12

Last point

I'd like to add this issue to the 0.2.0 milestone!

atxr commented 1 year ago

This is a really good point.

Regarding your use cases, the Draft mode looks mandatory. However, I don't really see the point of using a Private mode, neither for modifying a blog post (you can edit it and add a WORK IN PROGRESS at the top if you need time to work on it), nor for keeping a post for yourself (what's the point of posting it on the blog then? Do you mean one could post a private blog post and control which user can access it?).

ctmbl commented 1 year ago

@atxr Glad that you like it!

However, I don't really see the point of using a Private mode

If a post can be switched from Public to Draft at any time we can avoid it I think! I was just thinking that a post "private" or "paused" because it needs refactoring, an update or so and a post Draft becuase it is not yet finished aren't the exact same thing.