Skip to content

Commit

Permalink
Beta release (#714)
Browse files Browse the repository at this point in the history
## Describe your changes

Release candidate merge to beta

## Issue ticket number and link

## Checklist before requesting a review
- [ ] I have read and understand the [Contributions
section](https://github.com/tprouvot/Salesforce-Inspector-reloaded#contributions)
- [ ] Target branch is releaseCandidate and not master
- [ ] I have performed a self-review of my code
- [ ] I ran the [unit
tests](https://github.com/tprouvot/Salesforce-Inspector-reloaded#unit-tests)
and my PR does not break any tests
- [ ] I documented the changes I've made on the
[CHANGES.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/CHANGES.md)
and followed actual conventions
- [ ] I added a new section on
[how-to.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/docs/how-to.md)
(optional)

---------

Co-authored-by: Steve Quirion <sqone2@gmail.com>
Co-authored-by: David Moruzzi <dmoruzzi@users.noreply.github.com>
Co-authored-by: lrlip <51962580+lrlip@users.noreply.github.com>
  • Loading branch information
4 people authored Jan 20, 2025
1 parent b52d4a5 commit 01522d7
Show file tree
Hide file tree
Showing 34 changed files with 2,041 additions and 2,973 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ assignees: tprouvot
**Make sure to read the troubleshooting section before creating an issue**

- [ ] I've read the [common issues](https://tprouvot.github.io/Salesforce-Inspector-reloaded/troubleshooting/) and the one I'm about to create is not one of those documented.
- [ ] I've searched in the [existing issues](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues?q=is%3Aissue) and the one I'm about to create is not one of those created.
- [ ] I've read the [release note](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/releaseCandidate/CHANGES.md) and the one I'm about to create is not already fixed.

**Describe the bug**
Expand All @@ -30,7 +31,7 @@ If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, firefox, edge]
- Version [e.g. 1.20]
- Salesforce Inspector Reloaded Version [e.g. 1.25]

**Additional context**
Add any other context about the problem here.
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
# Release Notes

## Version 1.26

- Guess file format on paste in data import [feature 501](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/501) request by [Adam Štěpánek](https://github.com/Damecek)
- Add chrome extension shortcuts for Setup, Home Page and Dev Console [feature 707](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/707) request by [Danny Gelfenbaum](https://github.com/DannyGelf)
- Add button on User tab to enable LWC debug mode from the popup [feature 696](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/696) request by [b-r-j](https://github.com/b-r-j)
- Add production org header and customizable text in options [feature 679](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/679) request and help by [Tim Paulaskas](https://github.com/TimPaulaskasDS)
- Add Scale Center links to Shortcut tab search.
- Add info about PlatformEvent limits and consumptions on `Event Monitor` page [feature 697](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/697)
- Rename `Add deleted records?` to `Deleted/Archived Records?` in data export [feature 662](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/662) request by [McKay Howell](https://github.com/mckayhowell)
- Fix `EntityParticle is not supported` error in show-all-data page + add new fields [issue 687](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/687)
- Add `Donate` button in the popup [discussion 336](https://github.com/tprouvot/Salesforce-Inspector-reloaded/discussions/336)
- Change user language and locale from the popup [feature 463](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/463)
- Update user detail post save redirect [feature 671](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/671)
- Add new domain for Visualforce pages cf [Ensure Access to Your Visualforce Pages in Summer ’24 and Winter ’25](https://help.salesforce.com/s/articleView?id=001406148&type=1)
- Add option for `Field Creator` to allow users to choose between PascalCase and Underscores for new field API names. [feature 655](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/655) (contribution by [Steve Quirion](https://github.com/sqone2))
- Customize Data Export shortcuts (execute query and insert all fields name in query) [feature 653](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/653) in `chrome://extensions/shortcuts`
- Add [clientId](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/headers_calloptions.htm) header param to identify the extension in EventLogFile [feature 504](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/504)
- Add Apex Classes metadata search in Shortcut tab and new option configuration for the search [feature 591](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/591) request by [mpekacki](https://github.com/mpekacki)
- Add `My Personal Information` shortcuts [feature 627](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/627) request by [Alfredo Chissotti](https://github.com/Astisme)
- Add compatibility for force.com domain for Sf internal orgs
- Restyle Org Limits [feature 626](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/626) request by [Vincent FINET](https://github.com/VinceFINET)
- Add new options to hide buttons in popup and data export [feature 618](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/618)
- Added an option for Data Exporter to use local browser time [feature 527](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/527) (contribution by [David Moruzzi](https://github.com/dmoruzzi))
- Add `calculated` to type column [feature 680](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/680) (contribution by [Lars Lipman](https://github.com/lrlip))

## Version 1.25

- Security improvements thanks to [Rikaard Hosein](https://github.com/rikaardhosein) [fix 661](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/661)
- Add metadata title on shortcut search [feature 639](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/639) request by [Tal-Fr](https://github.com/Tal-Fr)
- Fix `Use Favicon Color` option which was not working key [issue 634](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/634) raised by [Gary Woodhouse](https://github.com/Garywoo)
- Add `Clear` button in Event Monitor and REST Explorer
- Fix `Field Creator` shortcut key [issue 608](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/608)
Expand Down
39 changes: 30 additions & 9 deletions addon/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
return;
}
const [orgId] = cookie.value.split("!");
const orderedDomains = ["salesforce.com", "cloudforce.com", "salesforce.mil", "cloudforce.mil", "sfcrmproducts.cn"];
const orderedDomains = ["salesforce.com", "cloudforce.com", "salesforce.mil", "cloudforce.mil", "sfcrmproducts.cn", "force.com"];

orderedDomains.forEach(currentDomain => {
chrome.cookies.getAll({name: "sid", domain: currentDomain, secure: true, storeId: sender.tab.cookieStoreId}, cookies => {
let sessionCookie = cookies.find(c => c.value.startsWith(orgId + "!"));

let sessionCookie = cookies.find(c => c.value.startsWith(orgId + "!") && c.domain != "help.salesforce.com");
if (sessionCookie) {
sendResponse(sessionCookie.domain);
}
Expand All @@ -44,29 +45,49 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
sendResponse(session);
});
return true; // Tell Chrome that we want to call sendResponse asynchronously.
}
if (request.message == "createWindow") {
} else if (request.message == "createWindow") {
const brow = typeof browser === "undefined" ? chrome : browser;
brow.windows.create({
url: request.url,
incognito: request.incognito ?? false
});
} else if (request.message == "reloadPage") {
chrome.tabs.query({active: true, currentWindow: true}, (tabs) => {
chrome.tabs.reload(tabs[0].id);
});
}
return false;
});
chrome.action.onClicked.addListener(() => {
chrome.runtime.sendMessage({
msg: "shortcut_pressed", sfHost
msg: "shortcut_pressed", sfHost, command: "open-popup"
});
});
chrome.commands?.onCommand.addListener((command) => {
if (command !== "open-popup"){
if (command.startsWith("link-")){
let link;
switch (command){
case "link-setup":
link = "/lightning/setup/SetupOneHome/home";
break;
case "link-home":
link = "/";
break;
case "link-dev":
link = "/_ui/common/apex/debug/ApexCSIPage";
break;
}
chrome.tabs.create({
url: `chrome-extension://${chrome.i18n.getMessage("@@extension_id")}/${command}.html?host=${sfHost}`
url: `https:///${sfHost}${link}`
});
} else {

} else if (command.startsWith("open-")){
chrome.runtime.sendMessage({
msg: "shortcut_pressed", sfHost
msg: "shortcut_pressed", command, sfHost
});
} else {
chrome.tabs.create({
url: `chrome-extension://${chrome.i18n.getMessage("@@extension_id")}/${command}.html?host=${sfHost}`
});
}
});
Expand Down
Loading

0 comments on commit 01522d7

Please sign in to comment.