-
Notifications
You must be signed in to change notification settings - Fork 855
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
Open the corresponding tab when a server is clicked in settings page #425
Conversation
Thanks @yuya-oc!
I see -- due to this limitation, I hit the following error:
Observed: The app attempts to open the tab, but gives a blank page since the server wasn't saved I wonder if we need to implement auto-saving on the Settings page first, or as part of this feature..that way the user wouldn't have to hit "Save" each time they change something, and it would resolve this limitation. |
Ah, I missed this case. How about saving the config when this feature performs? It's not hard. |
That could work -- would saving App options be included as part of this, or would it be something different? |
For now, app options will be included. |
Now the settings are saved as well as "Save" when a server is clicked. https://circleci.com/gh/yuya-oc/desktop/148#artifacts This fixes the issue, #425 (comment) |
Thanks @yuya-oc! Just a couple of minor notes:
This is to follow the Mattermost UX guidelines
If we do this, we can make the "X" have the same action as "Save". One concern I have is that users cannot "undo" their actions, but I think that's fine (it's easy to edit/remove servers and people can update the app options easily). |
f813435
to
6914ffd
Compare
https://circleci.com/gh/yuya-oc/desktop/154#artifacts
|
Yeah exactly: since the
the Cancel/Save buttons are redundant. It's also not obvious that the Cancel/Save buttons are both for the server management and app options --> I would assume that servers save automatically, and might end up clicking "Cancel" just to undo my changes to the app options. NOTE: I will actually confirm this with the UX design team today (we have a meeting in about three hours), and I'll let you know if they feel the same. |
Hooray! 🎉 |
@jasonblais Should we remove the Cancel/Save buttons? |
6914ffd
to
d3d1f00
Compare
Hey @yuya-oc, really sorry for not replying back. Yes, removing the "cancel/save" buttons was approved, but it was also proposed that we add some type of feedback to let the user know that settings were saved. Here's a link to a brief specification of its design. It's subject to change as we might update the design a little (we'll be finalizing it over the next couple of days). How much work would you estimate it would take to add feedback as described on the spec? Would it be reasonable for v3.6? That would be one of the last things for v3.6, apart from testing #428, part 3 of #401 and having Asaad's help with the plus-icon in #401. |
Probably 1 day after the appearance is decided once. I think there are three choices for the indicator level of this purpose.
This is just a mock of 2 and 3 for proposal. If 1 is chosen, something like toastr would make sense. |
Now all options are automatically saved. https://circleci.com/gh/yuya-oc/desktop/162#artifacts |
Awesome! I'll test this out soon |
Thanks @yuya-oc! This is wonderful work 🎉 Just a few notes A. "Saved!" appears after cancelling server updates1 - Go to File > Settings and select "Add new server" Expected: No feedback since I made no updates B. "Saving..." doesn't appear for 0.5 secondsI think the spec proposed having "Saving..." appear for 0.5 seconds after the most recent change on the Settings page, before "Saved!" is shown. Example scenario: 1 - Save a setting at t = 0s ^ This is so that it's more clear that C. Question: Does the fading out take a second?It appears to happen a bit faster (maybe in 0.5 seconds), but I might be wrong. It felt a little abrupt for me. D. Location of "Saved!" indicatorYou've correctly implemented the location of the indicator, but I think it's not going to work for all screen sizes..see attached for an example Hence, propose:
E. Style of "Saved!" indicatorSorry, one more change from the original spec: 1 - please help remove "!" from "Saved!". I forgot we had a guideline not to end feedback messages in an exclamation mark. 2 - please help change the colour for "Saving..." and "Saved!" indicators to match the original "Save" button This style is more consistent with what we use elsewhere, such as the "Add new server" modal |
601cbbf
to
3aefb5f
Compare
Thanks for feedback. This is the latest build: https://circleci.com/gh/yuya-oc/desktop/164#artifacts A: B: C: D: E: F: |
Thanks! Testing now |
C - Sounds good, wanted to confirm E - Let's leave the colour as-is F - Should we try and clear these errors for 3.6? We should try to keep the JavaScript errors at a minimum. Clearing these errors would be okay next week, they don't need to be included in the first release candidate cut. PS: I shared two videos with you on pre-release as I wasn't able to upload them here. They show two potential issues to investigate, but otherwise all look great! Wonderful work @yuya-oc :) |
F: |
3aefb5f
to
0e32a22
Compare
F: I can create a separate ticket for it and we can fix it in a later version, that works too |
Thanks @jasonblais. If it seems possible, I will try that in RC. Then, this is the latest build to fix animation issues, and it's rebased against to the latest master. https://circleci.com/gh/yuya-oc/desktop/166#artifacts
It seems the point of issues is that the fading out is not cancelable in |
Before submitting, please confirm you've
npm run lint:js
for proper code formattingPlease provide the following information:
Summary
The part 2 of #400.
Proposal:
To prevent unexpectedly clicking "Edit" or "Remove", a clickable area is limited to server name and URL. (Red squares in the screenshot)
Issue link
#400
Test Cases
Additional Notes
Limitation: Currently the changes in settings page would be lost when this feature performs. There is no way to know whether the changes are already saved.