A Roll Button for the Obsidan LEGO Base

We have a LEGO collection in Obsidian. Each set has its own note, and an Obsidian Base pulls those notes together into a collection view. I use a QuickAdd command called New LEGO Set to look up a set number through Brickset, create the note, and save the set photo in the vault. When I finally inventoried the closet, we reused that workflow to add the missing sets in a batch.
Once the sets were in there, I wanted Christina to be able to open Obsidian and get an answer to a very specific question: What should I build next?
How it works
LEGO Roll is a small JavaScript file in the vault. QuickAdd runs it as a command, and it opens a dialog with a big red Roll button.
The script reads the set notes and looks for build_status: sealed. It picks one at random and shows its photo, name, set number, theme, and piece count. If Christina wants to build it, she taps Mark in progress. That writes build_status: in-progress directly to the set’s note and takes it out of the running for the next roll.
The notes are the inventory, so an edit in Obsidian also changes what the picker sees. Sets we’ve finished stay out of the pool, and so does the Mona Lisa we gave my father.
How I added it to Obsidian
I put lego-roll.js in my vault’s 9 meta/scripts folder, added it as a User Script in a QuickAdd macro named LEGO Roll, and clicked the lightning bolt beside the macro so it would appear in the command palette. The script reads the same notes and local photos that the Base already uses.

Now Christina can open LEGO Roll, hit the button, and head for the closet. I’m pretty sure the next set will have enough leaves.