Skip to content

[feat]: Add keyboard shortcut to open Show All Data for current record#1192

Open
RubenHalman wants to merge 6 commits into
tprouvot:releaseCandidatefrom
RubenHalman:feat/show-all-data-shortcut
Open

[feat]: Add keyboard shortcut to open Show All Data for current record#1192
RubenHalman wants to merge 6 commits into
tprouvot:releaseCandidatefrom
RubenHalman:feat/show-all-data-shortcut

Conversation

@RubenHalman
Copy link
Copy Markdown
Contributor

@RubenHalman RubenHalman commented May 3, 2026

Fixes #917

Summary

  • Adds open-show-all-data command to manifest.json (Chrome/Edge) and manifest-firefox.json (Firefox) so it appears in extension shortcut settings
  • Default shortcut: Ctrl+Shift+I on Windows/Linux, Cmd+Shift+I on Mac (configurable by the user)
  • Handled in popup.js using the existing getRecordId/getSobject context — no logic duplicated into button.js
  • Opens inspect.html for the current record directly, including objectType when available

How it works

When the shortcut fires, background.js sends shortcut_pressed with command: "open-show-all-data". The App component in popup.js listens for this via chrome.runtime.onMessage and opens the inspect page using the already-known contextUrl state — the same URL the popup uses to detect the current record.

Testing

  • On a Salesforce record page, press Cmd+Shift+I (Mac) or Ctrl+Shift+I (Windows/Linux)
  • Show All Data opens in a new tab for the current record

Checklist

  • I have read and understand the Contributions section
  • My PR relates to an existing issue or feature request and I discussed it with maintainer
  • I used SLDS style and limit the usage of custom CSS
  • I have performed a self-review of my code
  • I ran the unit tests and my PR does not break any tests
  • I documented the changes I've made on the CHANGES.md and followed actual conventions
  • I added a new section on how-to.md (optional)

Adds an open-show-all-data command with default shortcut Ctrl+Shift+I
(Cmd+Shift+I on Mac). Handled directly in popup.js using existing
getRecordId/getSobject context — no logic duplication in button.js.

Fixes tprouvot#917
@ChrisBurns0000
Copy link
Copy Markdown

Hi @RubenHalman, not sure if I'm testing this correctly but I'm receiving this error when testing the keyboard shortcut.

Reproduce -

  • Go to a random record, in my case testing with an account record
  • Hit the keyboard shortcut for show all data - in my case I updated it to alt + a.
  • Show all data opens with error message

Also I noticed the show all data tab is opening multiple times - sometimes 3 or 4 duplicate tabs when I use the shortcut.

image

…e tabs

Move shortcut handling out of popup.js (where it fired on every open
Salesforce tab due to chrome.runtime.sendMessage broadcast) into
background.js. Uses chrome.tabs.query to get the active tab and the
existing cookie-based sfHost resolution, then opens inspect.html
directly via chrome.tabs.create — no broadcast involved.
@RubenHalman
Copy link
Copy Markdown
Contributor Author

RubenHalman commented May 13, 2026

Hi @ChrisBurns0000, thanks for testing and flagging this!

Just pushed a fix — the shortcut now opens a single tab regardless of how many Salesforce tabs you have open.

With regards to the error in the image, I did not experience this, but I will take a look

@RubenHalman
Copy link
Copy Markdown
Contributor Author

I looked at this but I think its resolved as part of another Bug, can you try again @ChrisBurns0000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat]: Shortcut for Show All Data

2 participants