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

feat(backup): re-add export selection to text file #435

Merged
merged 1 commit into from
May 3, 2024

Conversation

edgy-b
Copy link
Contributor

@edgy-b edgy-b commented Apr 28, 2024

  • added back possibility to export current selection to txt file

  • on successful export show modal

Resolves #300

Copy link
Contributor

deepsource-io bot commented Apr 28, 2024

Here's the code health analysis summary for commits 4a3de42..f7ca307. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Rust LogoRust❌ Failure
❗ 6 occurences introduced
🎯 4 occurences resolved
View Check ↗
DeepSource Test coverage LogoTest coverage✅ Success
❗ 9 occurences introduced
🎯 3 occurences resolved
View Check ↗

Code Coverage Report

MetricAggregateRust
Branch Coverage100%0%
Composite Coverage1.8% (down 0.1% from main)1.8% (down 0.1% from main)
Line Coverage1.8% (down 0.1% from main)1.8% (down 0.1% from main)
New Branch Coverage100%100%
New Composite Coverage2.6%2.6%
New Line Coverage2.6%2.6%

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@AnonymousWP AnonymousWP requested a review from a team April 28, 2024 21:48
@AnonymousWP AnonymousWP added the enhancement New feature or request label Apr 28, 2024
 - added back possibility to export current selection to txt file

 - on successful export show modal
.padding(10)
.style(style::Container::Frame);

return Modal::new(content.padding(10), ctn)
Copy link
Contributor

Choose a reason for hiding this comment

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

We might not need the explicit return here. Just a nit though.

@@ -116,6 +119,7 @@ impl List {
Message::ModalHide => {
self.selection_modal = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that we have so many modals, we might be better off with creating some sort of enum like self.focused_modal = Modal::Selection and then match upon that. Anyways, you don't have to implement it here. Let's do that in a separate commit / PR.

Copy link
Contributor

@lavafroth lavafroth 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 otherwise. Maybe add some documentations to keep deepsource happy.

@edgy-b
Copy link
Contributor Author

edgy-b commented May 3, 2024

Looks good otherwise. Maybe add some documentations to keep deepsource happy.

You're right. Will do that in core/DRY branch, since I already started on cleaning and tidying the code.

@edgy-b edgy-b merged commit bcd5df0 into main May 3, 2024
20 of 21 checks passed
@edgy-b edgy-b deleted the feat/readd-export-selection branch May 3, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(backup): re-add export selection to text file
3 participants