GNS: Keychain Login, New Notifications and User Preferences

in HiveDevslast year

GNS-Update.png

@imwatsi shares an update on the development of the Global Notification System (GNS).

GitHub: https://github.com/FreeBeings-io/hive-gns

Preview: https://preview.gns.freebeings.io

API: https://gns.freebeings.io/docs


Keychain on Preview Site

You can now login to the GNS preview site using Hive Keychain and see notifications for your account. The preview site showcases what notifications on GNS would look like. Access the preview site here: https://preview.gns.freebeings.io

Screenshot:

Code Refactoring

Significant refactoring was done to support the expanding notification types now supported. This included redefining the modules in which notifications are categorized, new hook.json formats and JSON Path filtering as a base for supporting fine-grained user preferences.

Performance Improvements

The sync script has been updated to a faster version. The previous version processed data from blocks on a per-module basis, which resulted in operations being processed more than once by different notification functions. Now it processes each operation within a block and triggers notification hooks across all GNS modules that are dependent on that operation type.

New Notifications Supported

The following notifications were added to GNS:

  • Social
  • Mentions
  • Currency
  • Author rewards
  • Curation rewards
  • Comment benefactor rewards
  • Fill convert request

User Preferences

Users can now choose which notifications to receive as well as setup options for each notification, if available. New documentation has been added to the repository for developers:

Auto-populate app_data from Database

The app_data payload in the system status response is now populated directly from the database, using the available modules and notifications as loaded from hook.json files.

This means: as new notifications are added, they are automatically included in the API response, after they pass checks and DB verification.

What’s Next

  • User preferences on frontend preview site
  • Continue adding support for more notifications
  • Add user options for more notification types

by @imwatsi - Co-Founder | CEO | Blockchain Developer



Vote for our witness

Witness Name: @imwatsi

Witness-2.png


We're glad to be building on Hive.
Follow the @freebeings account for more updates.

Sort:  

Congratulations @freebeings! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 1750 upvotes.
Your next target is to reach 2000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Hive Power Up Day - April 1st 2023
Happy Birthday to the Hive Community
The Hive Gamification Proposal
Support the HiveBuzz project. Vote for our proposal!

PIZZA!
The Hive.Pizza team manually curated this post.

Learn more at https://hive.pizza.


The rewards earned on this comment will go directly to the people sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.