-
Notifications
You must be signed in to change notification settings - Fork 327
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-image button in docs panel #12202
Conversation
🧪 Storybook is successfully deployed!📊 Dashboard:
|
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.
Ok to go.
// List taken from https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types | ||
'image/apng': { extension: 'apng' }, | ||
'image/avif': { extension: 'avif' }, | ||
'image/gif': { extension: 'gif' }, | ||
'image/jpeg': { extension: 'jpg' }, | ||
'image/png': { extension: 'png' }, | ||
'image/svg+xml': { extension: 'svg' }, | ||
'image/webp': { extension: 'webp' }, | ||
'image/apng': { extensions: ['apng'] }, | ||
'image/avif': { extensions: ['avif'] }, | ||
'image/gif': { extensions: ['gif'] }, | ||
'image/jpeg': { extensions: ['jpg', 'jpeg'] }, |
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.
Look at the link in the comment: there are more alternatives for jpeg :)
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.
Approving dashboard-related changes
Pull Request Description
Add button to documentation panel for inserting images; opens a file chooser dialog that is restricted to the same image types we allow when pasting.
Gravacao.do.ecra.2025-01-30.as.18.32.06.mov
Fixes #10102.
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.