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-image button in docs panel #12202

Merged
merged 3 commits into from
Feb 3, 2025
Merged

Add-image button in docs panel #12202

merged 3 commits into from
Feb 3, 2025

Conversation

kazcw
Copy link
Contributor

@kazcw kazcw commented Jan 31, 2025

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:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

@kazcw kazcw added the CI: No changelog needed Do not require a changelog entry for this PR. label Jan 31, 2025
@kazcw kazcw self-assigned this Jan 31, 2025
@kazcw kazcw marked this pull request as ready for review January 31, 2025 02:37
Copy link

github-actions bot commented Jan 31, 2025

🧪 Storybook is successfully deployed!

📊 Dashboard:

Copy link
Contributor

@farmaazon farmaazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to go.

Comment on lines 30 to 34
// 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'] },
Copy link
Contributor

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 :)

@kazcw kazcw added the CI: Ready to merge This PR is eligible for automatic merge label Jan 31, 2025
@jdunkerley jdunkerley added the CI: Keep up to date Automatically update this PR to the latest develop. label Feb 3, 2025
@jdunkerley jdunkerley removed the CI: Keep up to date Automatically update this PR to the latest develop. label Feb 3, 2025
Copy link
Contributor

@MrFlashAccount MrFlashAccount left a 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

@mergify mergify bot merged commit a310865 into develop Feb 3, 2025
39 of 43 checks passed
@mergify mergify bot deleted the wip/kw/docs-add-image branch February 3, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Add image" button in docpanel which opens file browser.
4 participants