n8n/packages/editor-ui/src
Milorad FIlipović b0e98b59a6
feat(editor): Rework banners framework and add email confirmation banner (#7205)
This PR introduces banner framework overhaul:
First version of the banner framework was built to allow multiple
banners to be shown at the same time. Since that proven to be the case
we don't need and it turned out to be pretty messy keeping only one
banner visible in such setup, this PR reworks it so it renders only one
banner at a time, based on [this priority
list](https://www.notion.so/n8n/Banner-stack-60948c4167c743718fde80d6745258d5?pvs=4#6afd052ec8d146a1b0fab8884a19add7)
that is assembled together with our product & design team.

### How to test banner stack:
1. Available banners and their priorities are registered
[here](f9f122d46d/packages/editor-ui/src/components/banners/BannerStack.vue (L14))
2. Banners are pushed to stack using `pushBannerToStack` action, for
example:
```
useUIStore().pushBannerToStack('TRIAL');
```
4. Try pushing different banners to stack and check if only the one with
highest priorities is showing up

### How to test the _Email confirmation_ banner:
1. Comment out [this
line](b80d2e3bec/packages/editor-ui/src/stores/cloudPlan.store.ts (L59)),
so cloud data is always fetched
2. Create an
[override](https://chrome.google.com/webstore/detail/resource-override/pkoacgokdfckfpndoffpifphamojphii)
(URL -> File) that will serve user data that triggers this banner:
- **URL**: `*/rest/cloud/proxy/admin/user/me`
- **File**:
```
{
    "confirmed": false,
    "id": 1,
    "email": "test@test.com",
    "username": "test"
}
```
3. Run n8n
2023-09-21 09:47:21 +02:00
..
__tests__ fix(editor): Add ssh key type selection to source control settings when regenerating key (#7172) 2023-09-14 14:40:34 +02:00
api feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
assets/images feat: External Secrets storage for credentials (#6477) 2023-08-25 10:33:46 +02:00
components feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
composables fix: Account for nanoid workflow ids for subworkflow execute policy (#7094) 2023-09-13 09:56:58 +02:00
declarations feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476) 2023-07-28 09:51:07 +02:00
event-bus feat(core): Add MFA (#4767) 2023-08-23 22:59:16 -04:00
mixins fix: Ensure all new executions are saved (#7061) 2023-09-01 09:32:39 +02:00
models feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476) 2023-07-28 09:51:07 +02:00
plugins feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
stores feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
styles refactor: Upgrade to Prettier 3 (no-changelog) (#6947) 2023-08-16 17:13:57 +02:00
types feat(editor): Completions for extensions in expression editor (#5130) 2023-02-02 12:35:38 +01:00
utils fix: Ensure new Set node is on top of search list (#7215) 2023-09-20 16:47:51 +02:00
views feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
App.vue feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
constants.ts feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
Interface.ts feat(editor): Rework banners framework and add email confirmation banner (#7205) 2023-09-21 09:47:21 +02:00
main.ts refactor: Clear unused ESLint directives from FE packages (no-changelog) (#6811) 2023-08-01 13:47:55 +02:00
n8n-theme-variables.scss feat(editor): Implement new banners framework (#6603) 2023-07-14 15:36:17 +02:00
n8n-theme.scss refactor: Upgrade to Prettier 3 (no-changelog) (#6947) 2023-08-16 17:13:57 +02:00
permissions.ts refactor(editor): Add infix to Pinia stores (no-changelog) (#6149) 2023-05-05 10:41:54 +02:00
router.ts feat(editor): Add Workflow history route and base page (no-changelog) (#7161) 2023-09-15 13:17:04 +02:00
shims-vue.d.ts feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476) 2023-07-28 09:51:07 +02:00
shims.d.ts feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476) 2023-07-28 09:51:07 +02:00