Skip to content

Brick Work 0.9.0

Choose a tag to compare

@toni-dev-bot toni-dev-bot released this 05 Nov 15:22
· 349 commits to main since this release
ebf371c

The first stability release (milestone 1.0): a stable schema with tested upgrades from 0.5.x, a written upgrade and backup guide, and the first published container image, ghcr.io/ulef1005/brick-work (amd64 and arm64; see Releases and the container image). A 0.8.x collection (schema 4.1) is upgraded in place when 0.9.0 first opens it read-write: three columns are added and nothing else changes. The upgrade is one-way: 0.8.x cannot open a 4.2 file and stops with a 3.3 file must be migrated; ignore that hint, which is meant for 3.3 files. So back up brickwork.db and secret.key before you upgrade, and to go back, restore that backup (Upgrade Brick Work, Back up and restore). catalogue.db is not touched.

  • New items get their picture from every path that adds them (#183). Only Add queued the picture download; an item placed by an order line into loose stock, by Part to Inventory, by Import from BrickTracker, by a Collection sync pull or by Found in the Workbench showed No image until you pressed Refresh pictures. These paths now queue the Downloading images step for an item that has no picture for a colour you hold, once per item and never for an unidentified one. See Pictures and prices.
  • Gear, Books and Catalogs get their own icons, simpler filters and a visible phone strip (#153). The sidebar entries for the three kinds no longer borrow the Parts icon: Gear is a shopping bag, Books an open book and Catalogs a catalog over a second page. Their lists drop the filters that only mean something for parts (Problems, Stock: In sets only and Theme), Group by no longer offers Theme, and the search box says Name or number. In the grid, a card without a picture shows its number once, in the picture tile, instead of again above the name; the list view keeps it on the name line, where a long ISBN stays readable. On a phone the top strip scrolls the current entry into view, also after the window is narrowed or the phone turned, so Catalogs no longer sits off the edge. Five approved phone screenshots change with it.
  • Brickset's old New and Used values are marked legacy (#173). A collection moved from 3.3 keeps Brickset's set values from that time. Brick Work 3.3 read them from Brickset's website, and Brickset's API has none, so they are never refreshed. The item page's Price records now mark them legacy · Brickset 3.3, not refreshed, and so does the Estimate when it comes from one; the Prices screen labels them the same. Market prices stay BrickLink's. See Pictures and prices.
  • An empty kind's page keeps its place in the menu (#171). Opening Gear, Books or Catalogs when the collection holds none, for example from a link, showed no active entry in the sidebar, and on a phone the bottom bar marked Manage and showed its links. While such a page is open, its kind now shows under Collection, marked as the current page. On other pages an empty kind stays hidden, as before.
  • Upgrade, backup and restore are written down and tested (#80). New guide Upgrade Brick Work: what each version does to the schema, which step you run yourself (brickwork migrate4 for a 0.5.x collection), how to check the result and how to go back. The README has Upgrade and Backup and restore sections. A new test takes a 0.5.0-shaped (3.3) collection through migrate4 and the 4.0, 4.1 and 4.2 steps, counting rows and running brickwork check's checks at the end. Back up and restore now names the API v2 paths of the export and the check (the v1 paths answer 410).
  • Schema 4.2. One in-place step adds three columns: who holds a job (#167) and why an order line was not placed (#155). A 4.1 collection is upgraded the first time it is opened, as 4.1 was; Undo of changes made before the upgrade works as before. See Schema notes.
  • Order e-mails: more lines get suggestions, and an undone import can be pasted again (#155). A line no item matches exactly now offers Could be candidates from the BrickLink item lists: the longest list name that starts the line's name (a seller's note such as "micro scratches" written after it), then names that hold all of its words (an item BrickLink renamed). They are suggestions only; you still choose. The API's order line has unplaced_reason, in words, for a line that is not placed. Undoing an import and pasting the same e-mail or XML again brings the document back as a draft, where it was reported as already imported. Export orders with One per order lists only orders that have saved lines. See Receive an order.
  • A job left running at a restart runs again (#167). If the app stopped mid-job and, after the restart, the old process number belonged to another program, the job could stay running for good, and a catalogue job would refuse every new one as already running. A job claim now records the machine's boot and the start of the process that holds it, and a claim whose process is not that one is taken over. Jobs left running by 4.1 are taken over at the first start on 4.2. A call that was being sent when the process was killed is counted again when the step restarts: restart between jobs, or once the day's budget is used up, to lose none (Sources).
  • Brickset's minifigure CSV (#146). Add › Minifigure › File reads Brickset's minifigure export: with Loose the figures you own loose (Brickset's loose count, so the figures in your sets are not added twice), with Wishlist the figures marked wanted. Before, it was refused with CSV needs part_num, set_num or minifig_num. See Bring your collection in from another app.
  • Clearer CLI, MCP and order messages (#152). brickwork mcp calls http://127.0.0.1:3333/api/v2 by default, the install's own port (was 5000), and a URL that answers with the web app says so instead of returning the page. brickwork settings set incomplete_discount_pct with a word gives the range message. A second brickwork wishlist undo of the same change says Already undone. python -m brickwork.store4 jobs names an item job's item (was item None). Importing a placed BrickLink order whose items BrickLink has purged says so and suggests pasting the e-mail (was No order lines were found).
  • What is this? and the import banner (#142, #145). Workbench › What is this? now lights Part to Inventory in the sidebar, the Workbench tool that also identifies a part by photo (was Tools & Admin). After Import from BrickTracker, the banner counts loose items by line, as the preview does, with the pieces beside them: 351 loose items (435 pieces), or just the lines when they agree. Before, it showed the pieces as items.
  • Workbench lists show their count (#174). Recent saves on every Workbench tool, and the Part Picker's Pick for which sets? list, showed <span class="mono" data-count role="status"></span> as text where the number of shown rows belongs. They now show the count.
  • Focus stays in a sheet you have just opened (#174). Closing a sheet with Escape and at once opening another could move the focus back to the sidebar, out of the new sheet. Focus now goes back to where it came from only when no sheet is open.

Container image: docker pull ghcr.io/ulef1005/brick-work:0.9.0 (amd64 and arm64; also tagged 0.9, 0 and latest), index digest sha256:6937babe2906bcac03dd40bcdcb0da1801428e3d8eae3560c0351db2959d123c, with build provenance and SBOM attestations (gh attestation verify oci://ghcr.io/ulef1005/brick-work:0.9.0 --owner Ulef1005).