Skip to content

CONV-234: Show real estimated cost in settings step#203

Merged
menvil merged 1 commit into
developfrom
feature/CONV-234-show-real-estimated-cost-in-settings-step
Jun 2, 2026
Merged

CONV-234: Show real estimated cost in settings step#203
menvil merged 1 commit into
developfrom
feature/CONV-234-show-real-estimated-cost-in-settings-step

Conversation

@menvil

@menvil menvil commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • DashboardConverter now calculates and shows real estimated credit cost in settings step
  • Cost is calculated via EstimateConversionCostAction when target format is selected
  • Blade template updated to show cost instead of static placeholder
  • InsufficientCreditsException is now caught in convert() with user-friendly error message

Test plan

  • DashboardConverterCostTest passes (2 tests: PDF shows 2 credits, JPG shows 1 credit)
  • All 126 Livewire tests pass (no regression)

🤖 Generated with Claude Code


Summary by cubic

Implements CONV-234 by showing the real estimated credit cost in the settings step. The UI now displays the cost as soon as a target format is selected, so users know the required credits before converting.

  • New Features
    • Calculate cost via EstimateConversionCostAction on target format selection and store it as estimatedCreditCost.
    • Replace the placeholder with the actual cost in the settings step (handles singular/plural).
    • Catch InsufficientCreditsException in convert() and show a clear message with the required credits.
    • Reset estimatedCreditCost when target selection is cleared.

Written for commit 8d06c8a. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@menvil menvil merged commit c08985b into develop Jun 2, 2026
1 check was pending
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • release

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.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c683ce4a-906d-42cd-a996-931c04a552ef

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/CONV-234-show-real-estimated-cost-in-settings-step

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.

@menvil menvil deleted the feature/CONV-234-show-real-estimated-cost-in-settings-step branch June 2, 2026 12:39
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.

1 participant