damus icon indicating copy to clipboard operation
damus copied to clipboard

Pin my Note [NIP-51][Feature Request]

Open alltheseas opened this issue 2 years ago • 1 comments

User Story

As a pleb Damus user who would like to pin my note on my profile's page, I would like the capability to pin, and unpin one of my notes, so that I can easily display an important note to myself, and my profile's visitors.

Acceptance Criteria

  1. Damus user can see an option to Pin Note by holding down tap on any of the given user's notes,
  2. If Damus user taps on Pin Note, then user is prompted in a popup titled Pin Note to Profile?. Bodytext of popup reads: "This note will appear at the top of your profile, and replace any previously pinned note."
  3. User can select cancel, or Pin
  4. If user selects 'Pin' (purple color button) the selected note is pinned to the top of the user's profile,
  5. If user selects 'cancel' popup exits, and nothing is changed,
  6. Pinned notes have a pin icon, and the word Pinned Note displayed above them,
  7. Timeline of notes is displayed below the pinned note,
  8. For pinned notes, user has the option to Remove Pinned Note. User can access this option by holding tap on a pinned note.
  9. If user selects Remove Pinned Note, then the note pin is removed, and note is no longer displayed at the top of user profile
  10. Add pin attribution in menu/about/credits etc. Pin CC 4.0 attribution (or add/create other pin):
https://www.figma.com/community/file/886554014393250663
By Leonid Tsvetkov
https://creativecommons.org/licenses/by/4.0/

Implementation Utilize NIP-51: https://github.com/nostr-protocol/nips/pull/183 Snort social has implemented pinned feature https://github.com/v0l/snort/pull/255

Mockup: Pin Popup (1)

pinned note

Pin Note Menu Option

alltheseas avatar Feb 13 '23 20:02 alltheseas

@BenGWeeks suggested a NIP should be utilized, or created if it doesn't exist.

@joelklabo suggested a new profiled field for pinned note, and that it is preferred to go the NIP route, vs Damus only implementation.

~It could be that pinned note relates to NIP-16 https://github.com/nostr-protocol/nips/blob/master/16.md Replaceable Event kind~

Snort social implementted using NIP-51. Check snort implementation

NIP-51: https://github.com/nostr-protocol/nips/pull/183 Snort feat: pinned notes and bookmarks https://github.com/v0l/snort/pull/255

alltheseas avatar Feb 14 '23 14:02 alltheseas