Skip to content

Add option to export all diagrams from UI (same as CLI) #3497

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

Merged
merged 2 commits into from
Sep 21, 2024

Conversation

frankvanbever
Copy link
Contributor

Creating a full export of all diagrams in a model was already possible from the command-line. This can be intimidating for people who are less used to working in a CLI environment. I encountered this issue at my work where some system engineers were going through their model and manually exporting diagrams one-by-one, which is not a good use of their time. I quickly whipped up a plugin for them to do a dump to PNG. This PR is the cleaned up version of that plugin with support for all 4 formats that Gaphor currently supports.

Additionally this also adds support for EPS export on the CLI which was missing before.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Export is only available for a single diagram in the UI

Issue Number: N/A

What is the new behavior?

Menu options exist to export all diagrams in the model to a specific format

image

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the python Pull requests that update Python code label Sep 19, 2024
This takes the functionality that was previously only available via the
CLI and makes it available from the UI.

Signed-off-by: Frank Vanbever <frank.vanbever@mind.be>
Signed-off-by: Frank Vanbever <frank.vanbever@mind.be>
@frankvanbever frankvanbever marked this pull request as ready for review September 19, 2024 10:40
@amolenaar
Copy link
Member

LGTM

@amolenaar amolenaar merged commit 9718058 into gaphor:main Sep 21, 2024
21 checks passed
@amolenaar
Copy link
Member

@all-contributors Add @frankvanbever for code

Copy link
Contributor

@amolenaar

I've put up a pull request to add @frankvanbever! 🎉

@danyeaw danyeaw added feature A new feature and removed python Pull requests that update Python code labels Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants