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(editor): Show banner for non-production licenses #6943

Merged

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Aug 16, 2023

@github-actions
Copy link
Contributor

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching packages/**/*.ts:

  • Added unit tests to cover new or updated functionality.

Files matching **/*.vue:

  • Used composition API for all new components.
  • Added component or unit tests to cover functionality.

Files matching packages/editor-ui/**/*.vue:

  • Added E2E if adding new features.
  • Used design system tokens (colors, spacings...) where possible.

Make sure to check off this list before asking for review.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Aug 16, 2023
@ivov ivov marked this pull request as ready for review August 16, 2023 13:40
Comment on lines -339 to -344
setBanners(banners: UIState['banners']): void {
this.banners = {
...this.banners,
...banners,
};
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused.

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Patch coverage: 79.31% and project coverage change: +0.19% 🎉

Comparison is base (198a977) 24.86% compared to head (4267bac) 25.06%.
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6943      +/-   ##
==========================================
+ Coverage   24.86%   25.06%   +0.19%     
==========================================
  Files        3144     3150       +6     
  Lines      191231   191928     +697     
  Branches    21093    21111      +18     
==========================================
+ Hits        47545    48099     +554     
- Misses     142705   142847     +142     
- Partials      981      982       +1     
Files Changed Coverage Δ
packages/cli/src/requests.ts 100.00% <ø> (ø)
packages/editor-ui/src/stores/settings.store.ts 53.93% <0.00%> (-0.46%) ⬇️
packages/workflow/src/Interfaces.ts 57.14% <ø> (ø)
packages/editor-ui/src/api/ui.ts 40.00% <50.00%> (ø)
...s/editor-ui/src/components/banners/BannerStack.vue 94.73% <75.00%> (-2.49%) ⬇️
packages/editor-ui/src/stores/ui.store.ts 55.43% <75.00%> (+0.25%) ⬆️
packages/editor-ui/src/Interface.ts 100.00% <100.00%> (ø)
...es/editor-ui/src/components/banners/BaseBanner.vue 98.43% <100.00%> (ø)
.../components/banners/NonProductionLicenseBanner.vue 100.00% <100.00%> (ø)

... and 154 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@krynble krynble left a comment

Choose a reason for hiding this comment

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

LGTM

@cypress
Copy link

cypress bot commented Aug 17, 2023

Passing run #1907 ↗︎

0 221 0 0 Flakiness 0

Details:

🌳 pay-692-show-a-banner-on-instances-with-non-production-licenses 🖥️ browsers:...
Project: n8n Commit: 4267bacf95
Status: Passed Duration: 07:32 💡
Started: Aug 17, 2023 11:49 AM Ended: Aug 17, 2023 11:56 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@ivov ivov merged commit 413570c into master Aug 17, 2023
18 checks passed
@ivov ivov deleted the pay-692-show-a-banner-on-instances-with-non-production-licenses branch August 17, 2023 12:00
This was referenced Aug 23, 2023
krynble added a commit that referenced this pull request Aug 23, 2023
# [1.4.0](https://github.com/n8n-io/n8n/compare/n8n@1.3.0...n8n@1.4.0)
(2023-08-23)


### Bug Fixes

* **core:** Add recoveryInProgress flag file
([#6962](#6962))
([7b96820](7b96820))
* **core:** Fix `continueOnFail` for expression error in Set
([#6939](#6939))
([d4fac05](d4fac05))
* **core:** Fix `import:workflow` command
([#6996](#6996))
([8c38d85](8c38d85))
* **core:** Replace throw with warning when deactivating a non-active
workflow ([#6969](#6969))
([b6a00fe](b6a00fe))
* **core:** Set up OAuth2 cred test
([#6960](#6960))
([4fc69b7](4fc69b7))
* **editor:** Do not flag dynamic load options issue on expression
([#6932](#6932))
([60a1ef0](60a1ef0))
* **editor:** Ensure community node install button tracks user agreement
([#6976](#6976))
([0ddfc73](0ddfc73))
* **editor:** Fix parsing for single quoted resolvables
([#6982](#6982))
([f32e993](f32e993))
* **editor:** Fix Remove all fields not removing values in resource
mapper ([#6940](#6940))
([e6cff3f](e6cff3f))
* **editor:** Prevent Code node linter from erroring on `null` parse
([#6934](#6934))
([40d3a29](40d3a29))
* **Google Sheets Node:** Fix short sheet name interpreted as range
([#6989](#6989))
([00268a0](00268a0))
* **Google Sheets Trigger Node:** Support sheet names with non-latin
characters ([#6970](#6970))
([052dd7c](052dd7c))
* **GraphQL Node:** Improve error handling
([#6955](#6955))
([41db637](41db637))
* **Mautic Node:** Fix issue with owner not being set correctly
([#6991](#6991))
([64b950f](64b950f))
* **Salesforce Node:** Fix Account update owner operation
([#6958](#6958))
([9b27878](9b27878))
* **Shopify Node:** Fix pagination when using options
([#6972](#6972))
([475d9c9](475d9c9))
* **Webhook Node:** Backward compatible form-data parsing for non-array
fields ([#6967](#6967))
([9455bcf](9455bcf))


### Features

* **core:** Add a warning to error workflows that cannot be started due
to permission or settings
([#6961](#6961))
([67b88f7](67b88f7))
* **core:** Add support for ready hooks, and credentials overwrite
endpoint in workers ([#6954](#6954))
([8f8a1de](8f8a1de))
* **editor:** Show banner for non-production licenses
([#6943](#6943))
([413570c](413570c))
* Remove PostHog event calls
([#6915](#6915))
([270946a](270946a))
* **Send Email Node:** Add support for sending text and html email
simultaneously ([#6978](#6978))
([3860d41](3860d41))

Co-authored-by: krynble <krynble@users.noreply.github.com>
@janober
Copy link
Member

janober commented Aug 30, 2023

Got released with n8n@1.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants