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

Don 518 explore meta campaign fixes #1803

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Conversation

bdsl
Copy link
Contributor

@bdsl bdsl commented Dec 17, 2024

No description provided.

…anges to filter/sort

Issue reported in Jira comment 16 December 2024 at 12:12

I initially looked for a wy to find the campaign slug to use for
navigation but that isn't part of the model, and then I realised I could
just copy the code for this line from the old meta-campaign code -
following is the version live now.

https://github.com/thebiggive/donate-frontend/blob/36cc52e9a883fe1e33b013e1515503ee574fb3b7/src/app/meta-campaign/meta-campaign.component.ts
@bdsl bdsl force-pushed the DON-518-explore-meta-campaign-fixes branch from 5fa6039 to e26714e Compare December 17, 2024 11:44
Initially tried copying code from the old explore page at
https://github.com/thebiggive/donate-frontend/blob/36cc52e9a883fe1e33b013e1515503ee574fb3b7/src/app/explore/explore.component.ts#L162

but that actually just does the same thing as the `doCampaignSearch`
function that we already have, so we just need to call that
unconditionally for both the campaign and explore pages.

Also switched away from the deprecated usage of Observable.subscribe
with two params
@bdsl bdsl force-pushed the DON-518-explore-meta-campaign-fixes branch from e26714e to 8096ab0 Compare December 17, 2024 11:45
NoelLH
NoelLH previously approved these changes Dec 17, 2024
@@ -357,6 +357,7 @@ export class ExploreComponent implements AfterViewChecked, OnDestroy, OnInit {
}

private loadMoreForCurrentSearch() {
console.log("in loadmoreForCurrentSearch");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
console.log("in loadmoreForCurrentSearch");

Unless this is useful for verifying in Staging for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, left in by mistake.

@bdsl bdsl merged commit 77728f8 into develop Dec 17, 2024
3 of 4 checks passed
@bdsl bdsl deleted the DON-518-explore-meta-campaign-fixes branch December 17, 2024 11:56
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.

2 participants