]> git.openstreetmap.org Git - rails.git/commit
Keep search result colors stable across response orders
authorokburkard1 <okburkard@gmail.com>
Tue, 17 Nov 2026 02:55:39 +0000 (21:55 -0500)
committerokburkard1 <okburkard@gmail.com>
Tue, 17 Nov 2026 02:55:39 +0000 (21:55 -0500)
commitff14f5cedaf0eb136d09d43aa414c7de27776e62
tree02d80f10daa76c7722864556beedf0d98130b2cf
parentd88880b22e20ddbd1ab46f14728580a8c397d37a
Keep search result colors stable across response orders

Assign marker colors by source and result position. This lets each source draw independently and preserves the colors of earlier results when loading another page.
app/assets/javascripts/index_modules/search.js
test/system/search_test.rb