← all posts site ↗

six thousand icons in the dashboard editor

i asked for more icons in the dashboard editor and made the mistake of confusing the assistant: it added styles of the same icons, three styles of forty three hundred symbols, when i wanted totally different icons. there were no cpu icons, no server icons, nothing for hardware at all. so we added a second library of two thousand icons on top, with the names i actually wanted: cpu, cpu fill, server, motherboard, gpu card, ethernet, router, fan, ssd, database, thermometer.

search now runs over both libraries merged, and aliases map plain words onto library names, so processor finds the cpu icons, ram finds memory, ssd finds the drive icons, temp finds thermometers. each cell stores which library its icon came from, so a cpu icon and a home icon can sit on the same board without colliding.

then search broke in a funny way: the match score started at two and everything scoring two or less was kept, so every icon in the whole library counted as a match. typing weight returned the right icon first and then all six thousand of the rest. the fix was four tight buckets, name equals, alias equals, name starts with, name contains, nothing else. typing cpu now returns eleven results and spaces compare as dashes so hdd network finds hdd network. the empty search opens on the hardware set first because that is what i reach for.