diff --git a/CHANGELOG.md b/CHANGELOG.md index 5394d6ec..7c847f1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Added - Added foundation for upcoming authentication from iOS app. +- [Dawarich Cloud] Trial users can now create up to 5 imports. After that, they will be prompted to subscribe to a paid plan. # [0.32.0] - 2025-09-13 diff --git a/app/javascript/controllers/direct_upload_controller.js b/app/javascript/controllers/direct_upload_controller.js index 3b239c49..269595b4 100644 --- a/app/javascript/controllers/direct_upload_controller.js +++ b/app/javascript/controllers/direct_upload_controller.js @@ -54,7 +54,7 @@ export default class extends Controller { // Check import count limits for trial users if (this.userTrialValue && this.currentImportsCountValue >= 5) { - const message = 'Import limit reached. Trial users can only create up to 5 imports. Please upgrade your account to import more files.' + const message = 'Import limit reached. Trial users can only create up to 5 imports. Please subscribe to import more files.' showFlashMessage('error', message) // Clear the file input diff --git a/app/models/import.rb b/app/models/import.rb index e394d3e0..4544819e 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -76,7 +76,7 @@ class Import < ApplicationRecord existing_imports_count = user.imports.count return unless existing_imports_count >= 5 - errors.add(:base, 'Trial users can only create up to 5 imports. Please upgrade your account to import more files.') + errors.add(:base, 'Trial users can only create up to 5 imports. Please subscribe to import more files.') end def recalculate_stats diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb index 84c14da2..2a90c2aa 100644 --- a/spec/models/import_spec.rb +++ b/spec/models/import_spec.rb @@ -87,7 +87,7 @@ RSpec.describe Import, type: :model do new_import = build(:import, user: user, name: 'import_6') expect(new_import).not_to be_valid - expect(new_import.errors[:base]).to include('Trial users can only create up to 5 imports. Please upgrade your account to import more files.') + expect(new_import.errors[:base]).to include('Trial users can only create up to 5 imports. Please subscribe to import more files.') end end