-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added "Connect Additional Accounts" view #563
Added "Connect Additional Accounts" view #563
Conversation
Since @Xarthisius has a near complete PR for the API whole-tale/girder_wholetale#364, can we get this working with the backend instead of placeholder text? This would also motivate testing his PR with the UI. |
Is it nearly complete? It is still marked In any case, I wasn't expecting as much feedback on the last PR, so I am going to address that feedback before going further with this one. I will add some review comments to @Xarthisius' PR about the errors that I'm hitting. |
That's what I thought. I marked it |
See whole-tale/girder_wholetale#364 (comment) for technical details - I see that you've updated your branch though, so let me retest. |
…le/dashboard into user-settings-additional-accounts-view
PR and test case have been updated to also include #561 as requested, since that was the ticket that actually needed wiring up to the API. For future reference, it doesn't make much sense to split up the tickets if you're just going to explicitly request that all of the work be done immediately and all at once anyway. I did not see a need to put such a rush on this new feature, but perhaps there is some deadline of which I am unaware? In any case, this is ready for review. Have a lovely weekend. |
@bodom0015 -- clearly a miscommunication and/or misunderstanding on my part. My question above was meant so suggest that for #560 you could use the GET API instead of placeholder HTML text, not that you should also go ahead with #561. When I wrote up #560 bullet 3, I hoped that the backend would be far enough along to just handle the list. Mea culpa. |
Overall this looks great. During testing I've noticed one problem and one detail missing from the original issue #561. First, during step 6 the modal state doesn't clear and I'm seeing an error in the console:
If I select "Connect Account" button immediately after configuring an API key, the target and key are sometimes present in the modal. I assume it's related to the above error. Second, the "Get from Zenodo" link replaces the current window which, while not specified in the original issue or mockup, I assume would be better as a new tab/window. This requires the user to configure the token and copy/paste back into the "Connect Account" window. |
Good catch - @Xarthisius brought this up yesterday as well and I had forgotten to revisit it
Also good catch - I thought of this during the dev call yesterday and (again) forgot to revisit Both should be fixed now 👍 |
There's a fairly annoying, somewhat complex bug that I'm still trying to track down. Given the complicated setup it is possible that a user would never hit this in practice, but I've been wrong before. Steps to reproduce
Expected Results
Actual Results
|
@bodom0015 I've hit a variation of what you described with a simpler scenario:
Repating 2.-4. n times, will result in n modals. |
@Xarthisius thank you! Curious.. I will use this to try and track down what could be happening there 👍 |
Dug into this a bit, and it seems that anywhere we see this same behavior anywhere that don't use the The Select Data / Tale Workspaces modals use the correct helper, but the Publish modal does not. The issue here seems to be that navigations do not appear to be reset the DOM, and cause a duplicate modal to be inserted the next time it is requested. I've retested with the Publish modal and, while there is no duplicate shown, I did run into the state where the Cancel button did not function. Perhaps that could explain the strange behavior we see where the Cancel button suddenly stops functioning? It seems like if we use an ID selector (e.g. At the time, my modals in Chrome's Element inspector looked as follows:
Note that even in this case, as long as we use an ID selector only one modal should be The right way to fix this is probably to use the |
Confirmed with the |
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.
Aside from the problem you noted, this looks good to me. I assume it will be included in a later PR.
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.
Approving but noting the second modal problem is still lurking. Let's discuss on the next dev call whether we should merge this and create an issue (since the issue spans other parts of the dashboard) or try and fix it here.
Updated PR to include an attempt to cover-up the duplicate modal issue. Seems like it isn't visible to the user as long as we use an ID selector, although inspecting with the debugger shows us that the modals are still there (just I also included a fix for the footer... Previously, content above the footer that was long enough would cause it to improperly float over and obscure the page content. I believe this should have been Finally, I've added support for |
Here are two variants that have a similar workflow to the double-modal issue
|
I have filed #572 to track the duplicate modal issue |
Problem
We need a new view for the "Connect Additional Accounts" functionality.
Fixes #559
Fixes #560
Fixes #561
Approach
Once the API is live, real data can be wired up. This could either be done as a part of this PR, or as a subsequent one.
Demonstration
http://recordit.co/YNyn1S1JVj
How to Test
Prerequisite: must run alongside whole-tale/girder_wholetale#364