-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
feat: Move Database Import option into DB Connection modal #19314
Conversation
a08f7ba
to
4f46b15
Compare
f035393
to
14ec320
Compare
/testenv up |
@lyndsiWilliams Container image not yet published for this PR. Please try again when build is complete. |
@lyndsiWilliams Ephemeral environment creation failed. Please check the Actions logs for details. |
/testenv up |
@lyndsiWilliams Ephemeral environment spinning up at http://35.87.202.25:8080. Credentials are |
Codecov Report
@@ Coverage Diff @@
## master #19314 +/- ##
========================================
Coverage 66.43% 66.44%
========================================
Files 1670 1678 +8
Lines 63958 64243 +285
Branches 6506 6584 +78
========================================
+ Hits 42490 42684 +194
- Misses 19782 19856 +74
- Partials 1686 1703 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@lyndsiWilliams Ephemeral environment spinning up at http://35.86.102.143:8080. Credentials are |
@@ -381,6 +381,7 @@ interface ImportResourceState { | |||
loading: boolean; | |||
passwordsNeeded: string[]; | |||
alreadyExists: string[]; | |||
errored: boolean; |
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.
nit: name this failed
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.
Can do! Fixed in this commit
.
/testenv up |
@lyndsiWilliams Ephemeral environment spinning up at http://34.222.96.52:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
/testenv up |
@yousoph Container image not yet published for this PR. Please try again when build is complete. |
@yousoph Ephemeral environment creation failed. Please check the Actions logs for details. |
/testenv up |
@lyndsiWilliams Ephemeral environment spinning up at http://34.218.59.123:8080. Credentials are |
if (onDatabaseAdd) { | ||
onDatabaseAdd(); | ||
} | ||
if (onDatabaseAdd) onDatabaseAdd(); |
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.
nit, but a little cleaner for next time:
if (onDatabaseAdd) onDatabaseAdd(); | |
onDatabaseAdd && onDatabaseAdd(); |
setHasConnectedDb(false); | ||
} | ||
if (editNewDb) setHasConnectedDb(false); | ||
if (importingModal) setImportingModal(false); |
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.
another nit that we can prob address in a later cleanup. The name importingModal
sounds like a current state where the modal is importing.
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.
Nice job @lyndsiWilliams!
Ephemeral environment shutdown and build artifacts deleted. |
) * rebase * more progress * Fix unintended changes * DB import goes to step 3 * debugging * DB list refreshing properly * import screens flowing properly * Code cleanup * Fixed back button on import flow * Remove import db tooltip test * Fix test * Password field resets properly * Changed import modal state dictators and removed unneeded comment * Removed unneeded param pass and corrected modal spelling * Fixed typos * Changed file to fileList * Clarified import footer comment * Cleaned passwordNeededField and confirmOverwriteField state checks * debugging * Import state flow fixed * Removed unneeded importModal check in unreachable area * Fixed import db footer behavior when pressing back on step 2 * Import db button now at 14px * Removed animation from import db button * Fixed doble-loading successToast * Fixed errored import behavior * Updated import password check info box text * Connect button disables while importing db is loading * Connect button disables while overwrite confirmation is still needed * Connect button disables while password confirmation is still needed * Removed gray line under upload filename * Hide trashcan icon on import filename * Modal scroll behavior fixed for importing filename * Changed errored to failed * RTL testing for db import
SUMMARY
This PR moves the import database from file option inside of the database connection modal.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
AFTER:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION