Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add max length to js run function name (#38363)
## Description Fixes issue where JS run function name can take up too much space in toolbar. Fixes #38150 ## Automation /ok-to-test tags="@tag.IDE" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/12491948782> > Commit: c11b60d > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12491948782&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.IDE` > Spec: > <hr>Wed, 25 Dec 2024 10:35:52 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a character limit for function names in the `JSFunctionRun` component, ensuring names are truncated to a maximum of 30 characters for improved UI consistency. - **Bug Fixes** - Added a test case to verify that function names exceeding the character limit are correctly truncated. - **Documentation** - Updated constants to define the maximum length for function names. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information