Conversation
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
Contributor
There was a problem hiding this comment.
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/recordIdURL 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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