-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(dashboard): digest aggregated by key field editor with autosuggestions #7322
feat(dashboard): digest aggregated by key field editor with autosuggestions #7322
Conversation
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.
Nice 👌🏼
Not a blocker: We may need to add a custom scrollbar for the editor. the current one looks a bit clunky 😅
@LetItRock do we need to have the {{curly}} braces for it in the design? I was expecting not to have it and select the key itself. I'm concerned it's confusing and people won't understand the {{ are needed. cc. @twentyone24 |
className={cn( | ||
'min-w-[20ch] [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none' | ||
)} | ||
<Editor |
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.
Note that as part of future work, we need to introduce a single line editor component that leverages the <Editor/>
but behaves like an input. That is, on Enter press no new limes should be added, and on tab press we should move to the next input in the form instead of applying indentation to the current line of text.
@scopsy This is our approach in "almost" all editor fields; the field is free text plus variables. I know this one is a bit different, but I don't remember if we allow having multiple keys separated by a comma (like we had in v1) |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
What changed? Why was the change needed?
Digest - aggregated by key field support the editor with autosuggestions for the variables.
Screenshots
Screen.Recording.2024-12-18.at.12.15.04.mov