Skip to content

[breaking Change]: Improve Form prefill from location - #11475

Open
ThieryMichel wants to merge 2 commits into
nextfrom
fix/source-link
Open

ThieryMichel wants to merge 2 commits into
nextfrom
fix/source-link

Conversation

@ThieryMichel

Copy link
Copy Markdown
Contributor

Problem

Prefilling a <Form> from the location search doesn't behave consistently with the rest of the form.

Solution

  • Update how <Form> applies the values from the location search.
  • Add the allowedLocationFields and disablePrefillFromLocation props to <Form>.
  • Use disablePrefillFromLocation in <InPlaceEditor>.
  • Pass the record in the location state in <CloneButton>.

How To Test

  • Storybook: ra-core/form/Form > Prefill From Location, and ra-ui-materialui/input/ArrayInput > Prefill From Location
  • Unit tests in Form.spec.tsx

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@ThieryMichel
ThieryMichel marked this pull request as ready for review November 20, 2026 13:51
@fzaninotto

fzaninotto commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

You should add a [Breaking Change] Prefix to this PR title, and document the upgrade path

@ThieryMichel ThieryMichel changed the title fix: Improve Form prefill from location [breaking change] fix: Improve Form prefill from location Nov 23, 2026
@ThieryMichel ThieryMichel changed the title [breaking change] fix: Improve Form prefill from location [breaking Change] fix: Improve Form prefill from location Nov 23, 2026
@ThieryMichel ThieryMichel changed the title [breaking Change] fix: Improve Form prefill from location [breaking Change]: Improve Form prefill from location Nov 23, 2026
Comment thread docs/Upgrade5_16.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have an Upgrade doc in docs/Upgrade.md, please use it instead of adding a new one.

@claude

claude Bot commented Nov 24, 2026

Copy link
Copy Markdown

⚠️ PR Steward hasn't started: your organization has no extra usage available to pay for it, so it isn't working on this pull request.

If your organization's extra usage balance is empty or was never set up, an Owner of your Claude organization can add extra usage credits at claude.ai/admin-settings/usage. If your organization's monthly spend limit for extra usage is $0 or was reached, an Owner can raise it on the same page. If neither applies, contact Anthropic support.

Once that's fixed, PR Steward starts at the next push to this pull request.

Settings

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

This branch has not been deployed

No deployments
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.

2 participants