zubhub icon indicating copy to clipboard operation
zubhub copied to clipboard

Create activities is available to normal users via the route

Open yokwejuste opened this issue 1 year ago • 25 comments

Describe the bug The creation of activities should be available only to staff and educator, reason why we don't see it appearing on the sidebar as normal users(creators). When you get to the route /activities/create/ you can create an activitivy though it won't appear

To Reproduce Steps to reproduce the behavior:

  1. Go to Zubhub and login
  2. Go to /activities/create/
  3. Follow the steps
  4. See error

Expected behavior Normally it was to prompt a message to tell the user "resources not available to creators", something like that.

Screenshots image image image

yokwejuste avatar Oct 17 '23 04:10 yokwejuste

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

maureen-oz avatar Oct 18 '23 02:10 maureen-oz

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

You can do that locally

Tell me, designer or dev so I can guide you

yokwejuste avatar Oct 18 '23 03:10 yokwejuste

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

You can do that locally

Tell me, designer or dev so I can guide you

Hi @yokwejuste I think we designers can't see this problem or the updated version of the site. How do we fix this please? Thank you

mehreeee avatar Oct 18 '23 06:10 mehreeee

@yokwejuste For this issue, I think if a regular user (creator) attempts to access /activities/create/, they should see an error prompt message like "Access Denied: This feature is available only to staff and educators." Improved User Flow:

Alternatively, we can redirect them to an accessible page for creators, perhaps guiding them to a page where they can explore existing activities on the platform. This modal combines both suggestions. modal

Temabo avatar Oct 18 '23 06:10 Temabo

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

You can do that locally

Tell me, designer or dev so I can guide you

Hi @yokwejuste I think we designers can't see this problem or the updated version of the site. How do we fix this please? Thank you

I think we can go and do something like a join call so you can have a view of it but unless you install it you can have it available

yokwejuste avatar Oct 18 '23 08:10 yokwejuste

@yokwejuste For this issue, I think if a regular user (creator) attempts to access /activities/create/, they should see a prompt message like "Access Denied: This feature is available only to staff and educators." Improved User Flow:

Alternatively, we can redirect them to an accessible page for creators, perhaps guiding them to a page where they can explore existing activities on the platform. This modal combines both suggestions. modal

Interesting combination,

The robot design matches with the theme and designs of zubhub

yokwejuste avatar Oct 18 '23 08:10 yokwejuste

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

You can do that locally

Tell me, designer or dev so I can guide you

I'm a designer

maureen-oz avatar Oct 18 '23 08:10 maureen-oz

For preventing uninformed activity creation by creator accounts (users), I recommend two potential solutions:

  1. Modal Approach: Before accessing the "Create Activity" page, a modal could pop up, informing users that they are restricted from creating visible activities.
  2. Tooltip Notification: As an alternative, when creators click on the "Create Activity" option, a tooltip wil appear above the form. This tooltip will clarify that while they can proceed with the activity creation, the resulting activity will not be publicly displayed. This method reaffirms the point you previously highlighted about the visibility constraint.

Both options aim to clearly communicate the limitations and manage user expectations effectively.

zub

maureen-oz avatar Oct 18 '23 09:10 maureen-oz

Hello @yokwejuste , I want to work on this issue as a developer.

Urmilasc avatar Oct 18 '23 09:10 Urmilasc

@yokwejuste For this issue, I think if a regular user (creator) attempts to access /activities/create/, they should see an error prompt message like "Access Denied: This feature is available only to staff and educators." Improved User Flow:

Alternatively, we can redirect them to an accessible page for creators, perhaps guiding them to a page where they can explore existing activities on the platform. This modal combines both suggestions. modal

Love this design. Plus, access denied sounds really robot-y. Love it!

DonPresh avatar Oct 18 '23 09:10 DonPresh

@yokwejuste For this issue, I think if a regular user (creator) attempts to access /activities/create/, they should see an error prompt message like "Access Denied: This feature is available only to staff and educators." Improved User Flow:

Alternatively, we can redirect them to an accessible page for creators, perhaps guiding them to a page where they can explore existing activities on the platform. This modal combines both suggestions. modal

Love this design. Plus, access denied sounds really robot-y. Love it!

Thanks! @DonPresh I thought so too!

Temabo avatar Oct 18 '23 09:10 Temabo

@yokwejuste For this issue, I think if a regular user (creator) attempts to access /activities/create/, they should see an error prompt message like "Access Denied: This feature is available only to staff and educators." Improved User Flow:

Alternatively, we can redirect them to an accessible page for creators, perhaps guiding them to a page where they can explore existing activities on the platform. This modal combines both suggestions. modal

This looks really good

mehreeee avatar Oct 18 '23 10:10 mehreeee

For preventing uninformed activity creation by creator accounts (users), I recommend two potential solutions:

  1. Modal Approach: Before accessing the "Create Activity" page, a modal could pop up, informing users that they are restricted from creating visible activities.
  2. Tooltip Notification: As an alternative, when creators click on the "Create Activity" option, a tooltip wil appear above the form. This tooltip will clarify that while they can proceed with the activity creation, the resulting activity will not be publicly displayed. This method reaffirms the point you previously highlighted about the visibility constraint.

Both options aim to clearly communicate the limitations and manage user expectations effectively.

zub

This is a very crisp design!

DonPresh avatar Oct 18 '23 11:10 DonPresh

@yokwejuste For this issue, I think if a regular user (creator) attempts to access /activities/create/, they should see an error prompt message like "Access Denied: This feature is available only to staff and educators." Improved User Flow:

Alternatively, we can redirect them to an accessible page for creators, perhaps guiding them to a page where they can explore existing activities on the platform. This modal combines both suggestions. modal

Love this design. Plus, access denied sounds really robot-y. Love it!

Thanks! @DonPresh I thought so too!

@Temabo Just a thought, So this access denied looks more like fun than a warning. Can you maybe add something that makes it look like you are warning the user about something? I want to say make "access denied" red but you can do your thing!

DonPresh avatar Oct 18 '23 11:10 DonPresh

Hi @srish @yokwejuste these are my explorations to solve this problem. I believe the page should display a 403 error. This could be achieved through either a modal pop-up in the initial frame or by loading the error on a separate page and then redirecting the user back to the previous page.

Error messages provide clear guidance on what went wrong and how to correct it. This reduces user frustration and helps them proceed without getting stuck.

Restricted 1

Restricted 2

mehreeee avatar Oct 18 '23 14:10 mehreeee

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

You can do that locally Tell me, designer or dev so I can guide you

Hi @yokwejuste I think we designers can't see this problem or the updated version of the site. How do we fix this please? Thank you

Hey @mehreeee you can see the activities page here and even the create activities here

aqsaaqeel avatar Oct 18 '23 22:10 aqsaaqeel

@Temabo Can you develop the design for an entire page where the robot design & message would fit in?

srish avatar Oct 19 '23 01:10 srish

@Temabo Can you develop the design for an entire page where the robot design & message would fit in?

Alright @srish i'd do that.

Temabo avatar Oct 19 '23 02:10 Temabo

Before I can jump on this task, I have a question. How did you create this activity as a Creator, what button did you click? I don't see a Create Activity button @srish @yokwejuste ?

You can do that locally Tell me, designer or dev so I can guide you

Hi @yokwejuste I think we designers can't see this problem or the updated version of the site. How do we fix this please? Thank you

Hey @mehreeee you can see the activities page here and even the create activities here

Thank you!!

mehreeee avatar Oct 19 '23 04:10 mehreeee

Concerning this issue @yokwejuste. It's fixed here https://github.com/unstructuredstudio/zubhub/pull/885. Note all @tuxology's comments I guess I will also have to move on with @Temabo's designs once ready

coderatomy avatar Oct 19 '23 08:10 coderatomy

Concerning this issue @yokwejuste. It's fixed here #885. Note all @tuxology's comments I guess I will also have to move on with @Temabo's designs once ready

Here it is:

  1. No slug in the response from the backend image
  2. Slug field, slugified from the title: image

yokwejuste avatar Oct 19 '23 09:10 yokwejuste

@srish @coderatomy @yokwejuste This is what it looks like on an entire page. I also included a Back button to take them back to the previous page they were on if they do not want to explore activities. Kindly review access denied (1) access denied

Temabo avatar Oct 19 '23 09:10 Temabo

The PR is not merged yet but its fixes @yokwejuste. Please take a look and read through the conversations there

coderatomy avatar Oct 19 '23 09:10 coderatomy

@srish @coderatomy @yokwejuste This is what it looks like on an entire page. I also included a Back button to take them back to the previous page they were on if they do not want to explore activities. Kindly review access denied (1) access denied

Honestly @Temabo, you shouldn't bother yourself with designs here. If users have no privileges to create an activity, they won't see any link that helps them create an activity. Adding to that, even if they try accessing through the url, they will be redirected to /activities. Check the conversations here https://github.com/unstructuredstudio/zubhub/pull/885#issuecomment-1763442693.

coderatomy avatar Oct 19 '23 09:10 coderatomy

The PR is not merged yet but its fixes @yokwejuste. Please take a look and read through the conversations there

Then just reference this issue took, so it will be closed

yokwejuste avatar Oct 19 '23 11:10 yokwejuste