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

[popup] Add API Version to Org tab #295

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Version 1.23

- Display API version in Org tab [feature 293](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/293) (feature by [Camille Guillory](https://github.com/CamilleGuillory))
- Add the possibility to hide fields API names after users clicked "Show fields API names"
- Add performance On data export with option to disable in Options/Data Export tab (contribution by [Nathan Shulman](https://github.com/nshulman))
- Clean up popup header and footer (contribution by [Nathan Shulman](https://github.com/nshulman))
Expand Down
4 changes: 2 additions & 2 deletions addon/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Salesforce Inspector reloaded",
"description": "Productivity tools for Salesforce administrators and developers to inspect data and metadata directly from the Salesforce UI.",
"version": "1.22",
"version_name": "1.22",
"version": "1.23",
"version_name": "1.23",
"icons": {
"128": "icon128.png"
},
Expand Down
12 changes: 12 additions & 0 deletions addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,14 @@ class AllDataBoxOrg extends React.PureComponent {
return null;
}

getApiVersion(instanceStatus){
if (instanceStatus){
let apiVersion = (instanceStatus.releaseNumber.substring(0, 3) / 2) - 64;
return apiVersion;
}
return null;
}

setInstanceStatus(instanceName, sfHost){
let instanceStatusLocal = JSON.parse(sessionStorage.getItem(sfHost + "_instanceStatus"));
if (instanceStatusLocal == null){
Expand Down Expand Up @@ -1205,6 +1213,10 @@ class AllDataBoxOrg extends React.PureComponent {
h("th", {}, "Location:"),
h("td", {}, this.state.instanceStatus?.location)
),
h("tr", {},
h("th", {}, "API version:"),
h("td", {}, this.getApiVersion(this.state.instanceStatus))
),
h("tr", {},
h("th", {}, h("a", {href: "https://status.salesforce.com/instances/" + orgInfo.InstanceName + "/maintenances", title: "Maintenance List", target: linkTarget}, "Maintenance:")),
h("td", {}, this.getNextMajorRelease(this.state.instanceStatus?.Maintenances))
Expand Down
Loading