Commit graph

1374 commits

Author SHA1 Message Date
Iván Ovejero af55ecd64b
fix(editor): Recover from unsaved finished execution (#5121)
* 🐛 Recover from unsaved fixed execution

* 🔥 Remove logging

* ✏️ Use i18n
2023-01-11 10:52:32 +01:00
Csaba Tuncsik 819c4adb3c
feat(editor): Executions page (#4997)
* fix(editor): Create executions page

* fix(editor): lint fix

* fix(editor): Reuse execution list in both modal and page

* fix(editor): fix ts issues

* fix(editor): Reorganizing exec list components for easier redesign (everything is in its new place now)

* fix(editor): Exec list item restyling

* fix(editor): Exec list add back stripes

* fix(editor): Exec list formatting dates and times

* fix(editor): Exec list revert accidental searc and replace

* fix(editor): Exec list translations and execution IDs

* fix(editor): Exec list playing with table cell sizing

* fix(editor): Exec list playing with table cell sizing

* fix(editor): Exec list drop Element UI Table

* fix(editor): Exec list adding sticky header and View button on row hover

* fix(editor): Exec list open execution in new tab, add ellipsis menu to all rows with Delete action

* fix(editor): Global exec list update translations snd fix tabindex

* fix(editor): Global exec list redesign selection

* fix(editor): Global exec list fix scrolling container

* fix(editor): Global exec list fix running status

* fix(editor): Global exec list fix waiting status
2023-01-10 16:28:15 +01:00
Valya 3d05acf313
feat: Expression extension framework (#4372)
*  Introduce a framework for expression extension

* 💡 Add some inline comments

*  Introduce hash alias for encrypt

*  Introduce a manual granular level approach to shadowing/overrideing extensions

* 🔥 Cleanup comments

*  Introduce a basic method of extension for native functions

*  Add length to StringExtension

*  Add number type to extension return types

*  Temporarily introduce DateTime with extension

*  Cleanup comments

*  Organize imports

* ♻️ Fix up some typings

*  Fix typings

* ♻️ Remove unnecessary resolve of expression

*  Extensions Improvement

* ♻️ Refactor EXPRESSION_EXTENSION_METHODS

* ♻️ Refactor EXPRESSION_EXTENSION_METHODS

* ♻️ Update extraArgs types

* ♻️ Fix tests

* ♻️ Fix bind type issue

* ♻️ Fixing duration type issue

* ♻️ Refactor to allow overrides on native methods

* ♻️ Temporarily remove Date Extensions to pass tests

* feat(dt-functions): introduce date expression extensions (#4045)

* 🎉 Add Date Extensions into the mix

*  Introduce additional date extension methods

*  Add Date Expression Extension tests

* 🔧 Add ability to debug tests

* ♻️ Refactor extension for native types

* 🔥 Move sayHi method to String Extension class

* ♻️ Update scope when binding member methods

*  Add String Extension tests

* feat(dt-functions): introduce array expression extensions (#4044)

*  Introduce Array Extensions

*  Add Array Expression tests

* feat(dt-functions): introduce number expression extensions (#4046)

* 🎉 Introduce Number Extensions

*  Support more shared extensions

*  Improve handling of name collision

*  Update tests

* Fixed up tests

* 🔥 Remove remove markdown

* :recylce: Replace remove-markdown dependencies with implementation

* ♻️ Replace remove-markdown dependencies with implementation

*  Update tests

* ♻️ Fix scoping and cleanup

* ♻️ Update comments and errors

* ♻️ Fix linting errors

*  Remove unused dependencies

* fix: expression extension not working with multiple extensions

* refactor: change extension transform to be more efficient

* test: update most test to work with new extend function

* fix: update and fix type error in config

* refactor: replace babel with recast

* feat: add hashing functions to string extension

* fix: removed export

* test: add extension parser and transform tests

* fix: vite tests breaking

* refactor: remove commented out code

* fix: parse dates passed from $json in extend function

* refactor: review feedback changes for date extensions

* refactor: review feedback changes for number extensions

* fix: date extension beginningOf test

* fix: broken build from merge

* fix: another merge issue

* refactor: address review feedback (remove ignores)

* feat: new extension functions and tests

* feat: non-dot notation functions

* test: most of the other tests

* fix: toSentenceCase for node versions below 16.6

* feat: add $if and $not expression extensions

* Fix test to work on every timezone

* lint: fix remaining lint issues

Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
2023-01-10 14:06:12 +01:00
OlegIvaniv 885177861a
refactor(TelegramTrigger Node, ShopifyTrigger Node): Standardize node triggers actions (#5117)
* feat(Telegram Trigger node, Shopify Trigger node): Change display name of Telegram and Shopify trigger nodes

* Remove trigger on tooltips for Telegram and Shopify trigger nodes

* Add telegram action override and make sure recommended category actions are overwritable
2023-01-10 11:20:53 +01:00
OlegIvaniv ab4785ab31
feat(editor): Remove prevent-ndv-auto-open feature flag (#5114)
feature(editor): Remove `prevent-ndv-auto-open` feature flag
2023-01-10 09:39:37 +01:00
Alex Grozav 56951e83c0
fix(editor): Disable data pinning on multiple output node types (#5111)
* fix: Disable data pinning on Compare Datasets node

* feat: update pin data mixin to automatically determine if multiple outputs node

* fix: remove unused node type constant
2023-01-09 17:15:48 +02:00
Jan Oberhauser 92babf3feb 🔖 Release n8n-editor-ui@0.176.2 2023-01-09 13:21:19 +00:00
Jan Oberhauser 7eb1e7eb86 ⬆️ Set n8n-workflow@0.132.1 on n8n-editor-ui 2023-01-09 13:21:19 +00:00
Alex Grozav a79c253345
feat: Add source to all View Plans links (no-changelog) (#5097)
feat: Add source to all View Plans links
2023-01-09 14:57:51 +02:00
Deborah 47e32e4268
fix: Update links for user management and SMTP help (#5109)
new links for UM and SMTP help
2023-01-09 10:54:39 +00:00
Iván Ovejero 320e646380
fix(editor): Omit pairedItem from proxy completions (#5098)
*  Omit `pairedItem` from proxy completions

* 🧪 Fix tests
2023-01-09 11:44:52 +01:00
Iván Ovejero 9e7a9bfe20
fix(editor): Prevent refresh on submit in credential edit modal (#5091)
🐛 Prevent refresh on submit in credential edit modal
2023-01-09 11:43:59 +01:00
Iván Ovejero f4140d011f
feat(editor): Introduce proxy completions to expressions (#5075)
*  Introduce proxy completions to expressions

* 🧪 Add tests

*  Replace snippet with alphabetic char completions

*  Tighten `DateTime` check

* 🧹 Clean up `n8nLang`

* 🔥 Remove duplicate

* 👕 Remove non-null assertion

*  Confirm that `overlay` is needed

* 🔥 Remove comment

* 🔥 Remove more unneeded code

* 🔥 Remove unneded Pinia setup

*  Simplify syntax
2023-01-06 10:07:36 +01:00
Jan Oberhauser 7aff80f5da 🔖 Release n8n-editor-ui@0.176.1 2023-01-05 17:18:17 +00:00
Jan Oberhauser 686a95afd2 ⬆️ Set n8n-design-system@0.50.1 on n8n-editor-ui 2023-01-05 17:18:17 +00:00
Alex Grozav 2327563c44
feat: Add user management invite links without SMTP set up (#5084)
* feat: update n8n-users-list to no longer use preset list of actions

* feat: prepared users settings for invite links feature

* refactor: Return invite link URLs when inviting users (#5079)

* refactor: Return invite link URLs when inviting users

* test: Refactor and add tests to mailer

* feat: Add FE inviteAcceptUrl integration (#5085)

* feat: update n8n-users-list to no longer use preset list of actions

* feat: prepared users settings for invite links feature

* feat: add integration with new inviteAcceptUrl changes

* feat: Add inviteAcceptUrl to user list for pending users

Co-authored-by: Alex Grozav <alex@grozav.com>

* fix conflicts

* fix lint issue

* test: Make sure inviteAcceptUrl is defined

* feat: update smtp setup suggestion

* feat: add invite link summary when inviting multiple users

* refactor: Add telemetry flag for when email is sent

* fix: add email_sent correctly to telemetry event

* feat: move SMTP info-tip to invite modal

Co-authored-by: Omar Ajoue <krynble@gmail.com>
2023-01-05 17:10:08 +02:00
Jan Oberhauser ca41844299 🔖 Release n8n-editor-ui@0.176.0 2023-01-05 13:19:50 +00:00
Jan Oberhauser beb2786483 ⬆️ Set n8n-design-system@0.50.0 and n8n-workflow@0.132.0 on n8n-editor-ui 2023-01-05 13:19:50 +00:00
Michael Auerswald b67f803cbe
feat: Add global event bus (#4860)
* fix branch

* fix deserialize, add filewriter

* add catchAll eventGroup/Name

* adding simple Redis sender and receiver to eventbus

* remove native node threads

* improve eventbus

* refactor and simplify

* more refactoring and syslog client

* more refactor, improved endpoints and eventbus

* remove local broker and receivers from mvp

* destination de/serialization

* create MessageEventBusDestinationEntity

* db migrations, load destinations at startup

* add delete destination endpoint

* pnpm merge and circular import fix

* delete destination fix

* trigger log file shuffle after size reached

* add environment variables for eventbus

* reworking event messages

* serialize to thread fix

* some refactor and lint fixing

* add emit to eventbus

* cleanup and fix sending unsent

* quicksave frontend trial

* initial EventTree vue component

* basic log streaming settings in vue

* http request code merge

* create destination settings modals

* fix eventmessage options types

* credentials are loaded

* fix and clean up frontend code

* move request code to axios

* update lock file

* merge fix

* fix redis build

* move destination interfaces into workflow pkg

* revive sentry as destination

* migration fixes and frontend cleanup

* N8N-5777 / N8N-5789 N8N-5788

* N8N-5784

* N8N-5782 removed event levels

* N8N-5790 sentry destination cleanup

* N8N-5786 and refactoring

* N8N-5809 and refactor/cleanup

* UI fixes and anonymize renaming

* N8N-5837

* N8N-5834

* fix no-items UI issues

* remove card / settings label in modal

* N8N-5842 fix

* disable webhook auth for now and update ui

* change sidebar to tabs

* remove payload option

* extend audit events with more user data

* N8N-5853 and UI revert to sidebar

* remove redis destination

* N8N-5864 / N8N-5868 / N8N-5867 / N8N-5865

* ui and licensing fixes

* add node events and info bubbles to frontend

* ui wording changes

* frontend tests

* N8N-5896 and ee rename

* improves backend tests

* merge fix

* fix backend test

* make linter happy

* remove unnecessary cfg / limit  actions to owners

* fix multiple sentry DSN and anon bug

* eslint fix

* more tests and fixes

* merge fix

* fix workflow audit events

* remove 'n8n.workflow.execution.error' event

* merge fix

* lint fix

* lint fix

* review fixes

* fix merge

* prettier fixes

* merge

* review changes

* use loggerproxy

* remove catch from internal hook promises

* fix tests

* lint fix

* include review PR changes

* review changes

* delete duplicate lines from a bad merge

* decouple log-streaming UI options from public API

* logstreaming -> log-streaming for consistency

* do not make unnecessary api calls when log streaming is disabled

* prevent sentryClient.close() from being called if init failed

* fix the e2e test for log-streaming

* review changes

* cleanup

* use `private` for one last private property

* do not use node prefix package names.. just yet

* remove unused import

* fix the tests

because there is a folder called `events`, tsc-alias is messing up all imports for native events module.
https://github.com/justkey007/tsc-alias/issues/152

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-01-04 09:47:48 +01:00
Alex Grozav 8e8df6d611
feat(editor): Add SSO fakedoor feature (#5076)
* feat: add sso fakedoor feature

* fix: update SSO fakeDoor location

* fix: remove unused code
2023-01-03 16:09:11 +02:00
कारतोफ्फेलस्क्रिप्ट™ 8cf3c86860
fix(editor): Fix an infinite loop while loading executions that are not on the current executions list (#5071)
fix(editor): Fix an infinitine loop while loading executions that are not on the current executions list
2023-01-03 14:40:51 +01:00
Iván Ovejero e1f9349c19
fix(editor): Prevent scrim on executable triggers (#5068)
🐛 Prevent scrim on executable triggers
2023-01-03 11:25:50 +01:00
Iván Ovejero 43304b0691
fix(editor): Clear node creator and scrim on workspace reset (#5066)
🐛 Clear node creator and scrim on workspace reset
2023-01-03 11:25:07 +01:00
कारतोफ्फेलस्क्रिप्ट™ ee28213538
refactor: Use string ids on Credentials, Workflows, Tags, and Executions DB entities (#5041) 2023-01-02 17:42:32 +01:00
कारतोफ्फेलस्क्रिप्ट™ a455cce7e6
perf: Lazy-load public-api dependencies to reduce baseline memory usage (#5049)
* refactor: Load swagger and openapi dependencies conditionally

* disable public api in tests to reduce heal usage

* update the link and text in SettingsApiView when swagger ui is disabled
2023-01-02 12:14:58 +01:00
Iván Ovejero 0b47f9ce4e
refactor: Lint for no interpolation in regular string (#5060) (no-changelog)
*  Create rule `no-interpolation-in-regular-string`

* 👕 Enable rule

*  Run rule (no issues) and add exception

*  Simplify regex

To account for expressions and to make it less expensive
2022-12-29 14:24:19 +01:00
Iván Ovejero ba0fd8a310
ci: Fix lint for build (no-changelog) (#5059)
 Fix lint for build
2022-12-29 12:48:16 +01:00
Iván Ovejero 2f40a7f98a
fix(editor): Make node title non-editable in executions view (#5046)
🐛 Fix node title non-editable in executions
2022-12-29 12:23:10 +01:00
Iván Ovejero d9b98fc8be
refactor: Lint for no unneeded backticks (#5057) (no-changelog)
*  Create rule `no-unneeded-backticks`

* 👕 Enable rule

*  Run rule on `cli`

*  Run rule on `core`

*  Run rule on `workflow`

*  Rule rule on `design-system`

*  Run rule on `node-dev`

*  Run rule on `editor-ui`

*  Run rule on `nodes-base`
2022-12-29 12:20:43 +01:00
Iván Ovejero a2ab78f927
fix(editor): Support tabbing away from inline expression editor (#5056)
 Support tabbing away from inline expression editor
2022-12-29 10:13:05 +01:00
Csaba Tuncsik 2e28f13a55
refactor(editor): Usage and plans page on Desktop (#5051)
* refactor(editor): Usage and plans page on Desktop apply Ivan's review

* fix(editor): Usage and plans page on Desktop apply Ivan's review
2022-12-29 09:42:38 +01:00
Jan Oberhauser e1ad891a3b 🔖 Release n8n-editor-ui@0.175.4 2022-12-28 21:52:24 +00:00
Csaba Tuncsik 26e2321a71
fix(editor): Usage and plans page on Desktop (#5045) 2022-12-28 17:07:34 +01:00
Iván Ovejero 16bd7610fc
feat(editor): Switch to expression on = input (#5044)
 Switch to expression on `=` input
2022-12-28 10:37:42 +01:00
Iván Ovejero 2aba0c6d47
fix(editor): Fix trigger node type identification on add to canvas (#5043)
🐛 Fix trigger node type identification on add to canvas
2022-12-28 10:28:42 +01:00
OlegIvaniv 4daf905ce2
fix(editor): Fix displaying of some trigger nodes in the creator panel (#5040) 2022-12-28 09:21:22 +01:00
Iván Ovejero 18140e059b
fix(editor): Add sticky note without manual trigger (#5039)
🐛 Add sticky note without manual trigger
2022-12-27 17:25:02 +01:00
Iván Ovejero 33d7a13e73
fix(editor): Display default missing value in table view as undefined (#5038)
🐛 Switch `runDataTable` default to `undefined`
2022-12-27 17:22:48 +01:00
Iván Ovejero a75dcc755b
refactor(editor): Tweak phrasing of itemMatching() (no-changelog) (#5037)
✏️ Tweak phrasing of `itemMatching()`
2022-12-27 17:22:08 +01:00
Jan Oberhauser 8fee2c0910 🔖 Release n8n-editor-ui@0.175.3 2022-12-27 15:20:00 +00:00
Jan Oberhauser 517d8f45f0 ⬆️ Set n8n-design-system@0.49.3 and n8n-workflow@0.131.2 on n8n-editor-ui 2022-12-27 15:19:59 +00:00
Milorad FIlipović d0865e28ff
fix(editor): Fix for loading executions that are not on the current executions list (#5035)
* fix(editor): fixed executions list scroll not working on large screens
*  Use limit to only load necessary number of additional executions
* 🐛 Fixing loading execution that is not on the current execution list
* ✔️ Fixing lint error
*  Fixing more executions count logic
* 📚 Updating comments
* 🔥 Removing leftover `console.log`
2022-12-27 14:51:48 +01:00
Csaba Tuncsik d6bc760ab4
fix(editor): Transparentize tertiary button on Usage page (#5033) 2022-12-27 09:47:43 +01:00
Iván Ovejero 52077e2c45
feat(editor): Improve UX for brace completion from selection (#5024)
 Improve UX for brace completion from selection
2022-12-27 09:21:32 +01:00
कारतोफ्फेलस्क्रिप्ट™ a229788d4b
ci: Fix linting issues on master (no-changelog) (#5030)
* make CI logs less noisy. suppress linting warning

* fix linting issues
2022-12-23 19:09:52 +01:00
Mutasem Aldmour a8f4efaf3e
fix(editor): Update credential owner warning when sharing (#5029)
fix: update cred owner message
2022-12-23 12:00:01 -06:00
Jan Oberhauser 12a64ff367 🔖 Release n8n-editor-ui@0.175.2 2022-12-23 16:59:04 +00:00
Jan Oberhauser e581b19c76 ⬆️ Set n8n-design-system@0.49.2 on n8n-editor-ui 2022-12-23 16:59:04 +00:00
Mutasem Aldmour 6a8448da5f
fix: Fix automatic credential selection when credentials are shared (#5020)
* fix: fix default credentials when inserting nodes

* fix: update default without sharing

* fix: fix clearing credential bug, automatically selecting shared cred bug

* fix: include sharable creds in automatic selections

* fix: update getter

* fix: refactor subscribe logic, fix update bug

* fix: remove unnessary import

* format: prettier
2022-12-23 16:32:06 +01:00
Iván Ovejero 47854ebc36
fix(editor): Ensure full tree on expression editor parse (#5027)
🐛 Ensure full tree on expression editor parse
2022-12-23 16:13:16 +01:00