-
Notifications
You must be signed in to change notification settings - Fork 36
Extras inline file opening #555
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
Conversation
Co-authored-by: me <[email protected]>
Co-authored-by: me <[email protected]>
|
Cursor Agent can help with this pull request. Just |
- Add fallback to data.extra when playground is null to preserve file link functionality - Use specific properties in useMemo dependencies instead of entire playground object to prevent unnecessary re-computation Co-authored-by: me <[email protected]>
|
Bugbot Autofix resolved both of the 2 bugs found in the latest run.
|
Add data.extra.name and data.extra.fullPath to the dependency array to ensure the memo recomputes when navigating between extras without a playground. Previously, when playground was null, the dependencies remained [undefined, undefined], causing stale InlineFile closures. Co-authored-by: me <[email protected]>
|
Bugbot Autofix resolved the bug found in the latest run.
|
…d info Co-authored-by: me <[email protected]>
|
Bugbot Autofix resolved the bug found in the latest run.
|
Co-authored-by: me <[email protected]>
Co-authored-by: me <[email protected]>
Co-authored-by: me <[email protected]>
...hop-app/app/routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/__shared/step-mdx.tsx
Show resolved
Hide resolved
Co-authored-by: me <[email protected]>
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
...hop-app/app/routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/__shared/step-mdx.tsx
Show resolved
Hide resolved
Co-authored-by: me <[email protected]>
Use Playground app info for InlineFile components in Extras to ensure file links open in the Playground.
Note
Low Risk
Low risk UI/UX change around editor link enablement; main risk is inadvertently disabling valid
InlineFilelinks if playground/appName matching logic is wrong or loader data is missing.Overview
Inline file editor links are now tied to the active Playground context. Extras’ MDX
InlineFilelinks now resolve against the playground app (not the extra app) and are disabled with a tooltip until the playground is set to that extra.Reusable disabled-state support was added to MDX inline-file rendering.
createInlineFileComponentnow accepts an optionalgetDisabledReasoncallback to render a consistent tooltip/disabled UI, and the exercise stepInlineFilelogic was updated to block playground opens until the playground matches the current step (with a small fix to render{children}properly when no app is available).Written by Cursor Bugbot for commit 9e8a93e. This will update automatically on new commits. Configure here.