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

Add Persistent Notification System with Toast Notification #1071

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

bajrangCoder
Copy link
Collaborator

@bajrangCoder bajrangCoder commented Nov 12, 2024

Overview

This PR introduces a notification system similar to other editor

Features

  • Persistent Notifications: Notifications persist across sessions using localStorage
  • Customizable: Support for different notification types, icons, and actions
  • Resource Efficient: Optimized updates and memory management

Fixes

Usage Example for Plugins

acode.pushNotification({
  title: "File Saved",
  message: "Your changes have been saved successfully",
  {type: "success",
  icon: "save",
  autoClose: true}
});

Screenshots

Screenshot_20241112-185004~2

- Replace header icon indicator with notification-based alerts in case of plugin alerts
- Remove legacy plugin update icon from header UI
@bajrangCoder bajrangCoder merged commit 023a8fd into main Nov 12, 2024
4 checks passed
@bajrangCoder bajrangCoder deleted the notification branch November 12, 2024 14:52
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.

1 participant