Open brayn003 opened 9 hours ago
The changes made in this pull request focus on updating the PageSettings
component and the getUrlPreview
function. The pathPreview
calculation now utilizes basePageId
instead of pageId
, reflecting a new approach to URL generation. Additionally, state management within the PageSettings
component has been refined to ensure proper initialization based on the incoming page
prop. The error handling for page name changes has been preserved, while the overall control flow of the getUrlPreview
function remains consistent.
File Path | Change Summary |
---|---|
app/client/src/pages/Editor/AppSettingsPane/PageSettings.tsx |
Updated pathPreview calculation to use basePageId , refined state management and useEffect hooks. |
app/client/src/pages/Editor/AppSettingsPane/Utils.ts |
Changed parameter name from pageId to basePageId in getUrlPreview function and updated logic accordingly. |
Objective | Addressed | Explanation |
---|---|---|
Ensure URL parameters redirect to the correct page (37580) | ✅ | |
Default page selection when removing URL parameters (37580) | ❌ | The changes do not ensure default selection behavior. |
PageSettings
component, similar to the main PR, with changes to state management and page properties logic.Bug
, Critical
, High
, Production
, Needs Triaging
, Git Product
, ok-to-test
🌟 In the realm of code where logic flows,
A shift in paths, the baseId shows.
With states aligned and errors cleared,
The URL's journey is now revered.
Let pages connect, no more 404,
In this code adventure, let progress grow! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
/build-deploy-preview
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/11970621900.
Workflow: On demand build Docker image and deploy preview
.
skip-tests: . env:
.
PR: 37652.
recreate: .
Deploy-Preview-URL: https://ce-37652.dp.appsmith.com
Description
Fixes issue with faulty pageId in the url preview in page settings
Fixes https://github.com/appsmithorg/appsmith/issues/37580
Automation
/ok-to-test tags="@tag.Git"
:mag: Cypress test results
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Bug Fixes
Refactor