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

feat: export graph as png or html #37

Open
tanepiper opened this issue May 20, 2024 · 3 comments
Open

feat: export graph as png or html #37

tanepiper opened this issue May 20, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@tanepiper
Copy link

Is your feature request related to a problem? Please describe.
The tool currently runs as a serve command only, running on localhost. It would be good if the visualisation could be exported to static files so it can be served elsewhere.

Describe the solution you'd like
A rbac-wizard export command that creates a folder to a passed path (argument or option is fine) where there is an index.html file and a .js file with the visualisation library and a .json file with the data.

Describe alternatives you've considered
Dockerising the app, but this would require it to be running in a container logged into production subscriptions

Additional context
Perhaps provide some customisations, external CSS for easy styling, etc

@pehlicd
Copy link
Owner

pehlicd commented May 20, 2024

Hey @tanepiper, thanks for opening up an issue.

Yeah, you are right. Right now, rbac-wizard only supports running on a local machine, but in the following week, I am going to release container images and also add a Helm chart to deploy on Kubernetes easily (#13 and #14 for these things).

Regarding your feature request, while I understand the need for exporting visualizations to static files for serving elsewhere, I believe we should prioritize keeping things simple and manageable. Introducing an export command that generates static files could add complexity, especially when it comes to maintaining custom CSS and ensuring the static files are up-to-date with any changes in the application.

However, I am open to adding customisation options like theming directly within the UI. This would allow users to easily adjust the appearance without needing to manage additional files. If you're interested, I would love to invite you to contribute to the project, particularly with these customisation options. Your input and expertise would be invaluable.

Thanks again for your feedback, and feel free to share any further thoughts or suggestions!

@tanepiper
Copy link
Author

@pehlicd Thanks for the reply and I understand. Maybe one idea around it might be to at least export the canvas as an image (PNG, and potentially SVG)? This would still be useful - for example exporting to put into a Confluence page around infra.

@pehlicd
Copy link
Owner

pehlicd commented May 21, 2024

Great idea! I am planning to implement this feature in the next release. Thanks!

@pehlicd pehlicd added the enhancement New feature or request label May 21, 2024
@pehlicd pehlicd changed the title feat: export to static site feat: export graph as png or html May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants