rbac-wizard icon indicating copy to clipboard operation
rbac-wizard copied to clipboard

feat: export graph as png or html

Open tanepiper opened this issue 1 year ago • 3 comments

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

tanepiper avatar May 20 '24 14:05 tanepiper

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!

pehlicd avatar May 20 '24 19:05 pehlicd

@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.

tanepiper avatar May 21 '24 05:05 tanepiper

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

pehlicd avatar May 21 '24 18:05 pehlicd