-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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): Ask AI #6672
Merged
OlegIvaniv
merged 120 commits into
master
from
ado-610-fe-ai-powered-code-generation-in-the-code-node
Aug 16, 2023
Merged
feat(editor): Ask AI #6672
Changes from 5 commits
Commits
Show all changes
120 commits
Select commit
Hold shift + click to select a range
32eb324
feat(editor): Ask AI tab and CLi connection
OlegIvaniv c932c91
Merge branch 'ask-ai-code' into ado-610-fe-ai-powered-code-generation…
OlegIvaniv fca2b52
Remove old getSchema util method
OlegIvaniv f1c3b8a
Increase CSS specificity of the CodeNodeEditor global overrides
OlegIvaniv c8d84ba
feat(editor): Magic Connect
OlegIvaniv d01439a
Improve AI controller, load conditionally, UX modal imporvements
OlegIvaniv 0e39fee
Extract-out AI curl
OlegIvaniv 88628a7
Move loading phrases to locale, add support for ask ai experiment
OlegIvaniv 6215d97
fix build
OlegIvaniv 96bd0d4
adjust communication
RicardoE105 3341217
fix: Remove duplicate source control preferences fetching (no-changel…
alexgrozav 535dc97
fix(Slack Node): Add UTM params to n8n reference in Slack message (no…
OlegIvaniv 67752a6
fix(FileMaker Node): Improve returned error responses (#6585)
airmoi 2a75136
fix(Microsoft Outlook Node): Fix issue with category not correctly ap…
Joffcom 7e21d6c
feat(Airtable Node): Overhaul (#6200)
michael-radency 949937d
fix(core): Deleting manual executions should defer deleting binary da…
netroy 64b48a2
fix(editor): Add paywall state to non owner users for Variables (#6679)
cstuncsik 551b9a8
refactor(core): Refactor WorkflowStatistics code (no-changelog) (#6617)
netroy 3a672b9
fix(editor): Hide Execute Node button for unknown nodes (#6684)
ivov e0cc835
feat: Allow hiding credential params on cloud (#6687)
ivov cfc25ec
fix: Stop n8n from complaining about credentials when saving a new wo…
krynble 89998ff
fix(core): Upgrade semver to address CVE-2022-25883 (#6689)
netroy d8eac09
ci: Fix test checker glob (no changelog) (#6682)
ivov 8a67978
fix(API): Do not add starting node on workflow creation (#6686)
ivov 34e1a1b
fix(core): Filter out workflows that failed to activate on startup (#…
ivov dc889ce
fix(core): Load SAML libraries dynamically (#6690)
flipswitchingmonkey bb63027
fix(crowd.dev Node): Fix documentation urls for crowd.dev credentials…
netroy cecaac2
feat(Read PDF Node): Replace pdf-parse with pdfjs, and add support fo…
netroy 23ac8b5
feat: Allow `eslint-config` to be externally consumable (#6694)
ivov 7763aed
fix(Contentful Node): Fix typo in credential name (no-changelog) (#6692)
Joffcom e1adaa5
fix(editor): Ensure default credential values are not detected as dir…
ivov 9fff0ee
feat(Google Cloud Storage Node): Use streaming for file uploads (#6462)
netroy e3e9e8a
fix(editor): Prevent RMC from loading schema if it's already cached (…
MiloradFilipovic 655e55f
fix(API): Fix issue with workflow setting not supporting newer nanoid…
Joffcom 80ae275
ci: Fix test workflows (no-changelog) (#6698)
netroy 407b4fb
fix(core): Banner dismissal should also work for users migrating to v…
netroy 1f03bfd
fix(Postgres Node): For select queries, empty result should be be rep…
netroy d94101f
feat(editor): Removing `ph-no-capture` class from some elements (#6674)
MiloradFilipovic 69c0f2f
fix(editor): Remove global link styling in v1 banner (#6705)
MiloradFilipovic 5a6d48f
fix: Add missing indices on sqlite (#6673)
valya 351184b
test: Move test timeout to `/cli` (no-changelog) (#6712)
ivov 835588c
fix(core): Redirect user to previous url after SSO signin (#6710)
flipswitchingmonkey acb8cb0
fix(FTP Node): List recursive ignore . and .. to prevent infinite loo…
maspio 77a7d76
ci: Fix running e2e tests in dev mode (no-changelog) (#6717)
netroy 5196f37
fix(Google BigQuery Node): Error description improvement (#6715)
michael-radency c6f7bb2
fix(GitLab Trigger Node): Fix trigger activation 404 error (#6711)
maspio 8fa9263
fix(core): Support redis cluster in queue mode (#6708)
flipswitchingmonkey a4d3eaf
fix(editor): Skip error line highlighting if out of range (#6721)
ivov 64ea002
fix(AwsS3 Node): Fix issue if bucket name contains a '.' (#6542)
Jordan-Hall f68a779
test(editor): Add canvas actions E2E tests (#6723)
cstuncsik 88e54e6
feat(Rundeck Node): Add support for node filters (#5633)
qg-horie cddd47e
fix(Gmail Trigger Node): Early returns in case of no data (#6727)
michael-radency 4e09ae1
fix(core): Use JWT as reset password token (#6714)
RicardoE105 77f00e1
ci: Fix tests on postgres (no-changelog)
netroy e1120cb
refactor(core): Prevent community packages queries if feature is disa…
ivov 1198d8b
feat(core): Add cache service (#6729)
flipswitchingmonkey c2d00b4
Revert "test(editor): Add canvas actions E2E tests" (#6736)
OlegIvaniv 788322b
fix(Postgres Node): Arrays in query replacement fix (#6718)
michael-radency 5ae1b73
fix(Telegram Trigger Node): Add guard to 'include' call on null or un…
michael-radency a5f7d51
fix(core): Use `exec` in docker images to forward signals correctly (…
guoard 4509bc0
refactor(core): Move webhook DB access to repository (no-changelog) (…
ivov c065ba0
feat: Environments release using source control (#6653)
flipswitchingmonkey 6b6c3ab
fix(core): Fix RemoveResetPasswordColumns migration for sqlite (no-ch…
netroy 62df48e
ci: Update changelog generation to work with node 18
netroy 1f05322
refactor: Remove webhook from `IDatabaseCollections` (no-changelog) (…
ivov 60444dd
:rocket: Release 1.1.0 (#6746)
github-actions[bot] 32c7412
fix(Lemlist Node): Fix pagination issues with campaigns and activitie…
Joffcom 29c7895
ci: Fix linting issues (no-changelog) (#6747)
netroy 4b0e241
fix(core): Allow ignoring SSL issues on generic oauth2 credentials (#…
netroy 58ab95b
refactor: Remove all references to the resetPasswordToken field (no-c…
netroy a67e3d8
refactor(core): Use mixins to delete redundant code between Entity cl…
netroy 5132de3
fix: Display source control buttons properly (#6756)
krynble d01fc0c
feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476)
alexgrozav 1b0d270
perf(editor): Memoize locale translate calls during actions generatio…
OlegIvaniv c25a4a2
fix(editor): Close tags dropdown when modal is opened (#6766)
MiloradFilipovic 8d88810
fix: Show NodeIcon tooltips by removing pointer-events: none (#6777)
alexgrozav bbaa3fb
fix: Respect set modal widths (#6771)
mutdmour c3f65d5
fix(editor): Fix tooltip opening delay prop name (#6776)
alexgrozav 2e2b8c8
fix(editor): Fix collapsed sub menu elements (#6778)
cstuncsik 1bb7616
fix: Remove number input arrows (no-changelog) (#6782)
alexgrozav 2b01039
ci: Update most of the dev tooling (no-changelog) (#6780)
netroy ee8e7d4
fix(TheHive Node): Treat `ApiKey` as a secret (#6786)
netroy 5140bcd
test(editor): Prevent node view unload by default in e2e run (#6787)
OlegIvaniv 5b81126
fix(editor): Resolve vue 3 related console-warnings (#6779)
OlegIvaniv bf2262c
fix(editor): Vue3 - Fix modal positioning and multi-select tag sizing…
MiloradFilipovic c5e3c54
ci: Fix linting issues (no-changelog) (#6788)
netroy 48c914f
fix(editor): Fix code node highlight error (#6791)
OlegIvaniv 707d5a2
feat(core): Credentials for popular SecOps services, Part 1 (#6775)
michael-radency fadb10a
refactor: Clear unused ESLint directives from BE packages (no-changel…
ivov 9cf6c25
refactor(core): Cache workflow ownership (#6738)
ivov 5308f31
fix(editor): Prevent text edit dialog from re-opening in same tick (#…
alexgrozav 85484da
test(editor): Do not chain invoke calls after assertions in 24-ndv-pa…
OlegIvaniv ea95e06
fix(Todoist Node): Fix issue with section id being ignored (#6799)
Joffcom df32517
test(editor): Add canvas actions E2E tests (#6723) (#6790)
cstuncsik a9a2c9e
fix(core): Add missing primary key on the `execution_data` table on p…
netroy a16b8fc
fix: Review fixes
OlegIvaniv 88b4a08
fix: Fin locales
OlegIvaniv 3fc6ce8
Merge branch 'master' into ado-610-fe-ai-powered-code-generation-in-t…
OlegIvaniv 1ea7e46
Fix merging errors
OlegIvaniv e18ae98
Map erros based on statusCode
OlegIvaniv 4fe3fab
Fix code replacing
OlegIvaniv e8d6cfd
Fix code formatting
OlegIvaniv 8ca6ba4
Address review points
OlegIvaniv af1b403
Optionally access total_tokens
OlegIvaniv d480095
Clean-up Ask AI modal
OlegIvaniv f7b30ee
Store prompt in sessionStorage
OlegIvaniv c728b33
Improve schema generation, only get parent nodes
OlegIvaniv 0f9ae7b
Send error messages to telemetry, aske before switching tabs
OlegIvaniv ad8477d
Add locale
OlegIvaniv 7c60c87
Merge branch 'master' into ado-610-fe-ai-powered-code-generation-in-t…
OlegIvaniv 2bce33e
Post-merge cleanup
OlegIvaniv c7b7cc9
Move Ask AI into separate folder
OlegIvaniv 7b021b5
Lint fix
OlegIvaniv 24d2cf3
Constants lint fix
OlegIvaniv 4531622
Add Ask AI e2e tests and fix linting issues
OlegIvaniv b50a92d
Move CircleLoader to design-lib
OlegIvaniv 6adc5d9
Replace circle-lodaer and move el-tabs styles to n8n theme
OlegIvaniv 59fdf98
Fix placeholder & e2e tests
OlegIvaniv ad573da
Merge branch 'master' into ado-610-fe-ai-powered-code-generation-in-t…
OlegIvaniv 0170368
Remove old CircleLoader
OlegIvaniv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
50 changes: 50 additions & 0 deletions
50
packages/design-system/src/components/N8nCircleLoader/CircleLoader.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,50 @@ | ||
import N8nCircleLoader from './CircleLoader.vue'; | ||
import type { StoryFn } from '@storybook/vue3'; | ||
|
||
export default { | ||
title: 'Atoms/CircleLoader', | ||
component: N8nCircleLoader, | ||
argTypes: { | ||
radius: { | ||
control: { | ||
type: 'number', | ||
}, | ||
}, | ||
progress: { | ||
control: { | ||
type: 'number', | ||
}, | ||
}, | ||
strokeWidth: { | ||
control: { | ||
type: 'number', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
interface Args { | ||
radius: number; | ||
progress: number; | ||
strokeWidth: number; | ||
} | ||
|
||
const template: StoryFn<Args> = (args, { argTypes }) => ({ | ||
setup: () => ({ args }), | ||
props: Object.keys(argTypes), | ||
components: { | ||
N8nCircleLoader, | ||
}, | ||
template: ` | ||
<div> | ||
<n8n-circle-loader v-bind="args" /> | ||
</div> | ||
`, | ||
}); | ||
|
||
export const defaultCircleLoader = template.bind({}); | ||
defaultCircleLoader.args = { | ||
radius: 20, | ||
progress: 42, | ||
strokeWidth: 10, | ||
}; |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
packages/design-system/src/components/N8nCircleLoader/__tests__/CircleLoader.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,15 @@ | ||
import { render } from '@testing-library/vue'; | ||
import N8NCircleLoader from '../CircleLoader.vue'; | ||
|
||
describe('N8NCircleLoader', () => { | ||
it('should render correctly', () => { | ||
const wrapper = render(N8NCircleLoader, { | ||
props: { | ||
radius: 20, | ||
progress: 42, | ||
strokeWidth: 10, | ||
}, | ||
}); | ||
expect(wrapper.html()).toMatchSnapshot(); | ||
}); | ||
}); |
8 changes: 8 additions & 0 deletions
8
...n-system/src/components/N8nCircleLoader/__tests__/__snapshots__/CircleLoader.spec.ts.snap
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,8 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`N8NCircleLoader > should render correctly 1`] = ` | ||
"<div class=\\"progress-circle\\"><svg class=\\"progress-ring\\" width=\\"60\\" height=\\"60\\"> | ||
<circle class=\\"progressRingCircle\\" stroke-width=\\"10\\" stroke=\\"#DCDFE6\\" fill=\\"transparent\\" r=\\"20\\" cx=\\"30\\" cy=\\"30\\"></circle> | ||
<circle class=\\"progressRingCircle\\" stroke=\\"#5C4EC2\\" stroke-width=\\"10\\" fill=\\"transparent\\" r=\\"20\\" cx=\\"30\\" cy=\\"30\\" style=\\"stroke-dasharray: 125.66370614359172; stroke-dashoffset: 72.8849495632832;\\"></circle> | ||
</svg></div>" | ||
`; |
3 changes: 3 additions & 0 deletions
3
packages/design-system/src/components/N8nCircleLoader/index.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,3 @@ | ||
import N8nCircleLoader from './CircleLoader.vue'; | ||
|
||
export default N8nCircleLoader; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,30 @@ | |
font-weight: bold; | ||
} | ||
|
||
.el-tabs__content { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant tabs.scss before.. since our theme lives there.. but this is fine for now |
||
border: 1px solid var(--color-foreground-base); | ||
border-radius: 0px var(--border-radius-base) var(--border-radius-base); | ||
} | ||
.el-tabs__header { | ||
border-bottom: 0 !important; | ||
} | ||
.el-tabs__nav { | ||
padding: 0; | ||
overflow: hidden; | ||
} | ||
.el-tabs__item { | ||
padding: var(--spacing-5xs) var(--spacing-2xs) !important; | ||
height: auto; | ||
line-height: var(--font-line-height-xloose); | ||
font-weight: var(--font-weight-regular); | ||
font-size: var(--font-size-2xs); | ||
|
||
&:not([aria-selected='true']) { | ||
background-color: var(--color-background-base); | ||
border-bottom: 1px solid var(--color-foreground-base) !important; | ||
} | ||
} | ||
|
||
// Loading Indicator | ||
.el-loading-mask { | ||
background-color: var(--color-foreground-xlight); | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
as string
needed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because
getVariant
return types areboolean | string | undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally we would avoid type casting..