-
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
Handle LN Address username conflicts on new wallet registration flow #344
Conversation
- Check if lnAddress is not empty instead of relying on isLnAddress param - Display LN Address below action buttons - Set Copy actions value to LN Address - Open options menu on clicking LN Address - Open a bottom sheet to customize LN Address on clicking customize option Misc: - Rename DestinationActions's filename
Split WebhookCubit into two services, one for Webhook related logic one for LNURL service related logic. Other changes on ChangeLnAddressUsernameBottomSheet - fix: Use keyboard for email address - fix: remove input formatter - fix: trim the username value
Add toString to WebhookState
and show flushbars. Remove loader.
misc: change ordering of params of emitted states for readability.
Fixes #318 - Store Ln Address setup information on secure storage - Change secure storage fn names for consistency - Display loader for Done button on Update LN Address Username bottom sheet while cubit is loading - Decouple LN Address & LN Address username update status - Show conflict errors on Update LN Address Username bottom sheet - Add retry & randomizer logic for username conflicts on registration - Create LN username formatter & text input formatter - Create LnAddressCubitFactory
extract getToken into a method
apply rename changes to logs
Extracted methods for readability & maintainability
Made additional changes to include username length validation, fixes on username sanitization, and consistent naming across the app & lnurl service for maintainability. Additionally, error handling in Changelist:
|
WebhookCubit
overhaul - Handle LN Address username conflicts on new wallet registration flow
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.
Looks good! Just a couple of comments
fec023b
to
b00a981
Compare
- Created a getter for SharedPreferences instance - Used getters for get functions - Added comments to section keys - Renamed keys & their fn's for consistency This change will cause a regression as the key value has changed for _kBugReportBehavior.
b00a981
to
718b17d
Compare
Reduced nesting and consolidated error handling & state emission for both actions
6173f92
to
72701f4
Compare
Addressed feedback & made additional changes to ease the review process & code maintainability. Feedback changes:
Changelist:
TODO:
|
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.
LGTM
WebhookCubit
overhaul - Handle LN Address username conflicts on new wallet registration flow
Fixes #260
Fixes #263
Fixes #318
Fixes #319
This PR introduces significant refactoring of the
WebhookCubit
, replacing it with the newly createdLnAddressCubit
. The changes are aimed at improving the management of Lightning Address setup and username customization, as well as enhancing the user experience when handling username conflicts.Depends on:
breez-lnurl
: Set HTTP code 409 on username conflict #11Changelist:
UI-related:
LnAddressCubit
is loading.Misc: