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

"Factory Reset" for Script Lab #5494

Open
AlexJerabek opened this issue Apr 24, 2019 · 3 comments
Open

"Factory Reset" for Script Lab #5494

AlexJerabek opened this issue Apr 24, 2019 · 3 comments
Assignees
Labels
Area: accessibility A11yMAS bug Area: Script Lab Issue related to Script Lab

Comments

@AlexJerabek
Copy link
Collaborator

Description:

It's possible during development (or now) to get Script Lab in a state where it can't load. With OfficeDev/script-lab#722, even uninstalling, restarting, and reinstalling doesn't clear out the old cache, so there's no easy-to-moderate way to get Script Lab back to a useable state.

One possible suggestion is that if the code pane doesn't load within 30 seconds, an option to clear the cache and reset to the production build is presented.

@Zlatkovsky
Copy link
Member

Seems like a good idea for a future feature.

FYI, you can "hard reset" yourself by attaching a debugger to the add-in and then doing "window.localStorage.clear()" in the console and then reloading the add-in.

image

@wandyezj
Copy link
Member

wandyezj commented Apr 4, 2024

This is a critical feature. There are multiple instances of Script Lab customers getting trapped due to the current state. I've had it happen to me several times.

Currently the way to do this is to:

  1. open F12 tools
  2. clear out local storage

However, customers don't know the inner workings of Script Lab.

We can do this by adding a new button on the menu that opens a separate tools html page with the option to reset to factory state. We can allow them to download all of their snippets before they do this, and also give them the possibility to upload their snippets.

@ElizabethSamuel-MSFT
Copy link
Contributor

Transferring this issue to the office-js repo, the new home of Script Lab issues.

@ElizabethSamuel-MSFT ElizabethSamuel-MSFT transferred this issue from OfficeDev/script-lab Mar 14, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Mar 14, 2025
@lindalu-MSFT lindalu-MSFT added Area: Script Lab Issue related to Script Lab Area: accessibility A11yMAS bug and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: accessibility A11yMAS bug Area: Script Lab Issue related to Script Lab
Projects
None yet
Development

No branches or pull requests

6 participants