OlegIvaniv
9a1e7b52f7
feat(editor): Unify regular and trigger node creator panels ( #5315 )
...
* WIP: Merge TriggerHelperPanel with MainPanel
* WIP: Implement switching between views
* Remove logging
* WIP: Rework search
* Fix category toggling and search results display
* Fix node item description
* Sort actions based on the root view
* Adjust personalisation modal, make trigger canvas node round
* Linting fixes
* Fix filtering of API options
* Fix types and no result state
* Cleanup
* Linting fixes
* Adjust mode prop for node creator tracking
* Fix merging of core nodes and filtering of single placeholder actions
* Lint fixes
* Implement actions override, fix node creator view item spacing and increase click radius of trigger node icon
* Fix keyboard view navigation
* WIP: E2E Tests
* Address product review
* Minor fixes & cleanup
* Fix tests
* Some more test fixes
* Add specs to check actions and panels
* Update personalisation survey snapshot
2023-02-17 15:08:26 +01:00
Iván Ovejero
6d811f0d9f
feat(editor): Completions for extensions in expression editor ( #5130 )
...
* 🔥 Remove test extensions
* 🚧 Add test description
* 📘 Expand types
* ⚡ Export extensions
* ⚡ Export collection
* ⚡ Mark all proxies
* ✏️ Rename for clarity
* ⚡ Export from barrel
* ✨ Create datatype completions
* ⚡ Mount datatype completions
* 🧪 Adjust tests
* ⚡ Add `path` prop
* 🔥 Remove `()` from completion labels
* ⚡ Filter out completions for pseudo-proxies
* 🐛 Fix method error
* ⚡ Add metrics
* ✏️ Improve naming
* ✨ Start completion on empty resolvable
* ✨ Implement completion previews
* ⚡ Break out completion manager
* ⚡ Implement in expression editor modal
* ✏️ Improve naming
* ⚡ Filter out irrelevant completions
* ✨ Add preview hint
* ✏️ Improve comments
* 🎨 Style preview hint
* ⚡ Expand `hasNoParams`
* ⚡ Add spacing for readability
* ⚡ Add error codes
* ✏️ Add comment
* 🐛 Fix Esc behavior
* ⚡ Parse Unicode
* ⚡ Throw on invalid `DateTime`
* ⚡ Fix second root completion detection
* ⚡ Switch message at completable prefix position
* 🐛 Fix function names for non-dev build
* 🐛 Fix `json` handling
* 🔥 Comment out previews
* ♻️ Apply feedback
* 🔥 Remove extensions
* 🚚 Rename extensions
* ⚡ Adjust some implementations
* 🔥 Remove dummy extensions
* 🐛 Fix object regex
* ♻️ Apply feedback
* ✏️ Fix typos
* ✏️ Add `fn is not a function` message
* 🔥 Remove check
* ✨ Add `isNotEmpty` for objects
* 🚚 Rename `global` to `alpha`
* 🔥 Remove `encrypt`
* ⚡ Restore `is not a function` error
* ⚡ Support `week` on `extract()`
* 🧪 Fix tests
* ⚡ Add validation to some string extensions
* ⚡ Validate number arrays in some extensions
* 🧪 Fix tests
* ✏️ Improve error message
* ⏪ Revert extensions framework changes
* 🧹 Previews cleanup
* ⚡ Condense blank completions
* ⚡ Refactor dollar completions
* ⚡ Refactor non-dollar completions
* ⚡ Refactor Luxon completions
* ⚡ Refactor datatype completions
* ⚡ Use `DATETIMEUNIT_MAP`
* ✏️ Update test description
* ⏪ Revert "Use `DATETIMEUNIT_MAP`"
This reverts commit 472a77df5c
.
* 🧪 Add tests
* ♻️ Restore generic extensions
* 🔥 Remove logs
* 🧪 Expand tests
* ✨ Add `Math` completions
* ✏️ List breaking change
* ⚡ Add doc tooltips
* 🐛 Fix node selector regex
* 🐛 Fix `context` resolution
* 🐛 Allow dollar completions in args
* ⚡ Make numeric array methods context-dependent
* 📝 Adjust docs
* 🐛 Fix selector ref
* ⚡ Surface error for valid URL
* 🐛 Disallow whitespace in `isEmail` check
* 🧪 Fix test for `isUrl`
* ⚡ Add comma validator in `toFloat`
* ⚡ Add validation to `$jmespath()`
* ⏪ Revert valid URL error
* ⚡ Adjust `$jmespath()` validation
* 🧪 Adjust `isUrl` test
* ⚡ Remove `{}` and `[]` from compact
* ✏️ Update docs
* 🚚 Rename `stripTags` to `removeTags`
* ⚡ Do not inject whitespace inside resolvable
* ⚡ Make completions aware of `()`
* ✏️ Add note
* ⚡ Update sorting
* ⚡ Hide active node name from node selector
* 🔥 Remove `length()` and its aliases
* ⚡ Validate non-zero for `chunk`
* ✏️ Reword all error messages
* 🐛 Fix `$now` and `$today`
* ⚡ Simplify with `stripExcessParens`
* ⚡ Fold luxon into datatype
* 🧪 Clean up tests
* 🔥 Remove tests for removed methods
* 👕 Fix type
* ⬆️ Upgrade lang pack
* ⏪ Undo change to `vitest` command
* 🔥 Remove unused method
* ⚡ Separate `return` line
* ✏️ Improve description
* 🧪 Expand tests for initial-only completions
* 🧪 Add bracket-aware completions
* ⚡ Make check for `all()` stricter
* ✏️ Adjust explanatory comments
* 🔥 Remove unneded copy
* 🔥 Remove outdated comment
* ⚡ Make naming consistent
* ✏️ Update comments
* ⚡ Improve URL scheme check
* ✏️ Add comment
* 🚚 Move extension
* ✏️ Update `BREAKING-CHANGES.md`
* ✏️ Update upcoming version
* ✏️ Fix grammar
* ✏️ Shorten message
* 🐛 Fix `Esc` behavior
* 🐛 Fix `isNumeric`
* ✨ Support native methods
* 🧪 Skip Pinia tests
* ✏️ Shorten description
* 🔥 Remove outdated comment
* 🧪 Unskip Pinia tests
* ✏️ Add comments
* 🧪 Expand tests to natives
* ✏️ Add clarifying comments
* ⚡ Use `setTimeout` to make telemetry non-blocking
* 🐛 Account for no active node in cred modal
* ✨ Resolve without workflow
* 🔥 Remove `Esc` handling on NDV
* ⚡ Use `isDateTime`
* 🚚 Move `unique` to next phase
This array extension takes optional args.
* ⚡ Merge export
* 🧪 Fix tests
* ⏪ Restore check
* ✏️ Make breaking change description more accurate
* 🧪 Fix e2e tests
2023-02-02 12:35:38 +01:00
Mutasem Aldmour
a89c9c68d1
test: Add tests for pinning data ( #5157 )
...
* test: add tests for pinning
* test: add test for value
* test: add pinned data tests
* test: refactor into ndv
* refactor: move to ndv
* refactor: rename node
* test: fix test
* test: fix refactor
* test: remove unused id
* test: update test
* test: chain rename input
* test: refactor invoking text
* test: fix ndv tests
* test: move test id
* test: update selectors
2023-01-18 15:48:36 +01: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
Iván Ovejero
4208040495
test(editor): Add e2e tests for inline expression editor ( #4936 )
...
🧪 Add tests for inline expression editor
2022-12-15 15:36:28 +01:00
OlegIvaniv
1c36c37a12
test(editor): Fix flaky e2e tests ( #4779 )
...
* test(editor): Fix default-owner and credentials saving e2e specs
* test(editor): fix webhook node test
* test(editor): add cy command for browser permissions
* test(editor): add cy command for reading clipboard
* Fix 3-default-owner spec
* Resolve review comments
* Merge spec
* Fix http node and expression editor modal specs
* Add optional param to credentials modal saving action to wait for the test endpoint
* Improve sidebar items clicking and increase credentials saving timeout
* Rename http e2e spec to fix ordering
* Fix pasting and copying of nodes e2e spec
* Make sure to only access error.cause if it exists
* Wait longer for the keyboard press
* Make sure to focus the body when typing
* Try type delay
* Use meta key based on the running platform
* Fix flaky workflowTagElements getter
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
2022-12-07 18:16:38 +01:00
Iván Ovejero
59771c80ea
feat(editor): Overhaul expression editor modal ( #4631 )
...
* feat(editor): Integrate CodeMirror into expression editor modal (#4563 )
* ✨ Initial setup
* 👕 Fix lint
* ⚡ Extract segments
* ⚡ Implement var insertion
* 👕 Ignore `.d.cts`
* ⚡ Refactor to simplify
* ✨ Add brace handler
* ✨ Fully replace input and output
* feat(editor): Adjust resolved expression to match parameter input hint (#4600 )
* ✨ Initial adjustments
* 🐛 Prevent empty decorations
* ⚡ Adjust resolved expression to match param input hint
* ✏️ Improve comment
* 👕 Remove lint rule
* ✏️ Fix typo
* ✏️ Fix closing brace
* ⚡ Clean up `displayableSegments()`
* feat(editor): Apply styling to expression editor modal (#4607 )
🎨 Apply styling
* feat(core): Improve errors in evaluated expression (#4619 )
* 🐛 Fix env var access for FE
* 🔥 Remove excess closing bracket
* 🚧 Set up TODO
* ✏️ Update copy
* ⚡ Deny env vars access to FE
* 👕 Remove unneeded lint exception
* 📘 Remove unneeded typing
* feat(editor): Dynamically delay evaluation resolution (#4625 )
* ✏️ Update copy
* ⚡ Dynamically delay evaluation resolution
* 🔥 Remove unneeded computed property
* refactor(editor): Pre-review cleanup (#4627 )
* 🔥 Remove `ExpressionInput` component
* 🔥 Remove Quill
* ✏️ Rename i18n key
* 🎨 Place border on correct element
* 🐛 Handle syntax errors
* ⚡ Add sample autocompletions
* 🐛 Fix auto-extending behavior
* feat(editor): Improve escaping behavior (#4641 )
* 🎨 Hide hint on small screen
* ⚡ Improve escaping
* refactor(editor): Apply styling feedback to expression editor modal (#4660 )
* 🎨 Restyle hint
* 🎨 Restyle param input hint
* 🔥 Remove `e.g.`
* ⚡ Tweak delay
* 🎨 Restyle output
* 🎨 Tweak theme
* ✏️ Tweak copy
* refactor(editor): Apply feedback 2022.11.22 (#4697 )
* 🎨 Change background color
* ⚡ Focus on mount
* ⚡ Account for preexisting braces on injection
* 🐛 Fix `$workflow` showing as not saved
* ✏️ Tweak copy
* 🐛 Fix readonly focus
* ⚡ Focus input on paste
* ⚡ Sync inputs with modal
* ✏️ Tweak copy
* refactor(editor): Apply feedback 2022.11.23 (#4705 )
* ⚡ Allow newlines
* ⚡ Set cursor at end of content
* ⚡ Do not defocus on paste on Chrome
* ⚡ Fix import
* 🧪 Add e2e tests
* ⚡ Cleanup
* ⚡ Add telemetry
* 🔥 Remove log
* ⚡ Expose error properties
* 🧪 Rename test
* ⚡ Move `getCurrentWorkflow()` call
* ⏪ Revert highlighting removal per feedback
* ⚡ Add i18n keys
* 🚚 Move computed property to local state
* 🎨 Use CSS vars
* ⚡ Update `pnpm-lock.yaml`
* ⚡ Apply readonly state
* ⚡ Use prop
* ⚡ Complete fix
2022-12-01 13:26:22 +01:00