1.1.2
New
- Refresh button on character notes β every imported character note now has a π Refresh from D&D Beyond button next to βοΈ Open Interactive Character Sheet, letting you re-fetch the character and update the note in place without opening the import dialog. The button shows a brief β "Refreshed" or β "Refresh failed" flash so it's clear whether the refresh worked, then resets automatically.
- Styles added. The plugin is from now on compatible with themes.
- Refresh button
Bug fixes
- The refresh button is now disabled (with an explanatory tooltip) on notes that don't have a D&D Beyond character ID, instead of attempting β and silently failing β an import with a meaningless fallback ID.
importCharacter()previously swallowed its own errors and returned silently, so a calling function had no way to know an import had failed. It now re-throws after showing its Notice, so the new refresh button (and any future callers) can detect and react to failures.- Replaced
setAttribute("disabled", "true")with the standardbutton.disabled = trueon the refresh button and the 5etools fetch button, which is the simpler and more correct way to toggle button state. - Moved the character-sheet launcher buttons' styling out of inline
style.cssTextstrings and intostyles.css(.dndbi-launcher-row,.dndbi-sheet-btn,.dndbi-refresh-btn), improving readability and maintainability. - Fixed a broken
buildSavingThrows()helper that referencedkey,subType, andcellsoutside of any enclosing scope β restored the missing.map()callback so saving throws render correctly again.
New Contributors
Thank you for contributing to this project! π