feat(editor): Show tip when user can type dot after an expression (#8931)

This commit is contained in:
Elias Meire
2024-03-26 15:23:30 +01:00
committed by GitHub
parent 372d5c7d01
commit 160dfd383d
17 changed files with 510 additions and 272 deletions

View File

@@ -56,6 +56,7 @@ export const useNDVStore = defineStore(STORES.NDV, {
},
isMappingOnboarded: useStorage(LOCAL_STORAGE_MAPPING_IS_ONBOARDED).value === 'true',
isAutocompleteOnboarded: useStorage(LOCAL_STORAGE_AUTOCOMPLETE_IS_ONBOARDED).value === 'true',
highlightDraggables: false,
}),
getters: {
activeNode(): INodeUi | null {
@@ -129,7 +130,7 @@ export const useNDVStore = defineStore(STORES.NDV, {
ndvInputBranchIndex(): number | undefined {
return this.input.branch;
},
isDNVDataEmpty() {
isNDVDataEmpty() {
return (panel: 'input' | 'output'): boolean => this[panel].data.isEmpty;
},
isInputParentOfActiveNode(): boolean {
@@ -252,6 +253,9 @@ export const useNDVStore = defineStore(STORES.NDV, {
this.isAutocompleteOnboarded = true;
useStorage(LOCAL_STORAGE_AUTOCOMPLETE_IS_ONBOARDED).value = 'true';
},
setHighlightDraggables(highlight: boolean) {
this.highlightDraggables = highlight;
},
updateNodeParameterIssues(issues: INodeIssues): void {
const workflowsStore = useWorkflowsStore();
const activeNode = workflowsStore.getNodeByName(this.activeNodeName || '');