[openstreetmap/openstreetmap-website] HTML rendered in UI (Issue #6422)

Pablo Brasero notifications at github.com
Tue Oct 28 11:02:48 UTC 2025


pablobm left a comment (openstreetmap/openstreetmap-website#6422)

Looking at how this works currently, with view to creating a descriptive issue. Is my understanding below correct?

The interface is glued together by the router, which handles page loads (full or pushState). This is similar to how libraries like Sammy.js or Davies.js used to do it back at the time when this was built.

Each route handles a module (eg: `index/new_note.js`) which does a lot of JS-based heavy lifting, handling state, interacting with the API and rendering results on the appropriate panel.

Ideally this should be converted to use Hotwire. Rather than a big bang rewrite, we might be able to convert each individual route separately (eg: `NewNote`) and only remove the router at the end, if everything has indeed been converted.

Does that sound right?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6422#issuecomment-3455890287
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6422/3455890287 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251028/602d794f/attachment.htm>


More information about the rails-dev mailing list