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: add loan avatars to journey badge #5879

Merged
merged 5 commits into from
Mar 24, 2025

Conversation

christian14b
Copy link
Collaborator

  • Adding loans that belong to badge journey as avatars
  • Loans' names to description
image

@christian14b christian14b requested a review from a team March 20, 2025 21:03
@@ -518,6 +518,31 @@ export default function useBadgeData() {
}
};

const getFilteredLoansByJourney = (badge, loans) => {
const filter = getFilteredUrl(badge);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this covers the basic needs journey, since the filter URL doesn't include all of the filters. Check the channel filters to make sure that's the case, and see if there's an alternative mapping we can use. Actually the map file we use for channels on the category page might be sufficient.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I validated the basic needs params with the query map file, I only saw the the sector Ids filter

queryParams: 'sector=6,10',

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh right, we needed those filters to match for the limitations on /lend/filter. But in the achievement service, we have one more filter. So we need to make sure that we also have an OR on the theme ID (shown below). We might need to add a new prop to the map file, maybe called achievementFilters or something along those lines. Please check the achievements in the Admin V2 UI on dev to make sure that the filters are covered correctly for all achievements.

"filters": [
    {
      "sectorId": {
        "any": [
          6,
          10
        ]
      }
    },
    {
      "themeId": {
        "any": [
          8
        ]
      }
    }
  ]
image

@christian14b christian14b merged commit 2a37859 into main Mar 24, 2025
5 checks passed
@christian14b christian14b deleted the my-kiva-journey-updates-mp-1402 branch March 24, 2025 15:17
@kiva-robot
Copy link
Collaborator

🎉 This PR is included in version 3.14.0-rc.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@kiva-robot
Copy link
Collaborator

🎉 This PR is included in version 3.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants