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

Profile Gallery (List based version) #957

Merged
merged 33 commits into from
Jul 10, 2024

Conversation

believethehype
Copy link
Contributor

@believethehype believethehype commented Jun 29, 2024

Reasoning:

Nostr replaces many different platforms, but hasn't been focusing a lot on visual social media. By adding user galleries, users might add media to a grid so they can showcase some of their content/work to others. This has especially artists, photographers and users of platforms like instagram in mind.

Current Status:

User's can create a Kind 10011 List. (This is not added in nip51 yet, but will be suggested once we are happy with a format)

The current format of tags in that list is
["gallery", "eventid", "urlofmediatoshowingallery"]
(we might need something to differentiate between regular event ids and addressable ones, open for discussion)

The list contains both the id and the url as a user might want to pin the 2nd or 3rd image in a note, and we need the id so we can send users to the original note when clicking the gallery for comments, descriptions etc)

Users in Amethyst have a new Tab in Profile where they can decocrate a "gallery".
When opening media in fullscreen users can use the share button to add media to their gallery
When long pressing media in the gallery they can remove it. (this might take a couple of seconds)

You can of course visit other peoples profiles to see what they share in their Gallery.

Remaining issues:

  • When going back from a note to the gallery, it doesn't remember scroll position and users have to scroll down to the gallery again
  • Is the current 10011 format sufficient or do we need to distinguish tags for event ids and addressable events?

Update:
Videos now also should work in the Gallery

@believethehype
Copy link
Contributor Author

"When going back from a note to the gallery, it doesn't remember scroll position and users have to scroll down to the gallery again"

Just realised this happens on all feeds in the profile, also the notes and replies. Opened an issue #963

@believethehype believethehype marked this pull request as ready for review July 1, 2024 07:28
@believethehype believethehype marked this pull request as draft July 2, 2024 12:17
@believethehype
Copy link
Contributor Author

This is working right now, but I'm converting it to a draft again until there's agreement in nostr-protocol/nips#1340 on how the tags should be named, before it gets merged.

@believethehype believethehype mentioned this pull request Jul 5, 2024
@davotoula
Copy link
Contributor

Trying out your pull request. Is there an entry point from the app ui into your new functionality?

@believethehype
Copy link
Contributor Author

https://v.nostr.build/7G2me.mp4

@davotoula
Copy link
Contributor

davotoula commented Jul 6, 2024 via email

@believethehype
Copy link
Contributor Author

I think #973 is the better way to move forward, given the limitations of lists, feel free to close

@believethehype believethehype changed the title Profile Gallery Profile Gallery (List based version) Jul 7, 2024
@vitorpamplona vitorpamplona merged commit 06a1862 into vitorpamplona:main Jul 10, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants