Skip to content

Fix/content filter select labels - #368

Merged
gkhngyk merged 3 commits into
ansvisor:mainfrom
Sam-syntax35:fix/content-filter-select-labels
Jul 9, 2026
Merged

gkhngyk merged 3 commits into
ansvisor:mainfrom
Sam-syntax35:fix/content-filter-select-labels

Conversation

@Sam-syntax35

Copy link
Copy Markdown
Contributor

Summary

Fixes the Content Optimization filter selects so they display the human-readable label instead of the raw value after an option is selected.

Changes

  • Added custom SelectValue rendering for the Status filter
  • Added custom SelectValue rendering for the Impact filter
  • Added custom SelectValue rendering for the Type filter

Testing

  • Selected "In Progress" → trigger shows "In Progress"
  • Selected "High" → trigger shows "High"
  • Selected "Owned" → trigger shows "Owned"

Closes #364

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The select fix itself is spot-on — all three filters (Status / Impact / Type) now render their label via the SelectValue render prop with the t(...) mapping, matching the Citations pattern, and Prettier's happy. 🎉

Just one thing before merge: the PR accidentally includes a committed web/diff.txt file (looks like a stray git diff > diff.txt that got git add-ed). Please remove it — git rm web/diff.txt and commit (and maybe add diff.txt to .gitignore so it doesn't sneak back in). Once that's gone, this is good to go!

@Sam-syntax35

Copy link
Copy Markdown
Contributor Author

as far as i know i have updated it .still it is not merged yet!!!!

@gkhngyk

gkhngyk commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Hey @Sam-syntax35 — thanks for the ping, and sorry for the wait! 🙏

The select label fix is perfect and totally ready. The only thing still blocking merge is the stray web/diff.txt — it's still part of this PR. If you run gh pr diff 368 --name-only you'll see it listed alongside content/page.tsx, so the removal probably didn't get committed/pushed to this branch yet.

Could you drop it and push?

git rm web/diff.txt
git commit -m "chore: remove stray diff.txt"
git push

(Optional: add diff.txt to .gitignore so it doesn't sneak back in.)

As soon as that lands I'll re-review and approve right away — you're basically one command away. 🙌

@Sam-syntax35

Copy link
Copy Markdown
Contributor Author

Thanks! I've removed web/diff.txt and pushed the update. Ready for another review.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for cleaning up the stray diff.txt — this is good to go now. The render-prop labels resolve correctly for every filter value (status/impact/type all map to existing keys), the content namespace keys are all present, and prettier is clean. Nice fix.

@gkhngyk
gkhngyk merged commit 461ea98 into ansvisor:main Jul 9, 2026
3 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.

fix(content): filter selects show the raw value instead of the label after selecting

2 participants