Skip to content

Enhance record modal behavior and URL parameter handling#1740

Open
paustint wants to merge 2 commits into
mainfrom
feat/1738
Open

Enhance record modal behavior and URL parameter handling#1740
paustint wants to merge 2 commits into
mainfrom
feat/1738

Conversation

@paustint
Copy link
Copy Markdown
Contributor

Also add option to refresh the record as this could be desired action if automation runs in the background

resolves #1738

When coming from the web-extension, auto-populate the object and potentially add filter for recordId on query page

paustint added 2 commits May 21, 2026 08:29
Also add option to refresh the record as this could be desired action if automation runs in the background

resolves #1738
…oadRecords and Query components

When coming from the web-extension, auto-populate the object and potentially add filter for recordId on query page
Copilot AI review requested due to automatic review settings May 21, 2026 15:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves record modal UX by keeping the modal open after saving (switching back to view mode) and adds deep-link URL parameter handling to better support browser-extension workflows.

Changes:

  • Refactors record modal save handling so the wrapper controls post-save behavior and forces a clean remount after successful saves.
  • Adds a “Reload Record” action to refresh the current record data while viewing.
  • Supports objectName / recordId URL params for pre-filling Query and Load Records (and updates the web extension to pass them through).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
libs/shared/ui-core/src/record/ViewEditCloneRecordWrapper.tsx Tracks save state and re-keys the modal component on successful save to reset internal UI state while keeping the modal open.
libs/shared/ui-core/src/record/ViewEditCloneRecord.tsx Introduces onSave callback flow and adds a “Reload Record” button in view mode.
libs/features/query/src/Query.tsx Reads URL params to auto-compose and restore a starting SOQL query (optionally filtered by recordId).
libs/features/load-records/src/LoadRecords.tsx Reads objectName URL param to auto-select an sObject once metadata loads.
apps/jetstream-web-extension/src/components/SfdcPageButton.tsx Adds recordId to deep links so the app can pre-filter/query the current record.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +654 to +665
<button
className="slds-button slds-button_neutral"
onClick={() => {
setLoading(true);
fetchMetadata();
}}
disabled={loading || !initialRecord}
title="Reload the record from Salesforce"
>
<Icon type="utility" icon="refresh" className="slds-button__icon slds-button__icon_left" omitContainer />
Reload Record
</button>
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.

Keep record modal open after edit

2 participants