Skip to content
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

Add mechanism for entering custom configurations in examples view. #1062

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

demiankatz
Copy link
Contributor

I thought it would be useful to have a mechanism for providing custom configurations to the UV examples page in order to test configurable features (e.g. this came up because of a discussion about how to test #1061).

This PR adds a form element that can be used to input custom JSON configurations.

Unfortunately, it's not exactly working the way I want it to, which I think is a side effect of the way configuration merging behaves. If I add new settings, I see them getting merged into the configuration. However, if I try to change a default true setting to false, my false setting is simply ignored. I don't know enough about UV configs to understand how to fix/work around this problem.

I'm setting this to a draft until a solution can be found.

Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 2:30pm

@LanieOkorodudu
Copy link
Collaborator

Thanks, @demiankatz. I hope I didn't complicate your work more.

@demiankatz
Copy link
Contributor Author

Thanks, @demiankatz. I hope I didn't complicate your work more.

Not at all -- you just helped to inspire me to try to address a long-standing need. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To be assessed
Development

Successfully merging this pull request may close these issues.

2 participants