v7.0.0 Beta Build 7
Pre-release
Pre-release
Hello! It's been a while, but there's finally been some movement on one of the several large projects I've been working on to clean up Toolbox's UI code. No real Shreddit updates this time, but the style isolation project is a big prerequisite to getting Toolbox's UI working on Shreddit down the line, so this is definitely progress.
Changes
- React-based UI stuff is now rendered in Shadow DOM trees, where their styles can be isolated from page styles. It's also now styled by proper component-scoped stylesheets, rather than the giant mess of global CSS we applied to everything before. This means that as I rewrite UI stuff to use React I'll also be rewriting all its CSS as I go. (#923)
- As a consequence, it's now impossible to style these parts of Toolbox's UI via subreddit stylesheets on old Reddit. This sucks and is no fun, but it's a necessary consequence of trying to build support for four different frontends with four very different approaches to CSS
- So far the following things have been converted to be built on React and scoped styles:
- The Modnotes module UI
- In-page notifications
- The weird little message toast you get when you perform an action and we want to tell you it worked or didn't
- Aside from the styling stuff, you shouldn't notice any major differences in how any of the affected components work - if you do it's probably a bug, please report it!
- ok thats not entirely true i did get lazy and push this release before re-styling the
<select>
where you pick your note type in the modnotes window #1003
- ok thats not entirely true i did get lazy and push this release before re-styling the
Fixes
- The storage keys used to cache user information are actually user-specific again - this should hopefully mean things break less badly if you switch accounts while Toolbox is active (#992)
- The part of the extension that manages active notifications will no longer fail in such a way that some notifications become un-dismissable if several show up on the page at the same time (#1002)
- Log output when Toolbox can't initialize is slightly improved; certain errors are passed through to the console instead of being swallowed to make it a little less tedious for me to debug things (#1000)