-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add visual feedback on API address change (#1671)
* Add error text to API address settings * Populate error message for invalid addresses and connection errors * Add outline to ApiAddressForm to indicate address validity * Add apiAddress to "could not connect" message * Add "pending first API connection" handlers to ipfs-provider * Add full page loader when pending first connection * Remove custom error CSS, instead use Notify for errors * Feedback from @rafaelramalho19 - Use arrow function * Feedback from @jessicashilling and @rafaelramalho19 - Use notify/snackbar for errors and success messages. - Use notify error message that have translations * Remove connectionError action in ipfs-provider. Opt to use notify instead * Remove unused icon, comment * Fix bug that shows success message before updating API address * Fix formatting * Remove unused "dispatch" * Add custom error messages for connecting to a new IPFS API * IPFS_CONNECT_SUCCEED/FAILED set fail state in ipfs-provider * Return result of API address update in doUpdateIpfsApiAddress * Add ipfsInvalidApiAddress to locales/en/notify.json and notify.js * Refocus on input if the API address failed to update * Show green/red border for valid/invalid API address or red border for invalid api address * Change ApiAddressForm to more closely follow SelectPeer - Shows fail/success border without being selected - Does not refocus if it fails to connect * Clean up unused code and comments * Update comments * Remove useRef from imports * Disables button with an invalid multiaddr and display red border when it fails to connect. When entering in another address, it will refresh the fail state on the input * Follow formatting * Feedback from @rafaelramalho19 - Use triple equals
- Loading branch information
1 parent
0314595
commit e2e2edd
Showing
5 changed files
with
162 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters