n8n/packages
Ricardo Espinoza e9c7fd7397
fix: Show public API upgrade CTA when feature is not enabled (#8109)
## Summary
> Describe what the PR does and how to test. Photos and videos are
recommended.

Shows the public API upgrade CTA when the feature is not enabled. Now
trialing users in cloud would see the API on the settings menu and can
upgrade from there.

When public API feature disabled: 

<img width="1863" alt="image"
src="https://github.com/n8n-io/n8n/assets/16496553/a9052f6b-151f-4ebb-80df-5ff2fa643e85">

When public API feature enabled with no API key:

<img width="1861" alt="image"
src="https://github.com/n8n-io/n8n/assets/16496553/fdfe7296-425e-4410-a8cb-f25535bc9df4">

When public API feature enabled with API key:

<img width="1423" alt="image"
src="https://github.com/n8n-io/n8n/assets/16496553/a8426cbf-ff73-43c4-8c60-b00274bca46e">



## Related tickets and issues
[> Include links to **Linear ticket** or Github issue or Community forum
post. Important in order to close *automatically* and provide context to
r](https://linear.app/n8n/issue/ADO-1282/feature-api-page-missing-for-trial-users)eviewers.



## Review / Merge checklist
- [x] PR title and summary are descriptive. **Remember, the title
automatically goes into the changelog. Use `(no-changelog)` otherwise.**
([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
- [x] Tests included.
> A bug is not considered fixed, unless a test is added to prevent it
from happening again.
   > A feature is not complete without tests.
2023-12-21 09:06:54 -05:00
..
@n8n feat(core): Add closeFunction support to Sub-Nodes (#7708) 2023-12-21 14:21:09 +01:00
@n8n_io/eslint-config ci: Add lint rule no-dynamic-import-template (no-changelog) (#8089) 2023-12-21 14:15:37 +01:00
cli fix(core): Handle empty executions table in pruning in migrations (#8121) 2023-12-21 14:52:42 +01:00
core feat(core): Add closeFunction support to Sub-Nodes (#7708) 2023-12-21 14:21:09 +01:00
design-system 🚀 Release 1.22.0 (#8115) 2023-12-21 13:51:24 +01:00
editor-ui fix: Show public API upgrade CTA when feature is not enabled (#8109) 2023-12-21 09:06:54 -05:00
node-dev 🚀 Release 1.22.0 (#8115) 2023-12-21 13:51:24 +01:00
nodes-base feat(Snowflake Node): Update snowflake-sdk (no-changelog) (#8087) 2023-12-21 14:52:54 +01:00
workflow feat(core): Add closeFunction support to Sub-Nodes (#7708) 2023-12-21 14:21:09 +01:00