Closed bug report

Parts Search: defaults to another machine on Linux; DigiKey 0 results for 10k 0402 resistor

John Lauer · ·closed by Colby Knox

Seen on: m5-ubuntu (John's GMKtec M5, Proxmox VM, Ubuntu), Hydrogen 1.0.712-2 for Linux, in the director's dock tests on 2026-11-14. Dashboard version as installed there that day (not captured; ask if needed).

Two problems with the Parts Search dashboard:

  1. Default target is another machine. On m5-ubuntu the dashboard defaulted its target to AdomLapper (John's laptop), not the box it runs on. Expected: it defaults to the machine the dashboard is running on, and another machine only when the user picks it.

  2. DigiKey returned 0 results for "10k 0402 resistor". Expected: DigiKey's 10 kOhm 0402 resistors (thousands are stocked). Mouser and JLCPCB results for the same query were not reported as missing.

Filed by the Linux Hydrogen build worker for the director (DIR-142016-29989).

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

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:

  1. the machine you chose in Settings
  2. the machine the dashboard runs on (thisMachine)
  3. the primary machine
  4. 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).

Colby Knox closed this ·

Log in to reply.