Skip to content

Raise solution description limit to 600 characters - #400

Merged
PavlosIsaris merged 1 commit into
productionfrom
hotfix/solution-description-limit
Sep 15, 2026
Merged

PavlosIsaris merged 1 commit into
productionfrom
hotfix/solution-description-limit

Conversation

@PavlosIsaris

Copy link
Copy Markdown
Contributor

Summary

A client asked why solutions are capped at 400 characters while problems allow 600. There is no technical reason: the description column on solution_translations is a text column, and the server already accepted 600 characters on create. The 400 limit lived only in the two forms, and the backoffice update rule allowed 410.

This PR sets the solution description limit to 600 everywhere, matching problems:

  • resources/views/solution/partials/new-solution-form.blade.php: maxlength, character counter and label now use 600.
  • resources/views/backoffice/management/solution/create-edit/partials/basic-details.blade.php: maxlength now 600.
  • app/Http/Controllers/Solution/SolutionController.php: backoffice update rule changed from max:410 to max:600. The store and userProposalStore rules already used 600.

Three feature tests cover the 600/601 boundary on the public proposal store and the backoffice update.

This branch is based on production and contains only this change. The same commit is cherry-picked to master in a separate PR.

Align the solution description limit with the problem description
limit. The public proposal form and the backoffice form capped input
at 400 characters in the browser, while the backoffice update rule
allowed 410. All three now allow 600, matching the existing rules for
public proposal store and backoffice create.

Add feature tests for the 600/601 boundary on both the public proposal
store and the backoffice update.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

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.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 73d40aa8-90e6-4176-bb4c-9301eae9f6a3

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

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.

@sonarqubecloud

Copy link
Copy Markdown

@PavlosIsaris
PavlosIsaris merged commit 6ee7ec3 into production Sep 15, 2026
4 checks passed
@PavlosIsaris
PavlosIsaris deleted the hotfix/solution-description-limit branch September 15, 2026 05:54
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