Skip to content

Conversation

@DooD73
Copy link

@DooD73 DooD73 commented May 27, 2025

What this PR does

This implements the feature proposed in #5216. Clicking on any "Popular tag" under the filters now applies that tag as a filter, aligning with user expectations set by the hover effect and visual grouping with the filter section.

Summary of changes

  • Added href to handle filter by tags

Preview

up-for-grabs-demo-5216.mp4

Closes #5216

@netlify
Copy link

netlify bot commented May 27, 2025

Deploy Preview for up-for-grabs-test-bench ready!

Name Link
🔨 Latest commit 3320889
🔍 Latest deploy log https://app.netlify.com/projects/up-for-grabs-test-bench/deploys/691eef0d1e80b40008a30b39
😎 Deploy Preview https://deploy-preview-5217--up-for-grabs-test-bench.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shiftbot
Copy link
Contributor

👋 I'm a robot checking the state of this pull request to save the human reviewers time. I don't see any changes under _data/projects/ so I don't have any feedback here.

As you make changes to this pull request, I'll re-run these checks.

mkazin added a commit to mkazin/up-for-grabs.net that referenced this pull request Oct 1, 2025
Fixes up-for-grabs#5216

This PR restores the functionality of clicking on Popular Tags by correcting a bug in the popular tag parsing.
It also enables a second click to remove the tag from the filter list.

The existing code uses code to handle the project count element nested within the anchor containing the tag.
This new code is more conservative by extracting the tag from the first TEXT_NODE, to avoid making assumptions about other child elements which was necessary by using innerText.

Unlike up-for-grabs#5217, this PR does not conflict with the existing event listener or the override already-filtered tags introduced by up-for-grabs#1121 (and later fixed in up-for-grabs#1179).
mkazin added a commit to mkazin/up-for-grabs.net that referenced this pull request Oct 1, 2025
Fixes up-for-grabs#5216

This PR restores the functionality of clicking on Popular Tags by correcting a bug in the popular tag parsing.
It also enables a second click to remove the tag from the filter list.

The existing code uses code to handle the project count element nested within the anchor containing the tag.
This new code is more conservative by extracting the tag from the first TEXT_NODE, to avoid making assumptions about other child elements which was necessary by using innerText.

Unlike up-for-grabs#5217, this PR does not conflict with the existing event listener or the override already-filtered tags introduced by up-for-grabs#1121 (and later fixed in up-for-grabs#1179).
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.

Popular tags appear clickable but are not functional

2 participants