Skip to content

Add a local document browser and startup screen preference - #2717

Merged
bherbruck merged 93 commits into
tangency-labs:mainfrom
rdcstout:codex/document-library
Nov 17, 2026
Merged

bherbruck merged 93 commits into
tangency-labs:mainfrom
rdcstout:codex/document-library

Conversation

@rdcstout

@rdcstout rdcstout commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Change

Adds a collapsible document browser beside open designs. It hides on Home to preserve the full-width File view.

  • Browse designs: thumbnails, folder navigation, live search, newest-first ordering, and refresh after saves, file operations, or returning to the app. Bundled examples appear before choosing a folder.
  • Folder history: remembers recent folders, supports pinning/unpinning and removing entries, and separates pinned folders. Selecting a folder collapses the history. Removing the active entry switches to another folder or bundled examples; it never deletes the folder.
  • File actions: open, insert, rename, move, copy, reveal in the system file manager, and move to Trash. Open designs and linked files are protected from rename, move, and removal.
  • Active-file indicator: a theme-accent dot identifies the active design by full path.
  • Persistent highlights: assign a colored marker beside a filename. Labels survive folder changes and restarts, follow browser rename/move operations, and leave CAD files unchanged.
  • Import shortcuts: STEP, IGES, and Mesh buttons use the existing importers.
  • Theme and startup support: controls follow light, dark, and custom themes. General preferences select Home or a new Untitled design on startup; closing the last document follows that choice. Home remains the default.

Changes a default: yes — the browser appears beside open designs. The Show/Hide Documents toggle restores the full-width workspace and remembers that choice.

Validation

Formatting, repository checks, strict workspace Clippy, focused browser/file-operation, theme, document, recovery, color and font tests, and the WebAssembly check passed at 5a983614. The full geometry suite was not rerun for this integration.

Screenshot

SolidCraft document browser with active-file indicator, persistent filename highlight, folder controls and import shortcuts

Summary by CodeRabbit

  • New Features
    • Added a document browser for browsing local design folders, searching files, and managing recent and pinned folders.
    • Added actions to open, insert, rename, copy, move, trash, and reveal designs, with safeguards for files in use.
    • Added a startup preference to choose whether to show Home or start a new design. Home is also skipped for launches that open a file, use sample mode, or are controlled externally.
  • Improvements
    • Added document previews and theme-aware highlight colors.
    • Added folder selection and import shortcuts for STEP, IGES, and mesh files.
    • Added sample cards when no library folder is selected.

@rdcstout
rdcstout marked this pull request as ready for review October 18, 2026 19:09
@bherbruck

Copy link
Copy Markdown
Collaborator

Thanks for this! The dependencies look fine to me. It has a merge conflict with main now though, could you rebase it? I'll merge it once CI is green.

@rdcstout

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing this and for the opportunity to contribute. I appreciate the work you’re putting into SolidCraft!

@rdcstout

Copy link
Copy Markdown
Contributor Author

CI is green now, and the conflicts are resolved. Thanks again!

@rdcstout

Copy link
Copy Markdown
Contributor Author

@bherbruck

Attached are uncropped screenshots of the app at a 1280 × 720 window size, showing:

  • The document panel beside an open design and the Show/Hide Documents toggle in the app bar.
  • The expanded recent-folder list.
  • The folder right-click menu.
  • The startup options under General preferences.
  • The same design with the document panel hidden.

In these views, the document panel and app-bar controls remain contained without overlapping. Long filenames are truncated within their cards, and some modeling-ribbon labels shorten at this width.

We could also add a thumbnail-size setting so users can choose a more compact view. I’m happy to make that adjustment in this PR, or, if you’re ready to merge it as-is, handle it in a follow-up PR—whichever you prefer.

01-panel-open 02-recent-folders 05-startup-preference 04-panel-hidden 03-folder-menu

@rdcstout

Copy link
Copy Markdown
Contributor Author

Once you see it, you can't unsee it. I went ahead and added Small, Medium, and Large sizes for the document browser. Smaller sizes now shrink both the thumbnails and the panel, leaving more room for the design.

The setting lives under Preferences → Layout → Panels, alongside History and Browser. Large preserves the existing size.

Screenshots below show the preference and all three sizes.

01-document-browser-preferences 02-small-thumbnails 03-medium-thumbnails 04-large-thumbnails

@bherbruck

Copy link
Copy Markdown
Collaborator

@Nathan-Dane could you look at this one when you get a chance? It adds a document panel beside every open design (shown by default, with a Show/Hide Documents toggle in the app bar) plus a startup preference in General settings, so it needs your eye on the shell layout. The 1280x720 pictures are in the thread above. Thanks @rdcstout for keeping it current with main.

@bherbruck

Copy link
Copy Markdown
Collaborator

I'd like to take this. One change first: please make the document panel hidden by default (a preference to turn it on), so today's layout stays the same for everyone who doesn't opt in. Once that's in, it's approved from my side.

@rdcstout

Copy link
Copy Markdown
Contributor Author

The document browser is now hidden by default. It can be enabled or disabled in Preferences → Layout → Panels, and the choice persists across restarts.

@bherbruck bherbruck added ready to merge reviewed, every ask addressed; merge once CI is green approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) owner-approved Owner reviewed a sensitive-path change (kernel, CI, build scripts, deps); only the owner adds this labels Nov 17, 2026
@bherbruck
bherbruck added this pull request to the merge queue Nov 17, 2026
Merged via the queue into tangency-labs:main with commit 1296cd4 Nov 17, 2026
50 checks passed
@bherbruck bherbruck added status:decision Waiting on a maintainer group decision; don't merge or close and removed status:decision Waiting on a maintainer group decision; don't merge or close labels Nov 17, 2026
sethml added a commit to sethml/solidcraft that referenced this pull request Nov 17, 2026
Conflicts with tangency-labs#2717 (local document browser) in the file picker: main's
begin_file_task now carries this branch's multi-file picker, and the one
pick_folder dialog (and Services field) serves both the library folder and
the chat's Choose a folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) needs-ui-review Needs a look from whoever owns the UI's look owner-approved Owner reviewed a sensitive-path change (kernel, CI, build scripts, deps); only the owner adds this ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants