Skip to content

Conversation

@MatinDehghanian
Copy link
Contributor

Summary

This PR enhances the users table with a unified subscription modal and restores the copy configs dropdown with all protocol options.

Changes

New Subscription Modal

  • Added unified modal accessible via QR code button in users table
  • Shows subscription QR code at the top with copy subscription URL button
  • Displays paginated configs list (5 per page) with:
    • Config name extracted from URL
    • Individual copy button for each config
    • Individual QR code viewing for each config
  • Copy all configs button

Copy Configs Dropdown

  • Restored dropdown with all protocol options:
    • 🔗 links
    • 📝 links (base64)
    • ⚡ xray
    • ⚔️ clash (downloads YAML)
    • 🛡️ clash-meta (downloads YAML)
    • 🔒 outline
    • 📦 sing-box (downloads YAML)
  • Uses useClipboard hook for visual feedback

Translations

  • Added subscription modal translations for en, fa, ru, zh locales

Files Changed

  • dashboard/src/components/dialogs/subscription-modal.tsx (new)
  • dashboard/src/components/users/action-buttons.tsx
  • dashboard/public/statics/locales/en.json
  • dashboard/public/statics/locales/fa.json
  • dashboard/public/statics/locales/ru.json
  • dashboard/public/statics/locales/zh.json

…pdown

- Add new subscription modal showing subscription QR code and configs list
- Implement pagination for configs (5 per page) with individual QR viewing
- Extract config names from URLs for better display
- Restore copy configs dropdown with all protocol options (links, xray, clash, etc.)
- Add translations for subscription modal in en, fa, ru, zh locales
@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ImMohammad20000 ImMohammad20000 merged commit c83aa85 into PasarGuard:dev Jan 27, 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.

2 participants