Skip to content

add/edit stellar address in farm#781

Merged
AlaaElattar merged 12 commits into
developmentfrom
development_add/edit_stellar
Dec 11, 2024
Merged

add/edit stellar address in farm#781
AlaaElattar merged 12 commits into
developmentfrom
development_add/edit_stellar

Conversation

@AlaaElattar
Copy link
Copy Markdown
Contributor

@AlaaElattar AlaaElattar commented Nov 27, 2024

Tested Scenarios:

  • Tried to save wrong address but failed as button is disabled.
  • Tried to save right address and worked.
  • Chose address from wallets and worked.

Copy link
Copy Markdown
Contributor

@zaelgohary zaelgohary left a comment

Choose a reason for hiding this comment

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

I could edit a stellar address with an invalid value. I think we should validate the address before adding/editing.

Copy link
Copy Markdown
Contributor

@zaelgohary zaelgohary left a comment

Choose a reason for hiding this comment

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

After clicking edit, there is no option to cancel the operation. To cancel editing, I would need to click save.

image

@zaelgohary
Copy link
Copy Markdown
Contributor

Clicking edit and navigating to the homepage without saving leaves the farming page stuck in the editing state.

@AlaaElattar AlaaElattar marked this pull request as draft December 2, 2024 10:21
@AlaaElattar
Copy link
Copy Markdown
Contributor Author

After clicking edit, there is no option to cancel the operation. To cancel editing, I would need to click save.

image

  • Done, added cancel button that appears while editing.
    2024-12-05 09 56 13

@AlaaElattar
Copy link
Copy Markdown
Contributor Author

Clicking edit and navigating to the homepage without saving leaves the farming page stuck in the editing state.

tried to reproduce it but didn't happen

@AlaaElattar AlaaElattar marked this pull request as ready for review December 5, 2024 09:15
Comment thread app/lib/widgets/farm_item.dart
Comment thread app/lib/widgets/farm_item.dart Outdated
Comment thread app/lib/widgets/farm_item.dart Outdated
}

void validateStellarAddress(String address) async {
setState(() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please trim the address before start validating

Comment thread app/lib/widgets/farm_item.dart Outdated
Comment thread app/lib/widgets/farm_item.dart Outdated
@AlaaElattar AlaaElattar merged commit fc4cc78 into development Dec 11, 2024
@AlaaElattar AlaaElattar deleted the development_add/edit_stellar branch December 11, 2024 14:06
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