Skip to content

Fix: Use order-independent tag comparison in tag wizard#30

Merged
FL4TLiN3 merged 1 commit intomainfrom
fix/tag-comparison-order-independent
Dec 4, 2025
Merged

Fix: Use order-independent tag comparison in tag wizard#30
FL4TLiN3 merged 1 commit intomainfrom
fix/tag-comparison-order-independent

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Summary

  • Fix tag comparison to be order-independent using includes() instead of index-based comparison
  • Tags ["foo", "bar"] and ["bar", "foo"] are now considered equal

Test plan

  • Verify confirmation screen shows "(unchanged)" when only tag order differs
  • Verify actual tag changes are still correctly detected

Closes #22


Note

Make tag comparison order-independent in the confirm step to avoid treating tag reordering as a change.

  • TUI Tag Wizard (packages/tui/apps/tag/app.tsx)
    • Confirm step: Make tag comparison order-independent by sorting both tag arrays before comparison, ensuring reorders are not treated as changes.

Written by Cursor Bugbot for commit fc59fcd. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
perstack Ready Ready Preview Comment Dec 4, 2025 4:07am

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Use sort-and-join comparison to handle both reordering and duplicates correctly.

Closes #22
@FL4TLiN3 FL4TLiN3 force-pushed the fix/tag-comparison-order-independent branch from ce24063 to fc59fcd Compare December 4, 2025 04:06
@FL4TLiN3 FL4TLiN3 merged commit 166f4a5 into main Dec 4, 2025
8 of 9 checks passed
FL4TLiN3 added a commit that referenced this pull request Dec 4, 2025
@FL4TLiN3 FL4TLiN3 deleted the fix/tag-comparison-order-independent branch December 8, 2025 19:11
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: Tag comparison fails when tags are reordered

1 participant