Skip to content
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

Co-operative Close Channels #1282

Merged
merged 14 commits into from
May 14, 2024
Merged

Co-operative Close Channels #1282

merged 14 commits into from
May 14, 2024

Conversation

erdemyerebasmaz
Copy link
Contributor

@erdemyerebasmaz erdemyerebasmaz commented May 6, 2024

This PR implements the UI components required for changes in:

that introduces co-operative close channel operations.

Changelist:

  • Generate proto messages a70a127
    • Add comments that explain why "protoc_plugin v20.0.1" needs to be used.
  • Add 'closeChannels' to Breez Library's iOS Bindings 46481ed
  • Create & add co-operative close channels page under Preferences 4d59d33
    • Declare CloseChannels as account action
    • Open mail or share support mail when clicked
    • Prevent dismissing dialog when closing channels is in progress

Other changelist:

  • Update dependencies to latest
  • Increase compileSdkVersion to 34(Android camera & lifecycle requirement)
  • Use "given version or earlier" syntax for dependencies that require Flutter 3.10
  • Add .flutter-version to .gitignore 38d90b4

@erdemyerebasmaz erdemyerebasmaz requested review from roeierez and JssDWt May 6, 2024 22:50
@erdemyerebasmaz erdemyerebasmaz changed the base branch from master to kollider May 6, 2024 22:51
Copy link
Member

@roeierez roeierez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

lib/routes/close_channels/coop_closed_channels.dart Outdated Show resolved Hide resolved
@erdemyerebasmaz erdemyerebasmaz force-pushed the coop-close-chan branch 3 times, most recently from 25163cd to 166737f Compare May 8, 2024 14:25
@erdemyerebasmaz erdemyerebasmaz marked this pull request as ready for review May 9, 2024 14:44
@erdemyerebasmaz erdemyerebasmaz force-pushed the coop-close-chan branch 4 times, most recently from ed5c23d to 476f2d7 Compare May 9, 2024 15:12
- Display Next button at all times
  - Only validate address when Next is pressed
- Display error messages on dialog instead of a flushbar
- Add missing await for handling errors on closing channels cooperatively
- Ensure account bloc is accessible on CoopCloseChannelsDialog
- Address feedback on cooperative close channels UI
- Update address validation & error handling
- Display success & failure messages accordingly.
- Update dependencies to latest
- Increase compileSdkVersion to 34(Android camera & lifecycle requirement)
- Use "given version or earlier" syntax for dependencies that require Flutter 3.10
- Remove unused import
- Declare CloseChannels as account action
- Refactoring
- Open mail or share support mail when clicked
- Minor UI revision, Dialog -> AlertDialog
- Prevent dismissing dialog when closing channels is in progress
- Update Breez-Translations dependency

TODO: Change icon
@erdemyerebasmaz erdemyerebasmaz requested review from roeierez and JssDWt and removed request for roeierez and JssDWt May 9, 2024 16:58
Copy link
Contributor

@JssDWt JssDWt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment

lib/routes/close_channels/coop_close_channels_dialog.dart Outdated Show resolved Hide resolved
- Fix super calls on initState, didChangeDependencies, didUpdateWidget & dispose
- Increase line length to 110 across the project
  - format generated files with 100 line length
- ignore: overridden_fields for BreezDrawerHeader
- ignore: deprecated_member_use_from_same_package for LSPInformation's channelFeePermyriad, maxInactiveDuration, channelMinimumFeeMsat.
- ignore: missing_required_param for TextButton's wrapped with InkWell
Ran "dart format -l 110 ."
@erdemyerebasmaz erdemyerebasmaz merged commit 41ee0c4 into kollider May 14, 2024
@erdemyerebasmaz erdemyerebasmaz deleted the coop-close-chan branch May 14, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants