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

pages/campaigns: Optimizations and improvements #1731

Merged

Conversation

sashko9807
Copy link
Member

pages/campaigns/index.tsx: Run asynchronous tasks concurrently

campaigns/CampaignFilter.tsx:

  • Remove unnecessary array.filter call, when no filter is set
  • Replaced <ImageList> with Grid

/campaigns/CampaignsList.tsx:

  • Replaced index with campaign.id as a component key for the card

/campaigns/CampaignsPage.tsx

  • Set header tags according to aria best practices

pages/campaigns/index.tsx: Run asynchronous tasks concurrently

campaigns/CampaignFilter.tsx: Remove unnecessary array.filter call, when no filter is set
- No need to loop through all campaigns, if no filter is set.

/campaigns/CampaignsList.tsx: Use campaign id as key, rather than array index
Index is not unique value, as length of array can vary.
ImageList is not the best thing for such things.
Replaced it with self-made grid
Copy link

github-actions bot commented Mar 6, 2024

❌ Not all tests have run for this PR. Please add the run tests label to trigger them.

@sashko9807 sashko9807 changed the title Campaign page optimizations pages/campaigns: Optimizations and improvements Mar 6, 2024
@ani-kalpachka
Copy link
Member

Well done, @sashko9807 !
Could you please check the conflicts?

@sashko9807
Copy link
Member Author

Well done, @sashko9807 ! Could you please check the conflicts?

Would you clarify? I see no conflicts with the master branch being reported

@ani-kalpachka ani-kalpachka added the run tests Allows running the tests workflows for forked repos label Mar 17, 2024
@ani-kalpachka ani-kalpachka merged commit 7897ac3 into podkrepi-bg:master Mar 17, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run tests Allows running the tests workflows for forked repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants