Add custom projects with LDraw part search, Rebrickable set import, and per-project part management#36
Draft
Copilot wants to merge 5 commits into
Draft
Add custom projects with LDraw part search, Rebrickable set import, and per-project part management#36Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
…ts management Co-authored-by: scubar <9043529+scubar@users.noreply.github.com>
…in LDraw parser Co-authored-by: scubar <9043529+scubar@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option to create custom projects with selected parts
Add custom projects with LDraw part search and per-project part management
Feb 23, 2026
Owner
|
@copilot allow me to select a Set from rebrickable and add parts to it as well. |
Agent-Logs-Url: https://github.com/scubar/brickgen/sessions/388063e2-b4cb-4a43-9eab-21f9df869c36 Co-authored-by: scubar <9043529+scubar@users.noreply.github.com>
Contributor
Author
Done in commit Flow:
All added parts land in the project's parts list with their Rebrickable quantity and color data preserved. Here's how the three states look: (Screenshot of the dark-theme UI below) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Add custom projects with LDraw part search and per-project part management
Add custom projects with LDraw part search, Rebrickable set import, and per-project part management
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds support for custom projects not tied to a LEGO set number, with a searchable LDraw library index, Rebrickable set import, and full add/remove/quantity management for project parts.
Database
ldraw_part_indextable indexes local LDraw.datfiles (part_num + description from file header)project_partstable stores parts belonging to custom projects (part_num, quantity, color)is_customboolean column added toprojects002_custom_projectshandles all schema changes idempotentlyBackend
build_ldraw_part_index()/search_ldraw_part_index()inldraw.py— scanparts/*.dat, parse description from line-type-0 header, upsert into indexldraw_parts.pyexposes:GET /api/ldraw-parts/search?q=— full-text search on part_num and descriptionPOST /api/ldraw-parts/index— (re)build index by scanning local libraryGET /api/ldraw-parts/index/status— indexed countPOST /api/projectsnow acceptsis_custom: truewith noset_num/api/projects/{id}/parts— list, add (merges quantity if part already present), PATCH quantity, DELETEprocess_generation_custom()mirrors the existing generation pipeline but reads parts fromproject_partsinstead of calling RebrickableFrontend
+ Custom Projectbutton opens a modal to name and create a custom project+ Addper result+ Add, or bulk-import all parts at once withImport all (N)(parallelised withPromise.all)−/+quantity controls and Remove buttonOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.