Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: network notification badges #1484

Merged
merged 24 commits into from
Jan 28, 2025

Conversation

icoxxx
Copy link
Contributor

@icoxxx icoxxx commented Jan 24, 2025

Description:
This pull request introduces the additionalData property (optional) to the Notification entity. The feature includes backend and frontend changes. Network specific notifications are now displayed alongside the network label and in settings - networks

Backend Updates:
Added the additionalData property to the Notification entity, emitted during the creation of a transaction.
Updated the backend services to handle this new property appropriately.
Modified backend tests to include the new additionalData field, ensuring proper test coverage.

Frontend Implementation:
Integrated the additionalData logic into the notificationStore to manage and display notifications effectively.
Enhanced the ButtonGroup component to support an optional parameter for handling dynamic notifications.
Created a custom ::after pseudo-class to style badges in the Settings - Networks section, ensuring badges do not affect the layout or alignment of other elements in the group.

Related issue(s):
#1449

@icoxxx icoxxx self-assigned this Jan 24, 2025
@icoxxx icoxxx requested review from SvetBorislavov, yiliev0 and a team as code owners January 24, 2025 15:39
@icoxxx icoxxx requested a review from jbair06 January 24, 2025 15:39
@icoxxx icoxxx linked an issue Jan 24, 2025 that may be closed by this pull request
@icoxxx icoxxx closed this Jan 24, 2025
@icoxxx icoxxx reopened this Jan 24, 2025
SvetBorislavov
SvetBorislavov previously approved these changes Jan 27, 2025
@SvetBorislavov SvetBorislavov marked this pull request as draft January 27, 2025 12:31
@icoxxx icoxxx force-pushed the 1449-notification-badge-on-network branch from d6e98e8 to 851ac1d Compare January 27, 2025 13:41
@icoxxx icoxxx marked this pull request as ready for review January 27, 2025 13:42
@SvetBorislavov SvetBorislavov force-pushed the 1449-notification-badge-on-network branch from 87e1b3c to abdf9e1 Compare January 28, 2025 06:26
icoxxx and others added 9 commits January 28, 2025 11:20
Signed-off-by: Hristiyan <[email protected]>
Signed-off-by: Hristiyan <[email protected]>
Signed-off-by: Hristiyan <[email protected]>
Signed-off-by: Hristiyan <[email protected]>
Signed-off-by: Svetoslav Borislavov <[email protected]>
Signed-off-by: Hristiyan <[email protected]>
@icoxxx icoxxx force-pushed the 1449-notification-badge-on-network branch from abdf9e1 to 8ec79c0 Compare January 28, 2025 09:20
@SvetBorislavov SvetBorislavov merged commit f4746b5 into main Jan 28, 2025
15 checks passed
@SvetBorislavov SvetBorislavov deleted the 1449-notification-badge-on-network branch January 28, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notification badge on network
2 participants