forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(novui, web, framework): Step control autocomplete (novuhq#6330)
Co-authored-by: Joel Anton <[email protected]> Co-authored-by: Richard Fontein <[email protected]>
- Loading branch information
1 parent
cc519c5
commit 5149f3d
Showing
40 changed files
with
1,715 additions
and
84 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 |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
"bcast", | ||
"behaviour", | ||
"bestguess", | ||
"tiptap", | ||
"binipdisplay", | ||
"bitauth", | ||
"bitjson", | ||
|
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
18 changes: 14 additions & 4 deletions
18
apps/web/src/components/workflow/preview/ErrorPrettyRender.tsx
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './routing'; | ||
export * from './variables'; |
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,20 @@ | ||
import { SystemVariablesWithTypes } from '@novu/shared'; | ||
|
||
export function getSuggestionVariables(schemaObject, namespace: string) { | ||
return Object.keys(schemaObject) | ||
.flatMap((name) => { | ||
const schemaItem = schemaObject[name]; | ||
if (schemaItem?.type === 'object') { | ||
return getSuggestionVariables(schemaItem.properties, `${namespace}.${name}`); | ||
} | ||
if (schemaItem?.type === 'array') { | ||
// TODO: determine how we should handle dynamic (array-based controls) | ||
return; | ||
} | ||
|
||
return `${namespace}.${name}`; | ||
}) | ||
.filter((variable) => !!variable); | ||
} | ||
|
||
export const subscriberVariables = getSuggestionVariables(SystemVariablesWithTypes.subscriber, 'subscriber'); |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@layer reset, base, mantine, tokens, recipes, utilities; | ||
|
||
@import '@mantine/core/styles.layer.css'; | ||
@import '@mantine/tiptap/styles.layer.css'; | ||
@import '../styled-system/styles.css'; |
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
Oops, something went wrong.