-
Notifications
You must be signed in to change notification settings - Fork 676
feat(api-reference): editable config in dev toolbar #7050
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
base: main
Are you sure you want to change the base?
Conversation
|
Scalar CDN Snapshot Diff ResultsDetails
Failed teststest-snapshots/snapshot.e2e.ts › Diff with CDN - Relative URL Example Important These tests detect visual differences between the current PR and the latest CDN build which means they may be affected by other changes in They can help determine if the changes in the PR are causing any unexpected visual regressions but may be less helpful in isolating the exact cause. For more details see the readme. |
Scalar Components Snapshot Test ResultsDetails
|
|
ha, that’s so cool! |
6361e6a to
bf657d0
Compare
bf657d0 to
20770b4
Compare
|
✅ All jobs passed Summary: 4 successful workflows
Last updated: 2025-10-20 18:22:34 UTC |
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.
awesome! a few things that I noticed:
can we make it so, that if I hit return, the next lines start with the correct indentation, so I don’t have to hit space 2 times?
we have some strange attributes there by default (slug, title, default), but not the actual document URL, which is probably coming from the recent changes to the configuration. I think it’s a bit confusing.
it shows "esc then tab" but esc already closes the overlay, that’s not how it’s supposed to work, is it?
Seems like this is something with codemirror, the client has the same behavior unfortunately. I'd like to switch this to Monaco anyway so maybe we wait and that should fix it?
Yeah I tried to clean it up best I could, maybe there's a better source of truth for the generated config?
Good catch, I should probably capture the esc here |
|
Off-topic: I don’t think we can use Monaco in the self-hosted version. It requires some kind of sophisticated web worker setup. And it’s just way bigger than CodeMirror. If we want it - let’s say for the Scalar App - we could make Monaco a plugin for the API Client package. |
|
Let's put this one on hold for right now. I have some uncertainty about config reactivity and this is low priority for right now. |
Makes the dev toolbar config editable (and synced with the toggles). It was hard to get the config to sync with the toggles in a way that made sense but I think this is okay?
CleanShot.2025-10-08.at.20.26.09.mp4
Checklist
I've gone through the following:
pnpm changeset).