Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

71%
+3 −0
Q&A UI question: how should the "post" button behave in restricted categories?

Most of the time, any logged-in user can post a new top-level post (question, article, maybe other types). Categories can restrict this posting access, however. For example, on the Meta blog, onl...

3 answers  ·  posted 2y ago by Monica Cellio‭  ·  last activity 1y ago by trichoplax‭

#1: Initial revision by user avatar Monica Cellio‭ · 2023-01-31T23:38:56Z (almost 2 years ago)
UI question: how should the "post" button behave in restricted categories?
Most of the time, any logged-in user can post a new top-level post (question, article, maybe other types).  Categories can restrict this posting access, however.  For example, on the Meta blog, only moderators and administrators can post.

Everybody sees a "create post" button.  If you aren't allowed to post in that category, clicking the button takes you to a new page that shows an error like the following:

![You don't have a high enough trust level to post in the Blog category](https://meta.codidact.com/uploads/2r01jsefjpmnjsnv06wcqvpjzjvg)

(The "trust level" wording pre-dates the abilities system, in case you're wondering.)

This is not a great user experience.  What should we do instead, keeping in mind that we want the software to work on touch interfaces as well as on desktops with mice (so we shouldn't rely only on tooltips)?

Here are some options that have come up in a [discussion](https://github.com/codidact/qpixel/issues/994) on GitHub:

- Show the button in a disabled state.  This is similar to what we do for comments or posts that are too short.  Downside: this doesn't explain *why* it's disabled.  (Comments and posts show a character count, so you can make a guess.)  I think buttons that we show disabled are usually *temporarily* disabled -- you need to do something and then they become available.

- Don't show the button at all.  This is similar to the options under posts; you don't see "close" and "delete" until you can perform those actions.  It is dissimilar to some other things, like voting buttons which are always shown.  Would the absence of the button make people think there's a bug?

- Show different text, either replacing the button or as different text *on* the button.  This would have to be short to not break the layout -- "why can't I post?" might be too long (especially on a phone).  There's also a concern that this puts a negative message at the top of every page on a restricted category.

- Keep the button, and on click, show an in-page message instead of navigating away.  (I'm thinking of, for example, what you get after you submit a flag -- a short overlay that you have to dismiss.)

- Something else?


## Some additional considerations

The text of the "create post" button is customizable. On many communities it's set to "ask question".  The [Code Golf sandbox](https://codegolf.codidact.com/categories/50) uses "create draft".  [One category on Cooking](https://cooking.codidact.com/categories/29) uses "post recipe".

We should think about the case where a user who would otherwise be able to post is temporarily restricted, for example due to a suspension.  "Policy" language probably mitigates this (for example, "X is required" versus "you can't because you don't have X").

The options for restricting access are not aligned with abilities (which came later).  Here are the possible settings for "who can post"; I am not sure of the definitions of the second and third (will need to ask).  Perhaps these options should be revised, but that's a separate issue.

- anyone with a user account (default)
- all but new users
- veteran users
- moderators only
- staff only