-
Notifications
You must be signed in to change notification settings - Fork 217
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
Allow to edit schedules in the UI #1006
Comments
@adejanovski I wanted to tinker a bit in the Reaper UI and figured this issue might be a decent place to start, but I had a couple of questions...
Thanks! |
No it doesn't yet.
Very good question! I think the safe (and easy path) is to allow changing everything that's specific to the schedule and avoid touching fields from the repair unit. That gives us the following fields:
The new API operation should only expose these fields and in the UI we could (possibly) simplify things by using a popup exposing these fields only. I foresee some tricky stuff if we try to use the current form (which has some shared bits with the repair run form). |
I actually looked at the existing form and quickly decided I wasn't going to try to refactor that to make it support both use-cases. My thought is generally that it should, but perhaps build out the new form and then make the existing form be able to leverage it and wrap it up. The existing form does a lot of stuff it seems - a lot of stuff that I have no idea about :-) |
I agree, there's a lot of logic in there that will make it hard to repurpose for schedule edition. |
So let me know what you think about this... My thinking here is to create a new form, that functions like the existing one, but that can be made a bit more flexible. At the moment it's fairly rigid in what fields are available, but that could be enhanced later for reuse. Adds an "Edit" launch for each schedule: Launches a dialog with the form, only the fields that you mentioned before will be editable: It gives some room to enable editing of other fields later if that's something that we'd need, and should be pretty re-usable for the add workflow. I've re-worked the visual layout slightly to be a bit more consistent across different devices too. |
Awesome stuff @jdonenine! |
We can for sure include the ID, I went with the approach that I did though because the ID isn't referenced in the table at all, so I don't think that having the ID there really adds much association to things. The other challenge there is the UUID is long and won't play well on smaller device resolutions. Although admittedly even a longer "name" will look poor there as well. I'll play around with it and see how it looks, the other thing I'd suggest is that we could add the UUID inside the modal content and not in the header itself? |
Schedules can't be updated, which means they have to be deleted and recreated to change a single setting.
We need to add that feature to improve the UX.
┆Issue is synchronized with this Jira Task by Unito
┆Issue Number: K8SSAND-247
The text was updated successfully, but these errors were encountered: