feat: Add desktop screenshot export with Ctrl/Cmd+P shortcut#6
Closed
NehharShah wants to merge 1 commit intohalcyonic-systems:mainfrom
Closed
feat: Add desktop screenshot export with Ctrl/Cmd+P shortcut#6NehharShah wants to merge 1 commit intohalcyonic-systems:mainfrom
NehharShah wants to merge 1 commit intohalcyonic-systems:mainfrom
Conversation
rsthornton
pushed a commit
that referenced
this pull request
Dec 8, 2025
Implements screenshot capture functionality that works across all BERT deployment contexts (web browser and Tauri desktop). Key implementation details: - Uses web APIs (Blob + anchor download) instead of native file I/O - Works in WASM since BERT's Tauri desktop build uses a webview - Timestamps via js_sys::Date for WASM compatibility - PNG encoding via image crate - Integrates with existing SaveSuccessEvent for toast notifications This implementation builds on the approach proposed in PR #6 by @NehharShah, adapted for BERT's Tauri+WASM architecture where target_arch is always wasm32 even on desktop. Closes #1
rsthornton
pushed a commit
that referenced
this pull request
Dec 8, 2025
Implements screenshot capture functionality that works across all BERT deployment contexts (web browser and Tauri desktop). Key implementation details: - Uses web APIs (Blob + anchor download) instead of native file I/O - Works in WASM since BERT's Tauri desktop build uses a webview - Timestamps via js_sys::Date for WASM compatibility - PNG encoding via image crate - Integrates with existing SaveSuccessEvent for toast notifications This implementation builds on the approach proposed in PR #6 by @NehharShah, adapted for BERT's Tauri+WASM architecture where target_arch is always wasm32 even on desktop. Closes #1
This was referenced Dec 8, 2025
rsthornton
pushed a commit
that referenced
this pull request
Dec 26, 2025
Implements screenshot capture functionality that works across all BERT deployment contexts (web browser and Tauri desktop). Key implementation details: - Uses web APIs (Blob + anchor download) instead of native file I/O - Works in WASM since BERT's Tauri desktop build uses a webview - Timestamps via js_sys::Date for WASM compatibility - PNG encoding via image crate - Integrates with existing SaveSuccessEvent for toast notifications This implementation builds on the approach proposed in PR #6 by @NehharShah, adapted for BERT's Tauri+WASM architecture where target_arch is always wasm32 even on desktop. Closes #1
rsthornton
added a commit
that referenced
this pull request
Dec 26, 2025
Implements screenshot capture functionality that works across all BERT deployment contexts (web browser and Tauri desktop). Key implementation details: - Uses web APIs (Blob + anchor download) instead of native file I/O - Works in WASM since BERT's Tauri desktop build uses a webview - Timestamps via js_sys::Date for WASM compatibility - PNG encoding via image crate - Integrates with existing SaveSuccessEvent for toast notifications This implementation builds on the approach proposed in PR #6 by @NehharShah, adapted for BERT's Tauri+WASM architecture where target_arch is always wasm32 even on desktop. Closes #1 Co-Authored-By: NehharShah <nehharshah@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Contributor
|
Superseded by #7 - thanks for getting this started! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds screenshot export functionality for BERT diagrams on desktop builds, allowing users to capture and save system diagrams for documentation, presentations, and sharing.
Closes #1
Changes
Core Implementation
src/bevy_app/systems/screenshot.rsbert_screenshot_YYYY-MM-DD_HH-MM-SS.pngSaveSuccessEventfor toast notificationsKeyboard Shortcut
#[cfg(not(target_arch = "wasm32"))]Dependencies
chrono = "0.4"as desktop-only dependency for timestamp generation