-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Remove button enabled for "dev" extension if it has error #4535
Comments
@njx. Not sure if I'd quite call this a medium, but maybe... it is potential data loss for extension devs. |
Good catch, I agree. Medium priority to me for this sprint. |
I wonder if we should have some indication in the listing of which extensions are local "dev" extensions. |
For #4535, show error message but not 'remove' link for bad extension in dev folder
FBNC @peterflynn |
Reopening as low priority to @njx -- the current behavior is a little inconsistent. Non-broken dev extensions show a disabled Remove button (with explanatory tooltip), while broken extensions show no Remove button at all. |
Yeah, that's a good point. The problem is that in the extension error case, we use a link rather than a button, and the disabled attribute doesn't work on links (and it's not clear users would think to tooltip over it anyway). So we'd need some different affordance to show this info. @larz0 - any thoughts? |
Any reason it needs to use a different affordance from the regular remove case? It does exactly the same action... |
@larz0 Originally, we showed the error message and an enabled Remove button (or link, I guess). NJ's fix removed the link for dev extensions that shouldn't be deletable. In contrast, dev extensions that don't have an error still show the Remove UI, but with a tooltip explaining that dev externsions must be deleted manually. So I was expecting to see something matching that -- error message next to disabled link or button, rather no link/button at all. I'm not sure why we use a Remove button in some cases and a Remove link in others, though. |
Let's remove the Remove UI for dev extensions that don't have an error and say something like "Must be removed manually" in its place. |
…eanups * origin/master: (30 commits) turn off optimization in acorn (but not acorn_loose right now) cleanup unit test prefs temporarily switch to my tern Revert "Revert "Workaround for the Tern crash."" Update README.md Work around #4554 (Extension Manager font is hard to read on Windows), which is a Chromium bug, by avoiding the lightest font-weight on Win. Lighten the text slightly so it's still a little muted, like the design looks on Mac and with older CEFs on Win. Revert "Workaround for the Tern crash." Updated by ALF automation. Re-add toolbar hover. Fix some button appearance issues. Updated by ALF automation. * Fix bug #4548 - remove Save As from folder tree context menu * Fix exception thrown when File > Save As invoked with nothing open * Update docs for working set events to reflect PR #4450 integration tests for registerInlineEditProvider Fixes after review JSDoc fixes. Fix for extensions compare show error message and add safety check For #4535, show error message but not 'remove' link for bad extension in dev folder Refactor provider callback for export Generalize registerInlineEditProvider and registerInlineDocProvider to take an optional priority parameter change upper limit to 16000 ...
Result: Remove button is enabled, even though normally it's disabled for everything in the "dev" folder. Its files are permanently deleted with no recourse after step 5.
Expected: Remove button is disabled just like with functioning dev extensions.
The text was updated successfully, but these errors were encountered: