Closed carbonrobot closed 10 months ago
Latest commit: c3b16d6b28a371ddf737fc13a643e0d280fc13f2
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@kgpax good call, will see what we can do here
@kgpax Updated. I was unable to find a solution to "Automatically truncate large values". The only options are word wrap, but thats not really the same thing. Play around with the current build and let me know what you think.
@kgpax Updated. I was unable to find a solution to "Automatically truncate large values". The only options are word wrap, but thats not really the same thing. Play around with the current build and let me know what you think.
I think the truncation in the previous component was there because the default behaviour was to wrap the text (i.e., a long value would wrap over multiple lines)... therefore the truncation made it better because each line was a different property.
Given that this editor has word-wrap disabled, we kind of get that same overall experience, so on reflection I'd say that the truncation isn't really necessary any more.
Preview Package Publishing
🦋 success packages published successfully:
🦋 @envyjs/apollo@0.9.0-next.0
🦋 @envyjs/core@0.9.0-next.0
🦋 @envyjs/nextjs@0.9.0-next.0
🦋 @envyjs/node@0.9.0-next.0
🦋 @envyjs/web@0.9.0-next.0
🦋 @envyjs/webui@0.9.0-next.0
Use
monaco-editor
for code display instead of@microlink/react-json-view
.We want to remove the current editor to resolve the dependency issues with
npm
. See #171 for more information. Monaco Editor is the tool that powers the VS Code Editor. Having a lightweight editor allows us the opportunity to allow editing and replaying in the UX in a future update and provides built in language support/syntax highlighting for multiple response types.<CodeDisplay>
component that uses thecontent-type
header value to determine the language for syntax highlightingBefore
After
Also fixes an issue where large auth tokens that are large expand vertically
Before
After