-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into NODE-408-node-reference-in-expressions
* master: feat(editor): Version Control settings update (WIP) (#6233) ci: Fix linting issue on master (no-changelog) (#6232) fix: Prevent type error messages for manual executions (no-changelog) (#6229) fix(Code Node): Restore help text (#6231) fix(core): Make sure that special polling parameters are available on community nodes as well (#6230) feat(editor): Add color picker design system component (#6179) feat(Google Ads Node): Update to support v13 (#6212) ci: Fix published nodes-base package's dependencies (no-changelog) (#6226) ci: Code coverage should include `.vue` files as well (no-changelog) (#6224) 🚀 Release 0.228.0 (#6219)
- Loading branch information
Showing
29 changed files
with
689 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,43 @@ | ||
# [0.228.0](https://github.com/n8n-io/n8n/compare/[email protected]@0.228.0) (2023-05-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **AWS Rekognition Node:** Fix all different action type ([#6136](https://github.com/n8n-io/n8n/issues/6136)) ([22b82a4](https://github.com/n8n-io/n8n/commit/22b82a43a24bb8415eb8f4a941b05647ef8904c2)) | ||
* **core:** Ensure DB repositories are initialized before the DB migrations are run ([#6220](https://github.com/n8n-io/n8n/issues/6220)) ([500c0eb](https://github.com/n8n-io/n8n/commit/500c0ebce34dc2d21a531176dee965a70abec5f8)) | ||
* **core:** Move nodeExecute InternalHook calls to hookFunctionsSave ([#6193](https://github.com/n8n-io/n8n/issues/6193)) ([f00b2ae](https://github.com/n8n-io/n8n/commit/f00b2ae3eaa225e483abc8defdc58d27b7d2c5e8)) | ||
* Correctly save executions that failed when polling as error instead of new ([#6192](https://github.com/n8n-io/n8n/issues/6192)) ([06948b5](https://github.com/n8n-io/n8n/commit/06948b5ba5775b4f03d1ce46d57a461014317d51)) | ||
* **editor:** Add loading skeletons to Executions list page ([#6184](https://github.com/n8n-io/n8n/issues/6184)) ([eae3a55](https://github.com/n8n-io/n8n/commit/eae3a55cc6b87bc8998d18d3d32d0d03013996b1)) | ||
* **editor:** Display SSO entry in Settings on Cloud ([#6181](https://github.com/n8n-io/n8n/issues/6181)) ([b0a1899](https://github.com/n8n-io/n8n/commit/b0a1899e7141e5726d4fcbca6bba47e8e4b5cef7)) | ||
* **editor:** Fix polling trigger check for `runData` ([#6130](https://github.com/n8n-io/n8n/issues/6130)) ([80831cd](https://github.com/n8n-io/n8n/commit/80831cd7c60f77557c37317600690a289d966448)) | ||
* **editor:** Fix viewing and downloading of binary data ([#6218](https://github.com/n8n-io/n8n/issues/6218)) ([b9779c3](https://github.com/n8n-io/n8n/commit/b9779c32936c8b5e2385226ecab1025ff88d7044)) | ||
* **editor:** Flag issues only on workflow activation ([#6127](https://github.com/n8n-io/n8n/issues/6127)) ([1b49c17](https://github.com/n8n-io/n8n/commit/1b49c17f38e97547430c407e21284b0c508469fa)) | ||
* **editor:** Remove duplicate mapping of `item.json` key in data pinning ([#6135](https://github.com/n8n-io/n8n/issues/6135)) ([91fee0c](https://github.com/n8n-io/n8n/commit/91fee0ca667f233c0bde0dc6089bbed7d7db5b5f)) | ||
* **editor:** Show the correct actions count in the nodes list ([#6183](https://github.com/n8n-io/n8n/issues/6183)) ([751e132](https://github.com/n8n-io/n8n/commit/751e132968470144cfca1c1b7ca22caf2c4c1de4)) | ||
* **editor:** Update and add design system checkbox component to Editor ([#6178](https://github.com/n8n-io/n8n/issues/6178)) ([13c143e](https://github.com/n8n-io/n8n/commit/13c143eb6df41457fbd361674f2063b983a0e077)) | ||
* **editor:** Update and fix storybook (was failing to run in local dev mode) ([#6180](https://github.com/n8n-io/n8n/issues/6180)) ([1e6a75f](https://github.com/n8n-io/n8n/commit/1e6a75f3416cdfcce1299dc9d242e23d0ea97ad3)) | ||
* **FTP Node:** Use filename instead of remote filepath for downloaded binary data ([#6170](https://github.com/n8n-io/n8n/issues/6170)) ([be08933](https://github.com/n8n-io/n8n/commit/be089331b372e029ab5516b91e63a2d5d9033719)) | ||
* **Google Sheets Node:** Upgrade xlsx to address CVE-2023-30533 ([#6172](https://github.com/n8n-io/n8n/issues/6172)) ([45dc985](https://github.com/n8n-io/n8n/commit/45dc985af742b049dc5673cf972da704d1f1f220)) | ||
* **HTTP Request Node:** Correctly doesn't redirect on non GET method ([#6132](https://github.com/n8n-io/n8n/issues/6132)) ([3f5c606](https://github.com/n8n-io/n8n/commit/3f5c6062542f3b2b8a02cf0820e03da3f01d8bf2)) | ||
* **MySQL Node:** Node should return date types as strings ([#6169](https://github.com/n8n-io/n8n/issues/6169)) ([5d77ec7](https://github.com/n8n-io/n8n/commit/5d77ec76e3c47fe9f9d7f31fe6c03827685ec576)) | ||
* **Postgres Node:** Always return TIMESTAMP and TIMESTAMPZ as ISO string ([#6145](https://github.com/n8n-io/n8n/issues/6145)) ([0eb4d9f](https://github.com/n8n-io/n8n/commit/0eb4d9fc16aad1d1a350ba074c4b86712fbd90a1)) | ||
* Prevent overflow when rendering expression hints ([#6214](https://github.com/n8n-io/n8n/issues/6214)) ([c717771](https://github.com/n8n-io/n8n/commit/c7177719e5f60813f4d15f7f97f1b4f253e29b07)) | ||
* Prevent unnecessary error messages also for data loaded flag ([#6201](https://github.com/n8n-io/n8n/issues/6201)) ([d5e62ff](https://github.com/n8n-io/n8n/commit/d5e62ff096ddefd52dae742166fe92ceef17ded6)) | ||
|
||
|
||
### Features | ||
|
||
* **Airtable Node:** Access token support ([#6160](https://github.com/n8n-io/n8n/issues/6160)) ([f9fd820](https://github.com/n8n-io/n8n/commit/f9fd82040ac09914a03e5b9f8f84fce5f6a99835)) | ||
* **Code Node:** Add Python support ([#4295](https://github.com/n8n-io/n8n/issues/4295)) ([35c8510](https://github.com/n8n-io/n8n/commit/35c8510ab6d607fe59056a4aa1d8d148e194d12c)) | ||
* **core:** Improve health check ([#6205](https://github.com/n8n-io/n8n/issues/6205)) ([9e7b9fb](https://github.com/n8n-io/n8n/commit/9e7b9fb443046c73135efb70d0d1894207125f66)) | ||
* Create NPM node ([#6177](https://github.com/n8n-io/n8n/issues/6177)) ([f3bc6f1](https://github.com/n8n-io/n8n/commit/f3bc6f19b68f6bd4bd99614f60bd6833bd15813f)) | ||
* **Date & Time Node:** Overhaul of the node ([#5904](https://github.com/n8n-io/n8n/issues/5904)) ([7d1d1f7](https://github.com/n8n-io/n8n/commit/7d1d1f7872163cecb468c317670da2d8b89a7651)) | ||
* **HubSpot Node:** Overhaul the HubSpot Node ([#4337](https://github.com/n8n-io/n8n/issues/4337)) ([2913e67](https://github.com/n8n-io/n8n/commit/2913e676e639757cdf1a513ad35a7df0e494fa6f)) | ||
* **JotForm Trigger Node:** Add support for hipaa-api.jotform.com ([#6171](https://github.com/n8n-io/n8n/issues/6171)) ([3074f42](https://github.com/n8n-io/n8n/commit/3074f42b3b98cf0dbdc13ad7b927d6b7fc726fab)) | ||
* **Kafka Trigger Node:** Add non-parallel execution ([#6175](https://github.com/n8n-io/n8n/issues/6175)) ([814ea51](https://github.com/n8n-io/n8n/commit/814ea5185ce82e0a7687b41161602b45f92bee93)) | ||
|
||
|
||
|
||
# [0.227.0](https://github.com/n8n-io/n8n/compare/[email protected]@0.227.0) (2023-05-03) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
packages/design-system/src/components/N8nColorPicker/ColorPicker.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { action } from '@storybook/addon-actions'; | ||
import type { StoryFn } from '@storybook/vue'; | ||
import N8nColorPicker from './ColorPicker.vue'; | ||
|
||
export default { | ||
title: 'Atoms/ColorPicker', | ||
component: N8nColorPicker, | ||
argTypes: { | ||
disabled: { | ||
control: 'boolean', | ||
}, | ||
size: { | ||
control: 'select', | ||
options: ['mini', 'small', 'medium', 'large'], | ||
}, | ||
showAlpha: { | ||
control: 'boolean', | ||
}, | ||
colorFormat: { | ||
control: 'select', | ||
options: ['hsl', 'hsv', 'hex', 'rgb'], | ||
}, | ||
popperClass: { | ||
control: 'text', | ||
}, | ||
predefine: { | ||
control: 'array', | ||
}, | ||
}, | ||
}; | ||
|
||
const methods = { | ||
onChange: action('change'), | ||
onActiveChange: action('active-change'), | ||
onInput: action('input'), | ||
}; | ||
|
||
const DefaultTemplate: StoryFn = (args, { argTypes }) => ({ | ||
props: Object.keys(argTypes), | ||
components: { | ||
N8nColorPicker, | ||
}, | ||
data: () => ({ | ||
color: null, | ||
}), | ||
template: | ||
'<n8n-color-picker v-model="color" v-bind="$props" @input="onInput" @change="onChange" @active-change="onActiveChange" />', | ||
methods, | ||
}); | ||
|
||
export const Default = DefaultTemplate.bind({}); | ||
Default.args = { | ||
disabled: false, | ||
size: 'medium', | ||
showAlpha: false, | ||
colorFormat: '', | ||
popperClass: '', | ||
showInput: true, | ||
}; |
99 changes: 99 additions & 0 deletions
99
packages/design-system/src/components/N8nColorPicker/ColorPicker.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<script lang="ts" setup> | ||
import { computed, ref } from 'vue'; | ||
import { ColorPicker } from 'element-ui'; | ||
import N8nInput from '../N8nInput'; | ||
export type Props = { | ||
disabled?: boolean; | ||
size?: 'small' | 'medium' | 'mini'; | ||
showAlpha?: boolean; | ||
colorFormat?: 'hex' | 'rgb' | 'hsl' | 'hsv'; | ||
popperClass?: string; | ||
predefine?: string[]; | ||
value?: string; | ||
showInput?: boolean; | ||
}; | ||
const props = withDefaults(defineProps<Props>(), { | ||
disabled: false, | ||
size: 'medium', | ||
showAlpha: false, | ||
colorFormat: 'hex', | ||
popperClass: '', | ||
showInput: true, | ||
value: null, | ||
}); | ||
const color = ref(props.value); | ||
const colorPickerProps = computed(() => { | ||
const { value, showInput, ...rest } = props; | ||
return rest; | ||
}); | ||
const emit = defineEmits<{ | ||
(event: 'input', value: string): void; | ||
(event: 'change', value: string): void; | ||
(event: 'active-change', value: string): void; | ||
}>(); | ||
const model = computed({ | ||
get() { | ||
return color.value; | ||
}, | ||
set(value: string) { | ||
color.value = value; | ||
emit('input', value); | ||
}, | ||
}); | ||
const onChange = (value: string) => { | ||
emit('change', value); | ||
}; | ||
const onInput = (value: string) => { | ||
color.value = value; | ||
}; | ||
const onActiveChange = (value: string) => { | ||
emit('active-change', value); | ||
}; | ||
</script> | ||
<template> | ||
<span :class="['n8n-color-picker', $style.component]"> | ||
<color-picker | ||
v-model="model" | ||
v-bind="colorPickerProps" | ||
@change="onChange" | ||
@active-change="onActiveChange" | ||
/> | ||
<n8n-input | ||
v-if="showInput" | ||
:class="$style.input" | ||
:disabled="props.disabled" | ||
:size="props.size" | ||
:value="color" | ||
@input="onInput" | ||
type="text" | ||
/> | ||
</span> | ||
</template> | ||
<style lang="scss" module> | ||
.component { | ||
display: inline-flex; | ||
align-items: center; | ||
} | ||
.input { | ||
margin-left: var(--spacing-3xs); | ||
} | ||
</style> | ||
|
||
<style lang="scss" scoped> | ||
:deep(.el-color-picker) { | ||
.el-color-picker__empty, | ||
.el-color-picker__icon { | ||
display: none; | ||
} | ||
} | ||
</style> |
16 changes: 16 additions & 0 deletions
16
packages/design-system/src/components/N8nColorPicker/__tests__/ColorPicker.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { render } from '@testing-library/vue'; | ||
import N8nColorPicker from '../ColorPicker.vue'; | ||
|
||
describe('components', () => { | ||
describe('N8nColorPicker', () => { | ||
it('should render with input', () => { | ||
const { container } = render(N8nColorPicker); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
it('should render without input', () => { | ||
const { container } = render(N8nColorPicker, { props: { showInput: false } }); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.