Skip to content

Commit

Permalink
Merge branch 'releaseCandidate' into feature/detectSObjectOnListView
Browse files Browse the repository at this point in the history
  • Loading branch information
tprouvot committed Jul 19, 2023
2 parents 9c7520a + 9bc6b5f commit 5af3166
Show file tree
Hide file tree
Showing 10 changed files with 463 additions and 416 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
- run: pip install pillow cairosvg
- run: mkdocs gh-deploy --force
679 changes: 330 additions & 349 deletions CHANGES.md

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions addon/manifest-template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Salesforce Inspector reloaded",
"description": "Productivity tools for Salesforce administrators and developers to inspect data and metadata directly from the Salesforce UI.",
"version": "1.19",
"version": "1.20",
"icons": {
"128": "icon128.png"
},
Expand All @@ -12,9 +12,7 @@
}
},
"minimum_chrome_version": "88",
"permissions": [
"cookies"
],
"permissions": ["cookies"],
"host_permissions": [
"https://*.salesforce.com/*",
"https://*.force.com/*",
Expand All @@ -32,15 +30,8 @@
"https://*.visualforce.com/*"
],
"all_frames": true,
"css": [
"button.css",
"inspect-inline.css"
],
"js": [
"button.js",
"inspect-inline.js",
"links.js"
]
"css": ["button.css", "inspect-inline.css"],
"js": ["button.js", "inspect-inline.js", "links.js"]
}
],
"background": {
Expand All @@ -58,12 +49,10 @@
"explore-api.html",
"limits.html"
],
"matches": [
"https://*/*"
],
"matches": ["https://*/*"],
"extension_ids": []
}
],
"incognito": "replaced-at-build",
"manifest_version": 3
}
}
22 changes: 6 additions & 16 deletions addon/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"name": "Salesforce Inspector reloaded",
"description": "Productivity tools for Salesforce administrators and developers to inspect data and metadata directly from the Salesforce UI.",
"version": "1.19",
"version": "1.20",
"icons": {
"128": "icon128.png"
},
"minimum_chrome_version": "88",
"permissions": [
"cookies"
],
"permissions": ["cookies"],
"host_permissions": [
"https://*.salesforce.com/*",
"https://*.force.com/*",
Expand All @@ -26,14 +24,8 @@
"https://*.visualforce.com/*"
],
"all_frames": true,
"css": [
"button.css",
"inspect-inline.css"
],
"js": [
"button.js",
"inspect-inline.js"
]
"css": ["button.css", "inspect-inline.css"],
"js": ["button.js", "inspect-inline.js"]
}
],
"background": {
Expand All @@ -51,12 +43,10 @@
"explore-api.html",
"limits.html"
],
"matches": [
"https://*/*"
],
"matches": ["https://*/*"],
"extension_ids": []
}
],
"incognito": "split",
"manifest_version": 3
}
}
2 changes: 1 addition & 1 deletion addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class App extends React.PureComponent {
),
h("div", { className: "slds-grid slds-theme_shade slds-p-around_small slds-border_top" },
h("div", { className: "slds-col slds-size_5-of-12 footer-small-text slds-m-top_xx-small" },
h("a", { href: "https://github.com/tprouvot/Chrome-Salesforce-inspector/blob/master/CHANGES.md", title: "Release note", target: linkTarget }, "v" + addonVersion),
h("a", { href: "https://tprouvot.github.io/Salesforce-Inspector-reloaded/release-note/", title: "Release note", target: linkTarget }, "v" + addonVersion),
h("span", {}, " / "),
h("a", { href: "https://status.salesforce.com/instances/" + orgInstance, title: "Instance status", target: linkTarget }, orgInstance),
h("span", {}, " / "),
Expand Down
Binary file added docs/assets/images/how-to/inspect-legacy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/how-to/query-history.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions docs/how-to.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# How to

## Use Sf Inspector with a connected app

---

If you enabled "API client whitelisting", Sf Inspector may not work anymore.
To secure the extension usage, you can use a auth flow to get an access token linked to a connected app.

1. Create a connected app.
2. Set permissions and callback url. (chrome-extension://chromeExtensionId/data-export.html?host=mysandboxHost&)

> **Warning**
> Don't forget to replace "chromeExtensionId" and "mysandboxHost" with you current extension id and org domain
> <img alt="Connected App" src="https://github.com/tprouvot/Chrome-Salesforce-inspector/blob/master/docs/screenshots/connectedApp.png?raw=true" height="300">
3. Get Consumer Key and save it in the export page

<img alt="Client Id" src="https://github.com/tprouvot/Chrome-Salesforce-inspector/blob/master/docs/screenshots/clientId.png?raw=true" height="300">

4. Refresh page and generate new token

<img alt="Generate Token" src="https://github.com/tprouvot/Chrome-Salesforce-inspector/blob/master/docs/screenshots/generateAccessToken.png?raw=true" width="300">

## Migrate saved queries from legacy extension to Salesforce Inspector Reloaded

1. Open data export page on legacy extension
<img alt="Inspect legacy" src="../assets/images/how-to/inspect-legacy.png?raw=true" height="300">
2. Get saved queries from "insextSavedQueryHistory" property
<img alt="Inspect legacy" src="../assets/images/how-to/query-history.png?raw=true" height="300">
3. Open it in VS Code, you should have a JSON like this one:

```json
[
{ "query": "select Id from Contact limit 10", "useToolingApi": false },
{ "query": "select Id from Account limit 10", "useToolingApi": false }
]
```

From there you have two options

Import the queries by adding a label for each one with the label in query property suffixed by ":"
ie.

```json
[
{
"query": "Contacts:select Id from Contact limit 10",
"useToolingApi": false
},
{
"query": "Accounts:select Id from Account limit 10",
"useToolingApi": false
}
]
```

Re-import this json in the new extension (with the same key "insextSavedQueryHistory")
86 changes: 57 additions & 29 deletions docs/release-note.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,85 @@
# Release Notes

## 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))
- Navigate to record detail (Flows, Profiles and PermissionSet) from shortcut search [feature 118](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/118)
- Fix country codes from LocalSidKey convention [PR117](https://github.com/tprouvot/Salesforce-Inspector-reloaded/pull/117) (contribution by [Luca Bassani](https://github.com/baslu93))
- Use custom shortcuts [feature 115](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/115)
- Add Export Query button [feature 109](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/109) (idea by [Ryan Sherry](https://github.com/rpsherry-starburst))
- Add permission set group assignment button from popup [feature 106](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/106)

## Version 1.18

- Update to Salesforce API v 58.0 (Summer '23)
- Restyle popup with SLDS (Salesforce Lightning Design System) [feature 9](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/9) (idea by [Loïc BERBEY](https://github.com/lberbey), contribution by [Pietro Martino](https://github.com/pietromartino))
- Fix "Show all data" shortcut from popup [issue 96](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/96) (fix by [Pietro Martino](https://github.com/pietromartino))

## Version 1.17

- Add toLabel function among autocomplete query suggestions [feature 90](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/90) (idea by [Mickael Gudin](https://github.com/mickaelgudin))
- Update spinner on inspect page when loading or saving records and disable button [feature 69](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/69) (idea by [Camille Guillory](https://github.com/CamilleGuillory))
- Show "Copy Id" from Inspect page [feature 12](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/12)
- Add a configuration option for links to open in a new tab [feature 78](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/78) (idea by [Henri Vilminko](https://github.com/hvilminko))
- Import data as JSON [feature 75](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/75) (idea by [gaelguimini](https://github.com/gaelguimini))
- Fix auto update action on data import [issue 73](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/73) (issue by [Juul1](https://github.com/Juul1))
- Restore focus on suggested fields when pressing tab key in query editor [issue 66](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/66) (idea by [Enrique Muñoz](https://github.com/emunoz-at-wiris))
- Update shortcut indication for mac users
- Fix links for custom object [PR80](https://github.com/tprouvot/Salesforce-Inspector-reloaded/pull/80) (contribution by [Mouloud Habchi](https://github.com/MD931))
- Fix links for custom setting [PR82](https://github.com/tprouvot/Salesforce-Inspector-reloaded/pull/82) (contribution by [Mouloud Habchi](https://github.com/MD931))

## Version 1.16

* Select "Update" action by default when the data paste in data-import page contains Id column [feature 60](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/60) (by Bilel Morsli)
* Allow users to update API ## Version [feature 58](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/58)
* Add org instance in the popup and a link to Salesforce trust status website [feature 53](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/53) (by [Camille Guillory](https://github.com/CamilleGuillory) )
* Fix saved query when it contains ":" [issue 55](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/55) (by [Victor Garcia](https://github.com/victorgz/) )
- Select "Update" action by default when the data paste in data-import page contains Id column [feature 60](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/60) (by Bilel Morsli)
- Allow users to update API ## Version [feature 58](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/58)
- Add org instance in the popup and a link to Salesforce trust status website [feature 53](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/53) (by [Camille Guillory](https://github.com/CamilleGuillory) )
- Fix saved query when it contains ":" [issue 55](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/55) (by [Victor Garcia](https://github.com/victorgz/) )

## Version 1.15

* Add "PSet" button to access user permission set assignment from User tab [feature 49](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/49)
* Add shortcut tab to access setup quick links [feature 42](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/42)
- Add "PSet" button to access user permission set assignment from User tab [feature 49](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/49)
- Add shortcut tab to access setup quick links [feature 42](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/42)

## 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)

* Fix links (object fields and object list) for custom metadata objects [issue 39](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/39)
* Add shortcut link to object list from popup (idea by [Samuel Krissi](https://github.com/samuelkrissi) )
* Add shortcuts links to (list of record types, current SObject RecordType and objet details, show all data from user tab) from popup [feature 34](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/34)
* Update manifest ## Version from [v2](https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/) to v3
* Auto detect SObject on import page when posting data which contain SObject header [feature 30](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/30)
* Update to Salesforce API v 57.0 (Spring '23)
* [Switch background color on import page to alert users that it's a production environnement](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/20)
* Implement Auth2 flow to generate access token for connected App
- Fix links (object fields and object list) for custom metadata objects [issue 39](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/39)
- Add shortcut link to object list from popup (idea by [Samuel Krissi](https://github.com/samuelkrissi) )
- Add shortcuts links to (list of record types, current SObject RecordType and objet details, show all data from user tab) from popup [feature 34](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/34)
- Update manifest ## Version from [v2](https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/) to v3
- Auto detect SObject on import page when posting data which contain SObject header [feature 30](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/30)
- Update to Salesforce API v 57.0 (Spring '23)
- [Switch background color on import page to alert users that it's a production environnement](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/20)
- Implement Auth2 flow to generate access token for connected App

## Version 1.13

* [Automatically remove spaces from column name in import](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/23)
* Update to Salesforce API v 56.0 (Winter '23)
* Add "Skip all unknown fields" to import page
* Add User Id to pop-up
- [Automatically remove spaces from column name in import](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/23)
- Update to Salesforce API v 56.0 (Winter '23)
- Add "Skip all unknown fields" to import page
- Add User Id to pop-up

<img alt="Add user" src="screenshots/add-user-id.png" height="200">

* Support Enhanced Domain [issue #222](https://github.com/sorenkrabbe/Chrome-Salesforce-inspector/issues/222) from [PR223](https://github.com/sorenkrabbe/Chrome-Salesforce-inspector/pull/223)
* [Add inactive users to search result](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/21)
- Support Enhanced Domain [issue #222](https://github.com/sorenkrabbe/Chrome-Salesforce-inspector/issues/222) from [PR223](https://github.com/sorenkrabbe/Chrome-Salesforce-inspector/pull/223)
- [Add inactive users to search result](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/21)

<img alt="Inspector menu" src="./screenshots/issue21.png" height="200">

* Update to Salesforce API v 55.0 (Summer '22)
* Update to Salesforce API v 54.0 (Spring '22)
* [Sticked table header to the top on export](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/10)
* Update to Salesforce API v 53.0 (Winter '22)
* Add label to saved query and sort list.
* Remove extra comma when autocomplete query in data export, or select a field from suggested fields just before 'FROM' keyword.
- Update to Salesforce API v 55.0 (Summer '22)
- Update to Salesforce API v 54.0 (Spring '22)
- [Sticked table header to the top on export](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/10)
- Update to Salesforce API v 53.0 (Winter '22)
- Add label to saved query and sort list.
- Remove extra comma when autocomplete query in data export, or select a field from suggested fields just before 'FROM' keyword.

<img alt="Inspector menu" src="./screenshots/7_latest_comma.png" height="100">

* Add "Copy Id" option when clicking on a SObject field or Id in data export page.
- Add "Copy Id" option when clicking on a SObject field or Id in data export page.

<img alt="Inspector menu" src="./screenshots/8_copy_id.png" height="200">

* Integrate UI updates from [Garywoo's fork](https://github.com/Garywoo/Chrome-Salesforce-inspector)
- Integrate UI updates from [Garywoo's fork](https://github.com/Garywoo/Chrome-Salesforce-inspector)
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5af3166

Please sign in to comment.