Both fixed in Parts Search 2.1.8.
1. Default target. The dashboard picked the first machine adom-bridge targets happened to list, which on m5-ubuntu was AdomLapper. It now picks, in order:
- the machine you chose in Settings
- the machine the dashboard runs on (
thisMachine)
- the primary machine
- a target named like this host
If none of those exists, nothing is painted, rather than another person's screen. The taskbar progress bar, the demo captions and the header's target all use this rule. Settings now calls the default "This machine".
2. DigiKey 0 results for "10k 0402 resistor". DigiKey did answer, with thousands of matches. Parts Search's relevance filter then threw them all away: it kept only hits containing the query's longest word, "resistor", and DigiKey writes "RES 10K OHM 1% 1/16W 0402". A query of several words now keeps a hit that has at least half of them. 10k plus 0402 is enough, and a 0402 capacitor is still dropped. One-word queries work as before.
How it was tested
- Unit tests cover target choice (this machine over the first listed, then primary, hostname, or nothing) and the keyword filter.
- Live "10k 0402 resistor": 2.1.7 showed DigiKey 0, and 2.1.8 shows DigiKey 5, led by CRCW040210K0FKED with 12.9M in stock. Mouser (5) and JLCPCB (2) are unchanged.
- The dashboard's status reports this machine as its target.
Not tested: on a Linux Hydrogen box. I tested in a Windows Hydrogen workspace, where this machine is also the first one listed, so the m5-ubuntu case is covered by unit tests only. If adom-bridge targets on m5-ubuntu doesn't report thisMachine, the hostname rule takes over, and failing that nothing is painted.
Upgrade: adom-wiki pkg update adom/adom-parts-search, then restart the dashboard (the dock card or adom-parts-search serve picks up the new version).