plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Follow button not showing the user is subscribed on the /subscriptions page

Open Souravirus opened this issue 7 years ago • 13 comments

Reported on #5182 The subscribe button is actually working in the backend but it's not being shown to the user. Also, the user count is not increased after clicking the follow button.

The page is this and here is the screenshot. image

Souravirus avatar Apr 15 '19 12:04 Souravirus

If this issue is open to be worked upon, I would like to give it a try. Thanks!

divyabaid16 avatar Apr 15 '19 18:04 divyabaid16

The user count is increased on refreshing the page. Also, we can add a toggle button for following or unfollowing a tag in the same subscription column. Currently, the "follow" button also changes to "following" when the page is refreshed.

gautamig54 avatar Apr 15 '19 19:04 gautamig54

@divyabaid16 Can we divide the issue? I can create a toggle button for following or unfollowing a tag and you can work upon the incrementing the user count without needing to refresh the tags page.

gautamig54 avatar Apr 15 '19 19:04 gautamig54

Sure!!

divyabaid16 avatar Apr 16 '19 02:04 divyabaid16

Should the user be allowed to delete their subscription from the tags page directly? There is a separate page for managing subscriptions which provides the user an option to unsubscribe a particular tag. Considering this, If a user follows a certain tags and wishes to unfollow it, we can direct the user directly to the "Manage Subscriptions" page rather than the tag specific page. What do you think @Souravirus @divyabaid16 ?

gautamig54 avatar Apr 16 '19 15:04 gautamig54

Yeah that would also be great. Thank you for working on it.

Souravirus avatar Apr 16 '19 19:04 Souravirus

I have written a code for changing the text from "follow" to "following" when clicked. But, it only works once. I will have to refresh the page again for the click to work again. It can be because the query is set to work only for one action. What do you think about this @divyabaid16?

gautamig54 avatar Apr 17 '19 14:04 gautamig54

@gautamig54 I guess you will need to make changes in routes.rb Also, I would like to give one more suggestions, if we could auto refresh the page during certain interval of time like suppose 5 mins so that all the update in the page can be visible and there will be no need to refresh the page in certain inrerval.

divyabaid16 avatar Apr 17 '19 15:04 divyabaid16

Should the user be allowed to delete their subscription from the tags page directly? There is a separate page for managing subscriptions which provides the user an option to unsubscribe a particular tag. Considering this, If a user follows a certain tags and wishes to unfollow it, we can direct the user directly to the "Manage Subscriptions" page rather than the tag specific page. What do you think @Souravirus @divyabaid16 ?

@gautamig54 Regarding this, a new layout of tags page was proposed by @jywarren in issue #5090 In this, the user can unsubscribe directly.

divyabaid16 avatar Apr 18 '19 06:04 divyabaid16

@Souravirus I want to work on this issue.

Utiwari1999 avatar Nov 09 '19 18:11 Utiwari1999

@Souravirus I also want to work on this issue.

jainil-4801 avatar Nov 09 '19 18:11 jainil-4801

Hi @Utiwari1999, sorry for the late reply. Yeah you can surely work on this. Thank you!!

Souravirus avatar Nov 21 '19 05:11 Souravirus

I believe this is resolved in the new design, thank you!!!

jywarren avatar Jan 03 '20 22:01 jywarren