Skip to content

Notifications section #28

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

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Notifications section #28

wants to merge 13 commits into from

Conversation

paleloser
Copy link
Collaborator

@paleloser paleloser commented May 26, 2025

This PR adds a new section for notifications:

image

Thanks to this section we will be able to notify the users about the status of ongoing tasks in the background without having to block the whole UI. Some examples are:

  • The installation of the workload is moved to the background and we notify the user when the installation is completed (with the respective status and action items)
  • If there are errors, we show them through this section: this way the notification is persisted for a given time, and the user decides whether to dismiss it or not

Notifications are stored in the extension backend, thus they won't dissappear between extension updates.

Comment on lines +90 to +97
const welcomeNotification: Notification = {
id: '-1',
title: 'Welcome to Application Collection extension!',
description: 'Go to https://docs.apps.rancher.io/ to learn how to get started.',
type: 'info',
dismissed: false,
timestamp: new Date().getTime()
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can decide whether to include this notification by default or not. This notification can help the user get started in case they don't have much context about the extension or the product.

It is true that right now there's not much content related to the extension in the documentation site. But it may help users to know about how to use some apps.

@paleloser
Copy link
Collaborator Author

❗ Merge after #29 and #27 to ensure the best integration between the features.

@paleloser paleloser added the feature New feature label May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant