mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#1132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/932
Author: @legend813
Created: 4/9/2026
Status: ✅ Merged
Merged: 4/10/2026
Merged by: @maziggy
Base:
dev← Head:feat/print-from-project📝 Commits (9)
74d3ff9feat: print files directly from project view (closes #930)5114945testaaa914dfeat: auto-assign project to archive when printing from project view66bbd49Merge branch 'dev' into feat/print-from-project1dac321fix(print-from-project): address all PR review feedback from maziggy3877161Merge branch 'dev' into feat/print-from-project97836cbAdd project validation in add_to_queue endpoint90fd27eImport User model and validate project IDfdb3bc8Fix syntax errors in add_to_queue project_id validation📊 Changes
21 files changed (+566 additions, -31 deletions)
View changed files
📝
backend/app/api/routes/library.py(+14 -1)📝
backend/app/api/routes/print_queue.py(+8 -0)📝
backend/app/schemas/library.py(+2 -0)📝
backend/app/schemas/print_queue.py(+2 -0)📝
backend/app/services/archive.py(+4 -0)📝
backend/app/services/background_dispatch.py(+6 -0)📝
backend/app/services/print_scheduler.py(+1 -0)📝
frontend/src/__tests__/components/PrintModal.test.tsx(+103 -0)➕
frontend/src/__tests__/pages/ProjectDetailPage.test.tsx(+225 -0)📝
frontend/src/api/client.ts(+7 -1)📝
frontend/src/components/PrintModal/index.tsx(+5 -0)📝
frontend/src/components/PrintModal/types.ts(+2 -0)📝
frontend/src/i18n/locales/de.ts(+3 -0)📝
frontend/src/i18n/locales/en.ts(+3 -0)📝
frontend/src/i18n/locales/fr.ts(+3 -0)📝
frontend/src/i18n/locales/it.ts(+3 -0)📝
frontend/src/i18n/locales/ja.ts(+3 -0)📝
frontend/src/i18n/locales/pt-BR.ts(+3 -0)📝
frontend/src/i18n/locales/zh-CN.ts(+3 -0)📝
frontend/src/pages/FileManagerPage.tsx(+1 -1)...and 1 more files
📄 Description
Description
Show printable files from linked library folders directly in the project detail page, with Print Now and Add to Queue buttons per file. Removes the detour through the File Manager for common reprint workflows.
When Print Now or Add to Queue is triggered from the project detail page, the resulting archive is automatically linked to that project — no manual assignment needed afterwards.
Related Issue
Closes #930
Type of Change
Changes Made
Fetch files for all linked folders in parallel via useQueries
Render each folder with its file list below the folder header link
Show Play / CalendarPlus action buttons on sliced files (.gcode, .gcode.3mf)
Wire PrintModal in reprint and add-to-queue modes
Add noFiles / print / addToQueue translation keys to all 7 locales
project_id flows explicitly from the UI through the full stack:
PrintModal accepts projectId prop (only set from ProjectDetailPage)
printLibraryFile API options + PrintQueueItemCreate carry project_id
FilePrintRequest and PrintQueueItemCreate schemas accept project_id
PrintDispatchJob stores project_id through background_dispatch
archive_print() sets project_id on the created PrintArchive
print_scheduler passes item.project_id when creating archive from queue
Screenshots
Testing
Checklist
Additional Notes
Prints are only flagged as project prints when they were started in the ProjectDetailView - the linkage only is not enough.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.