vingerha / gtfs2

Support GTFS in Home Assistant GUI-only
https://github.com/vingerha/gtfs2
MIT License
65 stars 4 forks source link

[FEATURE]: Add back button to setup screens #26

Closed DeflateAwning closed 4 months ago

DeflateAwning commented 4 months ago

Describe the solution you'd like A back button alongside the "Submit" button would be very helpful.

Describe alternatives you've considered Currently you have to start over if you misclick.

Additional context This came up because I wasn't sure which route number was inbound, and which was outbound, and I picked the wrong one.

vingerha commented 4 months ago

If you can explain how to EASILY do that ... I would love to.... the config_flow is already not that easy to test I see the same challenges on my side but I that is because I am using this a lot for testing As this is usually a one-off setup for the average user, I donot want to spend a lot of time on it ;)

vingerha commented 4 months ago

Verified with the dev's and there is no such thing in the current config flow to go 'back' Closing this a technically ( currently ) not feasible from the HA custom app integration pov

DeflateAwning commented 4 months ago

Hmm that's too bad; is there a way to have all the config on one screen, with dynamic hiding/showing of fields based on what's selected?

vingerha commented 4 months ago

Nope...the config_flow is a bit limited for more complex stuff, i.e. a more complex one which this one needs. That is also why you are bumping on the other one. It only goes forth, has limited screen sizen and in some cases no option to translate. It is not too bad but packing more options in one screen is not very nice too.... If ever you dive into this..raise any improvement PR ;)