feat: badges #58

Merged
Kieran merged 6 commits from badges into home 2023-08-01 09:17:17 +00:00
Collaborator
  • render badges in cards
  • render mentioned badges in chat
  • render host badge awards in chat
  • render accepted badges from host next to username
- render badges in cards - render mentioned badges in chat - render host badge awards in chat - render accepted badges from host next to username
verbiricha added 1 commit 2023-07-31 21:12:36 +00:00
- render badges in cards
- render mentioned badges in chat
- render host badge awards in chat
- render accepted badges next to username
Kieran reviewed 2023-07-31 21:28:50 +00:00
@ -0,0 +44,4 @@
const acceptedSub = useMemo(() => {
if (rawBadges.length === 0) return null;
const rb = new RequestBuilder(
`accepted-badges:${pubkey.slice(0, 12)}:${rawBadges.length}`,
Owner

shouldn't need the rawBadges.length if the a tags array gets longer it should send only the extra tags that are added for the same RequestBuilder(id)

shouldn't need the `rawBadges.length` if the `a` tags array gets longer it should send only the extra tags that are added for the same `RequestBuilder(id)`
Author
Collaborator

mb, removed this and the other.

mb, removed this and the other.
Kieran marked this conversation as resolved
@ -46,2 +44,3 @@
if (etags.length === 0) return null;
const rb = new RequestBuilder(`reactions:${link.id}:${link.author}`);
const rb = new RequestBuilder(
`reactions:${link.id}:${link.author}:${etags.length}`,
Owner

Length should not be needed

Length should not be needed
Kieran marked this conversation as resolved
verbiricha added 1 commit 2023-07-31 21:42:36 +00:00
verbiricha added 1 commit 2023-08-01 04:35:50 +00:00
verbiricha force-pushed badges from 7f7bf750e1 to 1d0c2e8980 2023-08-01 06:15:49 +00:00 Compare
verbiricha added 1 commit 2023-08-01 08:02:36 +00:00
Author
Collaborator

stream with badge awards and emblems in chat

naddr1qqjrscnrvcenqvfk94jrvvpe956xydtx943rwvtp95erwvrr8pjr2wpjx93rxq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxw9d39d3

badges in cards/chat

naddr1qqjrqwpsxgen2ce595mr2cfn956ryetr95ursdph95ck2dpsxv6nqwfexcenzq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxwmcv4xw

stream with badge awards and emblems in chat naddr1qqjrscnrvcenqvfk94jrvvpe956xydtx943rwvtp95erwvrr8pjr2wpjx93rxq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxw9d39d3 badges in cards/chat naddr1qqjrqwpsxgen2ce595mr2cfn956ryetr95ursdph95ck2dpsxv6nqwfexcenzq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxwmcv4xw
Kieran approved these changes 2023-08-01 09:17:06 +00:00
Kieran merged commit bc3ba7129b into home 2023-08-01 09:17:17 +00:00
Kieran deleted branch badges 2023-08-01 09:17:17 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Kieran/zap.stream#58
No description provided.