Skip to content

fix: Refactored badge message provider#1412

Merged
mariobehling merged 26 commits intofossasia:developmentfrom
nope3472:refactorbadgemessageprovider
Sep 10, 2025
Merged

fix: Refactored badge message provider#1412
mariobehling merged 26 commits intofossasia:developmentfrom
nope3472:refactorbadgemessageprovider

Conversation

@nope3472
Copy link
Copy Markdown
Contributor

Fixes #1399

Changes

-Refactored BadgeMessageProvider to keep the file clean and focused

  • Improves code readability and maintainability

Screenshots / Recordings

Checklist:

  • No hard coding: I have used resources from constants.dart without hard coding any value.
  • No end of file edits: No modifications done at end of resource files.
  • Code reformatting: I have reformatted code and fixed indentation in every file included in this pull request.
  • Code analyzation: My code passes analyzations run in flutter analyze and tests run in flutter test.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @nope3472, you have reached your weekly rate limit for Sourcery. Please try again later

Comment thread lib/providers/badge_message_provider.dart
@nope3472
Copy link
Copy Markdown
Contributor Author

@samruddhi-Rahegaonkar once the mapping_fix pr gets merged then i will update this branch

@samruddhi-Rahegaonkar
Copy link
Copy Markdown
Member

@nope3472 Resolve conficts Please.

@samruddhi-Rahegaonkar
Copy link
Copy Markdown
Member

@nope3472 The PR has already get mereged Please do the needful.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 27, 2025

Build Status

Build successful. APKs to test: https://github.com/fossasia/badgemagic-app/actions/runs/17556283293/artifacts/3955547105.

Screenshots

Android Screenshots
iPhone Screenshots
iPad Screenshots

@nope3472
Copy link
Copy Markdown
Contributor Author

hey @mariobehling @hpdang i think we can go ahead with this pr

@mariobehling

This comment was marked as off-topic.

sourcery-ai[bot]

This comment was marked as off-topic.

@techyay

This comment was marked as off-topic.

sourcery-ai[bot]

This comment was marked as off-topic.

@SourceryAI

This comment was marked as off-topic.

@fossasia fossasia deleted a comment from SourceryAI Sep 1, 2025
Copy link
Copy Markdown
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts.

@nope3472
Copy link
Copy Markdown
Contributor Author

nope3472 commented Sep 5, 2025

@hpdang updated the branch

@hpdang
Copy link
Copy Markdown
Member

hpdang commented Sep 6, 2025

@nope3472 still showing branch is out of date

@nope3472
Copy link
Copy Markdown
Contributor Author

nope3472 commented Sep 6, 2025

@hpdang i have again updated the branch

Comment thread lib/utils/custom_animation_transfers.dart Outdated
@CloudyPadmal
Copy link
Copy Markdown
Contributor

I'm wondering if this is the right way to solve the issue pointed out in #1399.

#1399 states that the file has grown too large. However, this PR just exports each function into a separate file, and that file is also similar in length.

What if we instead created several small files, all inside a separate subdirectory for each animation type?

@nope3472 @samruddhi-Rahegaonkar

@samruddhi-Rahegaonkar
Copy link
Copy Markdown
Member

I'm wondering if this is the right way to solve the issue pointed out in #1399.

#1399 states that the file has grown too large. However, this PR just exports each function into a separate file, and that file is also similar in length.

What if we instead created several small files, all inside a separate subdirectory for each animation type?

@nope3472 @samruddhi-Rahegaonkar

@CloudyPadmal I do agree with it.

@nope3472
Copy link
Copy Markdown
Contributor Author

nope3472 commented Sep 7, 2025

hey @CloudyPadmal thanks for the suggestion i have made the requested changes

@nope3472
Copy link
Copy Markdown
Contributor Author

nope3472 commented Sep 8, 2025

@mariobehling @hpdang @samruddhi-Rahegaonkar i think we can go with this one

@hpdang
Copy link
Copy Markdown
Member

hpdang commented Sep 9, 2025

@CloudyPadmal could you please help to check this?

@samruddhi-Rahegaonkar
Copy link
Copy Markdown
Member

@hpdang Looks good to me!

@nope3472
Copy link
Copy Markdown
Contributor Author

@mariobehling i have resolved the conflicts here also

@nope3472 nope3472 mentioned this pull request Sep 10, 2025
4 tasks
@mariobehling mariobehling merged commit eddf58d into fossasia:development Sep 10, 2025
9 of 10 checks passed
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.

Refactor BadgeMessageProvider into smaller, maintainable files

7 participants