PromucFlow_constructor/app/client/src/pages
Shrikant Sharat Kandula f339f9d4f2
chore: Page rename API client validation (#32788)
1. The page names can accept any character except for `/`, backslash and
`:`. This is the validation that the server does now. This PR fixes the
regex that checks the page name to align with this.
2. When typing a character that's not allowed, we end up with a space at
the beginning or end of the page name, that doesn't really make sense,
and is confusing. Then we end up with trailing or leading spaces in the
page name, making the page name display look misaligned. This PR will
make it so that the disallowed characters just can't be typed, and just
don't make a difference in the page name.
3. We're also adding server-side validation for the icon slug.

[Slack
conversation](https://theappsmith.slack.com/archives/C03RPDB936Z/p1713161688607509).

/ok-to-test tags="@tag.Sanity"
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8746416301>
> Commit: 21e8d3a0060b9b4721b49149f307354b073332d7
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8746416301&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced page name validation to improve naming consistency across the
application.
- Updated validation for page icons and custom slugs to allow more
flexibility and ensure inputs meet new standards.

- **Bug Fixes**
- Fixed issues in page naming functions to prevent the use of certain
special characters and limit the length, enhancing data integrity and
user experience.

- **Tests**
- Added new tests to verify the handling of invalid and empty custom
slugs, ensuring robustness in page management functionalities.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-19 11:23:14 +05:30
..
AdminSettings fix: Updating the ramp link for Enterprise features to open the pricing page (#32698) 2024-04-16 19:05:07 +05:30
Applications fix: Updating the primary action on clicking app card in mobile view (#32092) 2024-03-27 16:04:41 +05:30
AppViewer chore: Merge wds and anvil feature flags (#32609) 2024-04-12 22:54:04 +05:30
common fix: save flow enabled for client credentials grant type (#32047) 2024-03-26 08:39:34 +05:30
Editor chore: Page rename API client validation (#32788) 2024-04-19 11:23:14 +05:30
setup fix: Vertical shift on query module editor when new inputs are being added on EE (#32390) 2024-04-05 10:45:03 +05:30
Templates fix: tooltip readability issue in templates card title (#32660) 2024-04-15 08:48:23 +05:30
tests chore: route builder refactor (#27905) 2023-10-12 11:01:22 +05:30
UserAuth chore: Updating the login and signup page for cloud hosting as per new design (#32641) 2024-04-17 21:46:44 +05:30
UserProfile chore: Improve code splitting of FE components (#26659) 2023-08-28 21:07:32 +05:30
users chore: Improve code splitting of FE components (#26659) 2023-08-28 21:07:32 +05:30
workspace chore: Removing partner program callout from invite modal (#31576) 2024-03-07 13:20:51 +05:30
routes.tsx chore: [App Sidebar] Data Pane (#28248) 2023-10-24 15:28:21 +05:30
utils.ts fix: gsheet file picker background issue fixed (#24049) 2023-06-08 14:58:29 +05:30