-
Notifications
You must be signed in to change notification settings - Fork 35
Project ux enhancements #177
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
Conversation
578852b to
457e8db
Compare
457e8db to
dd9ab56
Compare
|
rad! what does the check button do on the second screen during update? does it cancel? the italic text seems redundant as well--- might be more informative to just say "please wait..."? how difficult would it be to put the error list into a table? ie. repo on the left, reason on the right. again "update failed" is redundant. and lastly, "already up to date" doesn't seem like a fail state. should it be hidden? |
|
appreciate the feedback @tehn !
👍 on the text changes. the checkbox just dismisses the modal (it's present as part of the So far as adding a cancel for in-flight update all...I immediately send a request to update all the projects once the user checks the confirmation modal, and so far as I can tell, there doesn't really seem to be a way to "stop" a request once it's been made. So it doesn't really make sense, unless I'm wrong about that.
We could. It looks like the way ModalContent works, I don't necessarily need to pass a string, but could rather pass some markup. I can do it as an unordered list and follow the styling more or less from the project list.
All I'm doing is displaying what comes from the api in this list in the format Similarly, the api returns already up to date as a failure (500 response). We could change this to a 200? I don't know too much about the backend stuff but I imagine neither of those changes are very difficult. Right now the UI for update all is consistent with how update single works, so I think we would want to change at the response level and keep the two consistent. I.e. kind of weird to have update all return already up to data as a "success" and update single return it as a "failure" I am ambivalent on the response changes, @ngwese what do you think? I realized a couple bugs. I messed up the styling of the project list on full screen widths, and I think I need to add the refresh functions to the failure callback for partially successful updates. i.e.: I'll also make the string changes and attempt the table styling suggested by @tehn I'll wait to hear from you about the api response changes before making updates there @ngwese |
|
@tehn non-api changing updates finished Ended up using |
|
@jlmitch5 - will take a deeper look at this today, looks like a welcome improvement. |
| <tr> | ||
| <th colspan="2">The table header</th> | ||
| </tr> | ||
| </thead> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlmitch5 - this stray table markup seems like a left over from some earlier work, correct?
|
@jlmitch5 - first thanks so much for hammering this out. i'm sure folks will welcome it as a great step forward in usability. i've reviewed all the changes, done some testing, and ultimately tried tweaking some of the styling (mostly just to simplify it). in the process i ended up refactoring the code which creates the final modal dialog content. the tweaked styling looks like this: update summary just includes "Updated" and "Failed" sections already installed text just says "installed" and the enabled button text is darker @tehn - with respect to the "already up-to-date" being treated as a failure. i agree it isn't really a failure. i spent some time looking at how to best address that and it will require some refactoring in the backend go code and the frontend js API. the short version of the story is that the backend handler for project i'm going to move ahead with merging your changes along with the refactoring aside: the |
|
agreed, this is fantastic! |
|
Catching up, sweet! Thanks for taking it to the finish line. |
|
...if you'd like to enjoy the fruits of your labor you can install the v1.0.1 release. |




fixes #175
DONE
on the available packages list, change the install button to non-clickable, installed grey text
on the installed packages list, have an "update all" button at the top, which only has a single confirmation dialog after clicking "update all", then recursively goes through each installed package and tries to update.
This last modal will change the header to succeeded if no projects fail. If a combination of succeeded and failed updates happen it should show the succeeded projects in a list, then the failed ones in a list (with the reason, like shown in the screenshot above).