Huge progress on better-links
This batch of changes was mostly about cleaning up technical debt and making the links system way more predictable going forward. A lot of the previous logic had grown pretty messy (especially around icons and legacy data), so this refactor focuses on simplifying data flow and making things easier to extend later.
Highlights
-
Extracted legacy migration logic
Moved all legacy data migration into its own module instead of keeping it mixed into runtime logic. This makes the main code cleaner and isolates all the “old format → new format” handling in one place.
(c8ed832e) -
Simplified custom image handling
Switched from more complex handling to just using direct URLs for custom images. This was actually kinda a bug/mistake on my part (lol), but it becomes almost obsolete after this next commit. ⬇️
(b5a2aa2) -
Introduced
IconConfigtype!!!!!!!
Replaced the old string-based icon field with a proper typedIconConfig. This is a big win for clarity and future features, icons are now structured data instead of a bunch of random strings in the data. It was such a big mess before, it’s almost incomprehensible. I’ve been wondering how to apporach this issue for a while, and thank goodness I finally figured it out.
(aadcc55)
Overall, this sets a much cleaner foundation for better-links. The system is now more modular, easier to reason about, and better prepared for future features without piling on more hacks. Its definitely NOT perfect yet and still needs a LOT of refinement.
Log in to leave a comment