🎉 v1.8.3 - Dynamic Mobile Fix & Full Localization
Hello everyone! We are excited to roll out v1.8.3, a major stability, performance, and localization update for the Sticky Title extension. This version resolves a hidden mobile responsiveness bug, brings full multi-language support to the admin area, and modernizes the entire underlying codebase.
🔧 What's Changed & Fixed?
- Dynamic Mobile Responsiveness: Fixed a critical issue where mobile title features would completely fail to activate if the page initially bootstrapped on a desktop viewport. The window width checks have been moved directly inside the component lifecycle callbacks (
oncreate, onupdate), making the extension seamlessly responsive to window resizing and device transitions.
- Full Translation (i18n) Support: The admin panel has been completely decluttered of hardcoded English strings. Every setting label, help text, and dropdown option is now properly wired up to Flarum's native translator (
app.translator.trans), making the locale/en.yml file fully functional and ready for community translations.
- Smart DOM Tracking (MutationObserver): We eliminated the fragile and artificial 100ms
setTimeout delay previously used to wait for FoF Pages to render. It has been replaced with a high-performance, asynchronous MutationObserver that injects the title instantly and reliably the exact millisecond the DOM element becomes ready.
- Codebase Modernization & Type Safety: The primary forum entry point has been completely migrated from plain JavaScript to strict TypeScript (
index.ts) for robust compile-time checks. Additionally, the desktop sidebar item rendering logic was completely refactored into clean helper functions, eliminating duplicated styling code blocks.
🔄 Update Instructions
You can upgrade your installation to the latest version by running the following commands in your Flarum root directory:
composer update huseyinfiliz/sticky-title:"*"
php flarum cache:clear
Big thanks to everyone for the continuous feedback and helping us polish these architectural edge cases. You can now update safely! 🎉