I just deployed enhanced notifications and some other small stuff. πŸ™Œ

Notifications

  1. You can now tell which post or comment you got sats from
  2. Sat receipts are displayed in order with replies
  3. When you click on a notification it now takes you to the context of the notification (e.g. the comment) - this worked previously but it broke when a package was updated
    • I also do a kind of flash animation to bring your attention to the exact context should it be surrounded in other comments. (I might change this animation in the future to something prettier.)

Small stuff

  1. I cleaned up the sat balance and karma (aka stacked) area. Previously it was [<stacked>, <spendable balance>]. Now it's <spendable balance> \ <stacked>. The comma was confusing some international users. I also reversed the sat balance and stacked. The new arrangement seems more intuitive to me - the more permanent thing (karma) is 'anchored' in the corner.

Immediate plans

I plan to also add mentions to notifications shortly and pending feedback and my own usage I might go further to make them more concise. This is just a starting point.
Tomorrow, I'm going to begin working on more sat-related features - tips and laying the ground work for faucets, referrals, etc.

For the nerds

The notification improvements were interesting to implement. The hard part is mostly the SQL query. In order to cursor (for pagination) over both replies and upvotes, I union them together. In an attempt to make the sat notifications concise, we have to solve a gaps and islands problem to find "islands" of upvotes so they can be merged together. We use window functions to do this. You can view the relatively large SQL query here.
In order to make notifications even more concise should we need to in the future, we just have to find more islands based on some other criteria, e.g. time or notification type.
6 sats \ 1 boost \ 0 replies \ @anthony 18 Aug 2021
Great work as always! I really hope Stacker News takes off and becomes the Reddit/Hacker News of the Bitcoin community.
reply
Just shipped mention notifications @anthony, @gmd, @02542c1d24, @banana
reply
very cool @koob!
reply
AwesomeπŸ™ŒπŸ™ŒπŸ™Œ!!!... Wondering if in a profile view there's room/interest for sats spent? Right now I can't spend fast enough but tracking it in my head based on my deposit - sats. Might clutter UI but I sort of like knowing how much sats "karma" I've dished out to others.
reply
I agree. I want to have a little graph of your sat balance and karma over time and display a history of the actions contributing to it.
These kind of user profile things might be where I spend my time after tips.
reply
Feature request: Send comments with CMD+ENTER πŸ™
reply
Can do!
reply
Deleted
reply
Oh that’s boosting nvm
Client-side cache updating bug. I'll open a GH issue. This has been around for awhile.
If you refresh the page, it'll be correct. (At the DB level we are really careful with this stuff, but the clientside updates of upvotes are prone to race conditions given the naive way they're implemented.)
reply
excited for tips
Update: after a day of real world usage, sat stacking notifications are kind of a lot. I'll probably have to "island" coinciding notification types with the option to expand them. I believe this is what twitter does ... If you have more than a few replies at once, it shows you a few then has a "see more" if I remember correctly.
If anyone has any such feedback about the feature I'd appreciate it.
Not going to prioritize this over tips but it's something we'll probably want at some point.
reply