Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.20 #210

Merged
merged 62 commits into from
Nov 8, 2023
Merged

1.20 #210

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b7cd520
Auto detect SObject when visualizing list views page
tprouvot Jul 12, 2023
063b3d8
Update changes.md
tprouvot Jul 12, 2023
9c7520a
Remove console.log
tprouvot Jul 12, 2023
c189fdb
Initiate new version
tprouvot Jul 18, 2023
0360c3e
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 19, 2023
af1c2c1
Merge branch 'master' into dependabot/npm_and_yarn/word-wrap-1.2.4
tprouvot Jul 19, 2023
0a5d71b
Bump word-wrap from 1.2.3 to 1.2.4 (#124)
tprouvot Jul 19, 2023
9bc6b5f
Update release note link on popup
tprouvot Jul 19, 2023
5af3166
Merge branch 'releaseCandidate' into feature/detectSObjectOnListView
tprouvot Jul 19, 2023
c85f265
[popup] Detect SObject on listview page (#126)
tprouvot Jul 19, 2023
8297579
Update release notes
tprouvot Jul 19, 2023
2f39ad7
Add 'Create New Flow' shortcut
tprouvot Jul 19, 2023
c51df2c
Merge branch 'master' into releaseCandidate
tprouvot Jul 24, 2023
b60e1ec
Bump word-wrap from 1.2.3 to 1.2.5
dependabot[bot] Jul 24, 2023
1e9ce58
Merge branch 'releaseCandidate' into dependabot/npm_and_yarn/word-wra…
tprouvot Jul 24, 2023
27688de
Bump word-wrap from 1.2.3 to 1.2.5 (#129)
tprouvot Jul 24, 2023
d6f9438
[general] Fix hardcoded browser in generate token url (#139)
tprouvot Aug 18, 2023
6b59f09
Change method to get extension id to be compatible with firefox
tprouvot Aug 21, 2023
2841f38
[data-export] Add 'LIMIT 200' when selecting 'FIELDS' in autocomplete…
tprouvot Sep 4, 2023
9773928
Remove test setup manual step (#143)
aimaj Sep 4, 2023
07fee84
[popup] Reduce the chances to hit limit on EntityDefinition query for…
tprouvot Sep 6, 2023
80bb401
Fix/object explorer fix (#151)
tprouvot Sep 8, 2023
a005227
feature/add keybord shortcut to extension tabs (#152)
tprouvot Sep 8, 2023
62e84df
Update changes
tprouvot Sep 8, 2023
554d90f
Feature/add date litterals ago (#156)
tprouvot Sep 11, 2023
62595cf
[show-all-data] Fix field setup link from show all data (#157)
tprouvot Sep 12, 2023
b5db8ea
BugFix for JSON paste in data import (sobject autodetect & fields value)
tprouvot Sep 13, 2023
5b27f91
Fix test
tprouvot Sep 13, 2023
41fc346
[data-import] [data-export] : Use localStorage variable to store csvS…
tprouvot Sep 18, 2023
c4dbae7
Add 'Recycle Bin' shortcut
tprouvot Sep 19, 2023
7e1fb22
[explore-api] Page restyling (#160)
tprouvot Sep 26, 2023
7c39032
[data-export] Add query templates (#161)
tprouvot Sep 27, 2023
b652608
[popup] Add option to open extension pages in new tab using keyboard …
toly11 Sep 27, 2023
4144bd4
Update documentation's link
tprouvot Sep 27, 2023
b04a250
Remove duplicate section
tprouvot Sep 27, 2023
869ef4b
Fix documentation issues
tprouvot Sep 27, 2023
8e4778d
Add new functionalities to how-to section
tprouvot Sep 27, 2023
326ac73
Update site info
tprouvot Sep 27, 2023
ad8fd02
[popup] feature : Display record name in popup (#166)
tprouvot Sep 28, 2023
6d42e4a
Add missing function for display name in popup
tprouvot Sep 29, 2023
ac1bef3
Fix target
tprouvot Sep 29, 2023
0e45ed1
Add how to add custom links to shortcut tab
tprouvot Sep 29, 2023
f662337
Add documentation link, remove extra lines
tprouvot Oct 2, 2023
e37c6b2
Add custom links "Create new XXX"
tprouvot Oct 11, 2023
69eef68
Fix link for perm set groups
tprouvot Oct 13, 2023
811245c
Feature/enable permission set summary in shortcut (#176)
tprouvot Oct 13, 2023
35ce6b3
Increase api version for Winter 24
tprouvot Oct 16, 2023
172cee2
Support .mil domains (#164)
tprouvot Oct 17, 2023
ed8cf2b
Fix edit layout link (#182)
tprouvot Oct 19, 2023
fe8c7ad
Add issue link to last change
tprouvot Oct 19, 2023
4056026
[data-export] Input focus on SOQL query field (#153)
asknet Oct 20, 2023
904db2e
Remove targetLink variable from inspect
tprouvot Oct 20, 2023
64a0fba
[data-export] Add Query Record link (#184)
AntoineLeleu-Salesforce Oct 20, 2023
889aeaf
Update popup title
tprouvot Oct 27, 2023
a147aa2
Update release note with popup title
tprouvot Oct 27, 2023
4d870db
Add feature "[data-export] Delete button" (#174)
ogomezba Oct 31, 2023
bdc6d6f
Add delete button info
tprouvot Oct 31, 2023
dfa979a
Fix typo
tprouvot Nov 6, 2023
4597c6c
Feature/log in as experience (#204)
tprouvot Nov 6, 2023
9f3af90
Handle when user does not have the rights on NetworkMember
tprouvot Nov 6, 2023
68ccacd
[popup] Move popup icon in flow builder (#206)
tprouvot Nov 7, 2023
3ddf2e5
Merge branch 'master' into releaseCandidate
tprouvot Nov 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Release Notes

## Version 1.20

- Move popup arrow icon in Flow Builder because of Winter 24 UI changes [feature 200](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/200)
- Add 'Login As' button for Experience users [feature 190](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/190)
- Add 'Delete Records' button from data export page [feature 134](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/134) (contribution by [Oscar Gomez Balaguer](https://github.com/ogomezba))
- Update popup title to show "Salesforce Inspector Reloaded" [feature 188](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/188) (idea by [Nicolas Vuillamy](https://github.com/nvuillam))
- Add "Query Record" link from data-export page [feature 111](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/111) (contribution by [Antoine Leleu](https://github.com/AntoineLeleu-Salesforce))
- Fix "Edit page layout link" for from show all data and use "openLinksInNewTab" property for those links [issue 181](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/181)
- Update to Salesforce API v 59.0 (Winter '24)
- Add a parameter to activate summary view of pset / psetGroup from shortcut tab [feature 175](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/175)
- Display record name (and link) in popup [feature 165](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/165)
- Add documentation link to popup
- Add option to open extension pages in a new tab using keyboard shortcuts (contribution by [Joshua Yarmak](https://github.com/toly11))
- Add customizable query templates to query export page (idea and co-develop with [Samuel Krissi](https://github.com/samuelkrissi))
- Explore-api page restyling
- Ability to define csv-file separator [feature 144](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/144) (issue by [Reinier van den Assum](https://github.com/foxysolutions))
- Fix SObject auto detect for JSON input in data import
- "Lightning Field Setup" (from show all data) link did not work for CustomMetadataType and CustomSettings [issue 154](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/154) (issue by [Camille Guillory](https://github.com/CamilleGuillory))
- Add missing Date Literals [feature 155](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/155)
- Allow navigation to the extension tabs (Object, Users, Shortcuts) using keyboard [feature 135](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/135) (feature by [Sarath Addanki](https://github.com/asknet))
- Update query on EntityDefinition to avoid missing objects for large orgs [issue 138](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/138) (issue by [AjitRajendran](https://github.com/AjitRajendran))
- Add 'LIMIT 200' when selecting 'FIELDS(' in autocomplete [feature 146](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/146) )
- Change method to get extension id to be compatible with firefox [issue 137](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/137) (issue by [kkorynta](https://github.com/kkorynta))
- Fix hardcoded browser in Generate Token url [issue 137](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/137) (issue by [kkorynta](https://github.com/kkorynta))
- Add "Create New Flow", "Create New Custom Object", "Create New Permission Set", "Create New Custom Permission" and "Recycle Bin" shortcuts
- Update pop-up release note link to github pages
- Detect SObject on list view page [feature 121](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/121) (idea by [Mehdi Cherfaoui](https://github.com/mehdisfdc))
- Automate test setup manual step of contact to multiple accounts [Aidan Majewski](https://github.com/aimaj)
- In Data export, set input focus in SOQL query text area. [feature 183](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/183) (contribution by [Sarath Addanki](https://github.com/asknet))

## Version 1.19

- Inspect Page Restyling (UI improvements, red background for PROD, display / hide table borders) [PR105](https://github.com/tprouvot/Salesforce-Inspector-reloaded/pull/105) (contribution by [Pietro Martino](https://github.com/pietromartino))
Expand Down Expand Up @@ -42,7 +72,7 @@

## Version 1.14

- Add checkbox in flow builder to give the possibility to the user to scroll on the flow (by [Samuel Krissi](https://github.com/samuelkrissi) )
- Add checkbox in flow builder to give the possibility to the user to scroll on the flow (by [Samuel Krissi](https://github.com/samuelkrissi))

![image](https://user-images.githubusercontent.com/96471586/226161542-cbedec0a-8988-4559-9152-d067ea6f9cb6.png)

Expand Down
29 changes: 14 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ We all know and love Salesforce Inspector: As the great Søren Krabbe did not ha

## Documentation

[Extension's doc](https://tprouvot.github.io/Salesforce-Inspector-reloaded/)
> User guide for using the extension.

[![view - Documentation](https://img.shields.io/badge/view-Documentation-blue?style=for-the-badge)](https://tprouvot.github.io/Salesforce-Inspector-reloaded/ "Go to extension documentation")


## New features compared to original SF Inspector

Expand All @@ -61,7 +64,7 @@ To validate the accuracy of this description, inspect the source code, monitor t

## Use Salesforce Inspector with a Connected App

Follow steps described in [wiki](https://github.com/tprouvot/Salesforce-Inspector-reloaded/wiki/How-to#use-sf-inspector-with-a-connected-app)
Follow steps described in [how-to documentation](https://tprouvot.github.io/Salesforce-Inspector-reloaded/how-to/#use-sf-inspector-with-a-connected-app)

## Installation

Expand All @@ -71,6 +74,15 @@ Follow steps described in [wiki](https://github.com/tprouvot/Salesforce-Inspecto
- [Firefox Browser Add-ons](https://addons.mozilla.org/en-US/firefox/addon/salesforce-inspector-reloaded/)
- [Edge Add-ons](https://microsoftedge.microsoft.com/addons/detail/salesforce-inspector-relo/noclfopoifgfgnflgkakofglfeeambpd)

### Local Installation

1. Download or clone the repo.
2. Checkout the releaseCandidate branch.
3. Open `chrome://extensions/`.
4. Enable `Developer mode`.
5. Click `Load unpacked extension...`.
6. Select the **`addon`** subdirectory of this repository.

## Troubleshooting

- If Salesforce Inspector is not available after installation, the most likely issue is that your browser is not up to date. See [instructions for Google Chrome](https://productforums.google.com/forum/#!topic/chrome/YK1-o4KoSjc).
Expand Down Expand Up @@ -120,19 +132,6 @@ Linting : to assure indentation, formatting and best practices coherence, please

1. `npm run eslint`

## Release

Version number must be manually incremented in [addon/manifest-template.json](addon/manifest-template.json) file

### Chrome

If the version number is greater than the version currently in Chrome Web Store, the revision will be packaged and uploaded to the store ready for manual release to the masses.

### Firefox

1. `npm run firefox-release-build`
2. Upload the file from `target/firefox/firefox-release-build.zip` to addons.mozilla.org

## Design Principles

(we don't live up to all of them. pull requests welcome)
Expand Down
16 changes: 15 additions & 1 deletion addon/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,21 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (sessionCookie) {
sendResponse(sessionCookie.domain);
} else {
sendResponse(null);
chrome.cookies.getAll({name: "sid", domain: "salesforce.mil", secure: true, storeId: sender.tab.cookieStoreId}, cookies => {
sessionCookie = cookies.find(c => c.value.startsWith(orgId + "!"));
if (sessionCookie) {
sendResponse(sessionCookie.domain);
} else {
chrome.cookies.getAll({name: "sid", domain: "cloudforce.mil", secure: true, storeId: sender.tab.cookieStoreId}, cookies => {
sessionCookie = cookies.find(c => c.value.startsWith(orgId + "!"));
if (sessionCookie) {
sendResponse(sessionCookie.domain);
} else {
sendResponse(null);
}
});
}
});
}
});
}
Expand Down
14 changes: 10 additions & 4 deletions addon/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
// sfdcBody = normal Salesforce page
// ApexCSIPage = Developer Console
// auraLoadingBox = Lightning / Salesforce1
// location.host.endsWith("visualforce.com") = Visualforce page
if (document.querySelector("body.sfdcBody, body.ApexCSIPage, #auraLoadingBox") || location.host.endsWith("visualforce.com")) {
// We are in a Salesforce org
chrome.runtime.sendMessage({ message: "getSfHost", url: location.href }, sfHost => {
chrome.runtime.sendMessage({message: "getSfHost", url: location.href}, sfHost => {
if (sfHost) {
initButton(sfHost, false);
}
});
}

function initButton(sfHost, inInspector) {
addFlowScrollability();
let rootEl = document.createElement("div");
rootEl.id = "insext";
let btn = document.createElement("div");
Expand All @@ -34,11 +32,19 @@ function initButton(sfHost, inInspector) {
loadPopup();
});

addFlowScrollability();


function addFlowScrollability() {
const currentUrl = window.location.href;
// Check the current URL for the string "builder_platform_interaction"
if (currentUrl.includes("builder_platform_interaction")) {
//add marging for the popup arrow to prevent overlap with standard close button in flow builder (Winter 24)
//temporary workaround, will be removed in next release when the popupArrow position will be updatable by users
const popupArrow = document.querySelector("#insext");
if (popupArrow){
popupArrow.style = "margin-top: 50px;";
}
// Create a new checkbox element
const headerFlow = document.querySelector("builder_platform_interaction-container-common");
const overflowCheckbox = document.createElement("input");
Expand Down Expand Up @@ -120,7 +126,7 @@ function initButton(sfHost, inInspector) {
});
rootEl.appendChild(popupEl);
function openPopup() {
popupEl.contentWindow.postMessage({ insextUpdateRecordId: true, locationHref: location.href }, "*");
popupEl.contentWindow.postMessage({insextUpdateRecordId: true, locationHref: location.href}, "*");
rootEl.classList.add("insext-active");
// These event listeners are only enabled when the popup is active to avoid interfering with Salesforce when not using the inspector
addEventListener("click", outsidePopupClick);
Expand Down
Loading