Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Zahlen Sie nur für das, was Sie nutzen — mit Credits. Keine Verpflichtung, maximale Flexibilität.",
"credits-flexibility-cta-link": "Mehr über Credits erfahren",
"credits-flexibility-cta-title": "Kein Upgrade gewünscht?",
"credits-only-info-description": "Sie haben derzeit keinen Plan abonniert.",
"credits-only-info-link": "Verwalten Sie Ihren Kreditverbrauch",
"credits-only-info-title": "Kredite statt eines Plans verwenden",
"credits-load-error": "Wir konnten Ihren Guthabenverlauf nicht laden. Bitte versuchen Sie es erneut.",
"credits-next-expiration": "Nächste Credit-Ablauffrist",
"credits-pagination-label": "Seite {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Pay only for what you use with credits — no commitment, maximum flexibility.",
"credits-flexibility-cta-link": "Learn about credits",
"credits-flexibility-cta-title": "Don't want to upgrade?",
"credits-only-info-description": "You are not currently subscribed to any plan.",
"credits-only-info-link": "Manage your credit usage",
"credits-only-info-title": "Using credits instead of a plan",
"credits-load-error": "We couldn’t load your credit history. Please try again.",
"credits-next-expiration": "Next credit expiration",
"credits-pagination-label": "Page {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Paga solo por lo que uses con créditos — sin compromiso, máxima flexibilidad.",
"credits-flexibility-cta-link": "Más sobre créditos",
"credits-flexibility-cta-title": "¿No quieres actualizar tu plan?",
"credits-only-info-description": "Actualmente no estás suscrito a ningún plan.",
"credits-only-info-link": "Gestiona tu uso del crédito",
"credits-only-info-title": "Utilizar créditos en lugar de un plan",
"credits-load-error": "No pudimos cargar tu historial de créditos. Inténtalo de nuevo.",
"credits-next-expiration": "Próximo vencimiento de créditos",
"credits-pagination-label": "Página {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Payez uniquement ce que vous consommez grâce aux crédits — sans engagement, flexibilité maximale.",
"credits-flexibility-cta-link": "En savoir plus sur les crédits",
"credits-flexibility-cta-title": "Vous ne souhaitez pas changer d'offre ?",
"credits-only-info-description": "Vous n'êtes actuellement abonné à aucun plan.",
"credits-only-info-link": "Gérer l'utilisation de votre crédit",
"credits-only-info-title": "Utiliser des crédits au lieu d'un plan",
"credits-load-error": "Nous n'avons pas pu charger votre historique de crédits. Veuillez réessayer.",
"credits-next-expiration": "Prochaine expiration de crédits",
"credits-pagination-label": "Page {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "क्रेडिट के साथ सिर्फ उतना भुगतान करें जितना आप उपयोग करें — कोई प्रतिबद्धता नहीं, अधिकतम लचीलापन।",
"credits-flexibility-cta-link": "क्रेडिट के बारे में जानें",
"credits-flexibility-cta-title": "अपग्रेड नहीं करना चाहते?",
"credits-only-info-description": "आप वर्तमान में किसी भी योजना की सदस्यता नहीं ले रहे हैं।",
"credits-only-info-link": "अपने क्रेडिट उपयोग को प्रबंधित करें",
"credits-only-info-title": "योजना के बजाय क्रेडिट का उपयोग करना",
"credits-load-error": "हम आपका क्रेडिट इतिहास लोड नहीं कर सके। कृपया दोबारा प्रयास करें।",
"credits-next-expiration": "अगली क्रेडिट समाप्ति",
"credits-pagination-label": "पृष्ठ {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Bayar hanya untuk yang Anda gunakan dengan kredit — tanpa komitmen, fleksibilitas maksimal.",
"credits-flexibility-cta-link": "Pelajari tentang kredit",
"credits-flexibility-cta-title": "Tidak ingin upgrade?",
"credits-only-info-description": "Saat ini Anda tidak berlangganan paket apa pun.",
"credits-only-info-link": "Kelola penggunaan kredit Anda",
"credits-only-info-title": "Menggunakan kredit sebagai pengganti paket",
"credits-load-error": "Kami tidak dapat memuat riwayat kredit Anda. Silakan coba lagi.",
"credits-next-expiration": "Kedaluwarsa kredit berikutnya",
"credits-pagination-label": "Halaman {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Paga solo per quello che usi con i crediti — nessun impegno, massima flessibilità.",
"credits-flexibility-cta-link": "Scopri i crediti",
"credits-flexibility-cta-title": "Non vuoi fare l'upgrade?",
"credits-only-info-description": "Al momento non sei abbonato ad alcun piano.",
"credits-only-info-link": "Gestisci l'utilizzo del credito",
"credits-only-info-title": "Utilizzo di crediti invece di un piano",
"credits-load-error": "Non siamo riusciti a caricare lo storico dei tuoi crediti. Riprova.",
"credits-next-expiration": "Prossima scadenza dei crediti",
"credits-pagination-label": "Pagina {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "クレジットで使った分だけお支払い — コミットメントなし、最大限の柔軟性。",
"credits-flexibility-cta-link": "クレジットについて",
"credits-flexibility-cta-title": "アップグレードしたくないですか?",
"credits-only-info-description": "現在、どのプランにも加入していません。",
"credits-only-info-link": "クレジット利用の管理",
"credits-only-info-title": "プランの代わりにクレジットを使う",
"credits-load-error": "クレジット履歴を読み込めませんでした。もう一度お試しください。",
"credits-next-expiration": "次回のクレジット有効期限",
"credits-pagination-label": "ページ {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "크레딧으로 사용한 만큼만 결제하세요 — 약정 없이, 최대한의 유연성.",
"credits-flexibility-cta-link": "크레딧에 대해 알아보기",
"credits-flexibility-cta-title": "업그레이드하고 싶지 않으세요?",
"credits-only-info-description": "현재 어떤 요금제도 가입되어 있지 않습니다.",
"credits-only-info-link": "크레딧 사용량 관리",
"credits-only-info-title": "요금제 대신 크레딧 사용",
"credits-load-error": "크레딧 기록을 불러오지 못했습니다. 다시 시도해주세요.",
"credits-next-expiration": "다음 크레딧 만료일",
"credits-pagination-label": "페이지 {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Płać tylko za to, czego używasz, dzięki kredytom — bez zobowiązań, maksymalna elastyczność.",
"credits-flexibility-cta-link": "Dowiedz się więcej o kredytach",
"credits-flexibility-cta-title": "Nie chcesz ulepszać planu?",
"credits-only-info-description": "Nie subskrybujesz obecnie żadnego planu.",
"credits-only-info-link": "Zarządzaj wykorzystaniem kredytu",
"credits-only-info-title": "Korzystanie z kredytów zamiast planu",
"credits-load-error": "Nie udało nam się wczytać historii kredytów. Spróbuj ponownie.",
"credits-next-expiration": "Najbliższe wygaśnięcie kredytów",
"credits-pagination-label": "Strona {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Pague apenas pelo que usar com créditos — sem compromisso, máxima flexibilidade.",
"credits-flexibility-cta-link": "Saiba mais sobre créditos",
"credits-flexibility-cta-title": "Não quer fazer upgrade?",
"credits-only-info-description": "No momento, você não está inscrito em nenhum plano.",
"credits-only-info-link": "Gerencie seu uso de crédito",
"credits-only-info-title": "Usar créditos em vez de um plano",
"credits-load-error": "Não conseguimos carregar seu histórico de créditos. Tente novamente.",
"credits-next-expiration": "Próximo vencimento dos créditos",
"credits-pagination-label": "Página {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Платите только за то, что используете, с помощью кредитов — без обязательств, максимальная гибкость.",
"credits-flexibility-cta-link": "Узнать о кредитах",
"credits-flexibility-cta-title": "Не хотите повышать тариф?",
"credits-only-info-description": "В настоящее время вы не подписаны ни на один тарифный план.",
"credits-only-info-link": "Управляйте использованием кредитов",
"credits-only-info-title": "Использование кредитов вместо плана",
"credits-load-error": "Не удалось загрузить историю кредитов. Попробуйте еще раз.",
"credits-next-expiration": "Ближайшая дата истечения кредитов",
"credits-pagination-label": "Страница {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Kredilerle yalnızca kullandığınız kadar ödeyin — taahhüt yok, maksimum esneklik.",
"credits-flexibility-cta-link": "Krediler hakkında bilgi alın",
"credits-flexibility-cta-title": "Yükseltmek istemiyor musunuz?",
"credits-only-info-description": "Şu anda herhangi bir plana abone değilsiniz.",
"credits-only-info-link": "Kredi kullanımınızı yönetin",
"credits-only-info-title": "Plan yerine kredi kullanma",
"credits-load-error": "Kredi geçmişinizi yükleyemedik. Lütfen tekrar deneyin.",
"credits-next-expiration": "Sonraki kredi son kullanma tarihi",
"credits-pagination-label": "Sayfa {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "Chỉ trả tiền cho những gì bạn sử dụng với tín dụng — không cam kết, linh hoạt tối đa.",
"credits-flexibility-cta-link": "Tìm hiểu về tín dụng",
"credits-flexibility-cta-title": "Không muốn nâng cấp?",
"credits-only-info-description": "Bạn hiện tại không đăng ký bất kỳ gói dịch vụ nào.",
"credits-only-info-link": "Quản lý việc sử dụng tín dụng của bạn",
"credits-only-info-title": "Sử dụng tín dụng thay vì gói cước",
"credits-load-error": "Chúng tôi không thể tải lịch sử tín dụng của bạn. Vui lòng thử lại.",
"credits-next-expiration": "Lần hết hạn tín dụng tiếp theo",
"credits-pagination-label": "Trang {current} / {total}",
Expand Down
3 changes: 3 additions & 0 deletions messages/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@
"credits-flexibility-cta-description": "使用积分按需付费 — 无需承诺,灵活自由。",
"credits-flexibility-cta-link": "了解积分",
"credits-flexibility-cta-title": "不想升级?",
"credits-only-info-description": "您目前未订购任何计划。",
"credits-only-info-link": "管理您的积分使用情况",
"credits-only-info-title": "用积分代替计划",
"credits-load-error": "我们无法加载你的积分记录。请重试。",
"credits-next-expiration": "下一次积分到期时间",
"credits-pagination-label": "第 {current} / {total} 页",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "capgo-app",
"type": "module",
"version": "12.110.1",
"version": "12.110.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Revert manual version bump in package.json.

Version changes should be left to release automation; please remove this bump from the PR.

Based on learnings: Do not manually deploy or commit version bumps; CI/CD handles version bumping in package.json, CHANGELOG.md generation via semantic-release, and deployment after merge to main.

🤖 Prompt for AI Agents
In `@package.json` at line 4, Remove the manual version bump from package.json by
reverting the change to the "version" field ("version": "12.110.6"); leave the
version value as it was on the base branch (or restore the original file state)
so release automation (semantic-release) can manage versioning, changelog, and
deployments instead of committing any manual version changes in package.json.

"private": true,
"license": "GPL-3.0",
"scripts": {
Expand Down
55 changes: 52 additions & 3 deletions src/components/CreditsCta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import IconChevronRight from '~icons/heroicons/chevron-right'
import IconCurrencyDollar from '~icons/heroicons/currency-dollar'
import IconInformationCircle from '~icons/heroicons/information-circle'

const props = withDefaults(defineProps<{
/**
* When true, displays an informational banner for credits-only orgs
* (orgs with credits but no active subscription plan).
* Uses the information icon and different copy to avoid misleading
* the user into thinking they need to "upgrade" — they already know
* about credits since that is their primary payment method.
*/
creditsOnly?: boolean
}>(), {
creditsOnly: false,
})

const { t } = useI18n()
const router = useRouter()
Expand All @@ -13,8 +27,43 @@ function goToCredits() {
</script>

<template>
<div
class="flex items-center w-full p-4 transition-all duration-200 border cursor-pointer bg-gray-50 dark:bg-gray-900 border-gray-200 dark:border-gray-700 hover:border-blue-300 dark:hover:border-blue-700 rounded-xl group"
<!-- Credits-only info banner: shown for orgs using credits without a plan -->
<button
v-if="props.creditsOnly"
type="button"
class="flex items-center w-full p-4 text-left transition-all duration-200 border cursor-pointer bg-blue-50 dark:bg-blue-900/20 border-blue-200 dark:border-blue-800 hover:border-blue-300 dark:hover:border-blue-700 rounded-xl group"
@click="goToCredits"
>
<!-- Icon -->
<div class="flex items-center justify-center w-10 h-10 rounded-full shrink-0 bg-blue-100 dark:bg-blue-900/30">
<IconInformationCircle class="w-5 h-5 text-blue-600 dark:text-blue-400" />
</div>

<!-- Text content -->
<div class="flex-1 min-w-0 ml-4">
<h3 class="text-sm font-semibold text-gray-900 dark:text-white">
{{ t('credits-only-info-title') }}
</h3>
<p class="mt-0.5 text-xs text-gray-500 dark:text-gray-400 line-clamp-2">
{{ t('credits-only-info-description') }}
</p>
</div>

<!-- Link with arrow -->
<div class="flex items-center ml-4 shrink-0">
<span class="hidden text-sm font-medium text-blue-600 transition-colors sm:inline dark:text-blue-400 group-hover:text-blue-700 dark:group-hover:text-blue-300">
{{ t('credits-only-info-link') }}
</span>
<IconChevronRight class="w-5 h-5 ml-1 text-blue-600 transition-transform dark:text-blue-400 group-hover:translate-x-0.5" />
</div>
</button>

<!-- Default CTA: "Don't want to upgrade?" — hidden for credits-only orgs
because they already know about credits and this message would be confusing -->
<button
v-else
type="button"
class="flex items-center w-full p-4 text-left transition-all duration-200 border cursor-pointer bg-gray-50 dark:bg-gray-900 border-gray-200 dark:border-gray-700 hover:border-blue-300 dark:hover:border-blue-700 rounded-xl group"
@click="goToCredits"
>
<!-- Icon -->
Expand All @@ -39,5 +88,5 @@ function goToCredits() {
</span>
<IconChevronRight class="w-5 h-5 ml-1 text-blue-600 transition-transform dark:text-blue-400 group-hover:translate-x-0.5" />
</div>
</div>
</button>
</template>
Loading