Reset code on critical onboarding steps (#2727)
* Make sure we always reset the code on important steps no matter what the user did to it * Convert comments in codeManager to JSDoc comments so they appear in diagnostics * Was using the wrong codeManager callback * Make sure editorView is available before resetting code * Add Playwright test that shows the code being reset * Fix up text that looks like linksÏ * fmt * Skip test on MacOS, make test more reliable on Chrome * Update cargo-clippy to run based on paths on PRs as well * playw fix * try keep reports * add fix me * try one last thing * fmt --------- Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { OnboardingButtons, useDismiss, useNextClick } from '.'
|
||||
import { OnboardingButtons, useDemoCode, useDismiss, useNextClick } from '.'
|
||||
import { onboardingPaths } from 'routes/Onboarding/paths'
|
||||
import { useStore } from '../../useStore'
|
||||
|
||||
export default function CodeEditor() {
|
||||
export default function OnboardingCodeEditor() {
|
||||
useDemoCode()
|
||||
const { buttonDownInStream } = useStore((s) => ({
|
||||
buttonDownInStream: s.buttonDownInStream,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user