Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] User Story feature #152

Closed
narayan954 opened this issue Feb 4, 2023 · 34 comments · Fixed by #956
Closed

[FEATURE] User Story feature #152

narayan954 opened this issue Feb 4, 2023 · 34 comments · Fixed by #956
Assignees

Comments

@narayan954
Copy link
Owner

Description

Users can create and publish their stories and it should be accessible for 24 hours and then get deleted. Currently there's no public or private profile ,so just normal story should be fine.
Also, stories should consist of images only.

Screenshots

No response

Additional information

Advance to this issue could be the ability to put posts as story, text-based stories(just like the posts), and many more

@Biswajit-Behera
Copy link

Could I work on this issue??

@narayan954
Copy link
Owner Author

Under which program are you participating? @Biswajit-Behera

@Biswajit-Behera
Copy link

Under which program are you participating? @Biswajit-Behera

Under JWOC-2023

@Biswajit-Behera
Copy link

I am a Mantee in this program.

@narayan954
Copy link
Owner Author

Sorry @Biswajit-Behera but coding period hasn't started yet. Please go through and follow the program guidelines.

@Biswajit-Behera
Copy link

Sorry @Biswajit-Behera but coding period hasn't started yet. Please go through and follow the program guidelines.

Ok will comment on 15th of Feb-2023!

@TuhinBanerjee31
Copy link

Can I get assigned to this issue under JWOC ?

@narayan954
Copy link
Owner Author

Can I get assigned to this issue under JWOC ?

sure, go ahead!

@narayan954
Copy link
Owner Author

are you still working on this? please update

@Bharadwajshivam28
Copy link

@narayan954 Hello please assign it to me , its not under any event i just want to fix it so please assign to me

@narayan954
Copy link
Owner Author

@narayan954 Hello please assign it to me , its not under any event i just want to fix it so please assign to me

thank you! you can work on this. Feel free to connect in case there's anything I can help with. :)

@Bharadwajshivam28
Copy link

@narayan954 Hello please assign it to me , its not under any event i just want to fix it so please assign to me

thank you! you can work on this. Feel free to connect in case there's anything I can help with. :)

Thanks alot sir...

@dhruv8433
Copy link

I would like to work on this issue under GSSOC 23

@narayan954
Copy link
Owner Author

I would like to work on this issue under GSSOC 23

sure go ahead!

@dhruv8433
Copy link

@narayan954 Thank You

@dhruv8433
Copy link

@narayan954 I am created a story section which have backdrop and valid till 24 hours

story-dummygram.mp4

if you want any other changes, tell me

@narayan954
Copy link
Owner Author

@narayan954 I am created a story section which have backdrop and valid till 24 hours

story-dummygram.mp4
if you want any other changes, tell me

Hi Dhruv, in stories we can have pictures/text status or both. Also let them be scroll-able like you see in Instagram. Avatar should contain the users profile picture for now.

@dhruv8433
Copy link

Sorry it's difficult for me...

@narayan954
Copy link
Owner Author

Sorry it's difficult for me...

Ohhh, it's alright, I understand its difficult... don't take much stress, what can you do out of them?

@dhruv8433
Copy link

I'm created a add to story button but when user added their story it's overlap on posts

@narayan954
Copy link
Owner Author

I'm created a add to story button but when user added their story it's overlap on posts

isn't that a problem display property: fixed can solve? or if you want to, create a different route to show stories, like perhaps instagram does.

@dhruv8433
Copy link

Ok, i will try

@dhruv8433
Copy link

@narayan954
image
i am created a add button on which user can add image and text. when user click on avatar, user see their story and on story click user see next user's story(same as instagram), but when i refresh page, it doesn't apper please suggest me something for that... how can i store it?

@narayan954
Copy link
Owner Author

@narayan954 image i am created a add button on which user can add image and text. when user click on avatar, user see their story and on story click user see next user's story(same as instagram), but when i refresh page, it doesn't apper please suggest me something for that... how can i store it?

you'll need to store them in database. Just like posts are stored in database, you can create a stories collection and this segment of our website will be rendered from that storage. Adding a story will store that story on database and it should remain in memory for 24 hours or till a user will delete them.

@narayan954
Copy link
Owner Author

narayan954 commented May 30, 2023

you may leave the 24 hours functionality for now, just enable stories to be added to collection like posts

@dhruv8433
Copy link

Ok

@Palakkgoyal
Copy link
Contributor

Hey @narayan954 Can I work on this?

@narayan954
Copy link
Owner Author

narayan954 commented Jul 21, 2023

Go ahead! Also, seems like cloud functions for deleting in 24 hours won't be working on a free plan, how do you plan on implementing this?

@narayan954 narayan954 assigned Palakkgoyal and unassigned dhruv8433 Jul 21, 2023
@Palakkgoyal
Copy link
Contributor

Let's try if there is any other way.

@narayan954
Copy link
Owner Author

Let's try if there is any other way.

right, I'll check as well. Else, we would've to store em all and show the last 24 hours story and delete older stories manually or as a cron job XD

@Palakkgoyal
Copy link
Contributor

No, we will not need to do any such task 😂. I have basically set up a structure for it. Let me tell you, User can add only one story at this point of time(we can work on it later), then, we will store the timestamp of story in user doc. Whenever the profile page get opened we will check whether its been more than 24 hours or not using the timestamp in user doc(This way we will not need to fetch data seperately for story) and if the story is older than 24 hours then we will run a function to delete it from the story collection.
When someone click on user avatar to watch story then, if the story exists then only it get fetched from the server else not.
Downside: If noone visits user profile then, the story will remain there but I think it will not impact any user experience or server performance.
What do you think?

@narayan954
Copy link
Owner Author

No, we will not need to do any such task joy. I have basically set up a structure for it. Let me tell you, User can add only one story at this point of time(we can work on it later), then, we will store the timestamp of story in user doc. Whenever the profile page get opened we will check whether its been more than 24 hours or not using the timestamp in user doc(This way we will not need to fetch data seperately for story) and if the story is older than 24 hours then we will run a function to delete it from the story collection. When someone click on user avatar to watch story then, if the story exists then only it get fetched from the server else not. Downside: If noone visits user profile then, the story will remain there but I think it will not impact any user experience or server performance. What do you think?

Yes, this is what I meant by manually, we're manually checking time and deleting the story. But that's okay for now. I just read this comment and had picked some of these issues there as well XD. This should work, for now.
Thank you!

@Palakkgoyal
Copy link
Contributor

No worries rather I thank you cause you told so many issues to me. Now, I will go and create issues for all of them and send PR XD.

@narayan954
Copy link
Owner Author

No worries rather I thank you cause you told so many issues to me. Now, I will go and create issues for all of them and send PR XD.

lol nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants