dub
dub copied to clipboard
Add link feature filters to links UI and API
Introduces link filtering by enabled features (e.g., conversion tracking, geo targeting, UTM tags) in both the API and the UI. Adds a utility to build Prisma where clauses for these features, updates Zod schemas to accept the new filter, and enhances the UI to allow users to filter links by feature with counts and icons.
Behaves similarly to the link tag filter.
https://github.com/user-attachments/assets/b581032c-944c-4134-bdda-682fefe50513
Summary by CodeRabbit
- New Features
- Added a new "Link feature" filter in the link management interface. Users can now filter links by their enabled features including conversion tracking, custom preview, geo-targeting, UTM tags, A/B testing, tags, comments, platform-specific targeting, expiration, password protection, link cloaking, and search engine indexing. Filter options display dynamic counts.
✏️ Tip: You can customize this high-level summary in your review settings.