@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:
User preferences: updating user preferences (global)
Notification Options: an overview of how to update options for individual notification types
Currency Options: options for notifications in the
currency
module
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
We're glad to be building on Hive.
Follow the @freebeings account for more updates.