Skip to content

feat: filament labels + export/print flows + AML#1

Closed
akira69 wants to merge 5 commits intomasterfrom
feat/filament-aml-printing
Closed

feat: filament labels + export/print flows + AML#1
akira69 wants to merge 5 commits intomasterfrom
feat/filament-aml-printing

Conversation

@akira69
Copy link
Copy Markdown
Owner

@akira69 akira69 commented Feb 11, 2026

Summary

  • Add filament label printing and export flow, including QR codes that link to filament pages.
  • Split print vs export into separate flows with dedicated dialogs, presets, and content/layout controls.
  • Add AML export (per-label or per-page) and PNG export with configurable DPI, label size, margins, and safe zone.
  • Improve selection pages (spool + filament) with shared search, filters, pagination, and layout fixes.
  • Add server-side search utilities and DB indexes to speed up selection/search.

Detailed Changes

  • New filament label selection flow parallel to spools, with shared Export/Print selection UI and search controls.
  • QR codes for filament labels target the filament detail page.
  • New export dialogs (spool + filament) supporting PNG/AML, DPI, and AML split options.
  • New print dialogs (spool + filament) with separate presets from export.
  • Filament/spool presets split into print vs image/export presets.
  • Added advanced table filtering (search + column filters), pagination controls, and layout fixes to avoid overlap or clipping.
  • Added server-side general search, helpers, and indexes to improve large dataset responsiveness.
  • Added helper script to import SpoolmanDB as an optional data source (not wired into runtime).

Feature Requests Addressed (Upstream)

Testing

  • docker build -t spoolman_labels:test .
  • docker run -p 8000:8000 -v "$PWD/data:/home/app/.local/share/spoolman" spoolman_labels:test
  • Manual UI verification of selection, print, and export flows

@akira69 akira69 marked this pull request as ready for review February 11, 2026 23:32
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 05a48980f0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread client/src/pages/printing/spoolSelectModal.tsx Outdated
Comment thread client/src/pages/filaments/show.tsx Outdated
@akira69
Copy link
Copy Markdown
Owner Author

akira69 commented Feb 12, 2026

Addressed feedback: 1) Archived selections now cleared across pages when disabling Show Archived. 2) Return URL now strips base path to avoid duplicated prefixes in base-path deployments. Commit: 3b896d2.

- Replaces multi-page AML option with Export as .zip for both PNG and AML exports after Labelife multi-page behavior proved unreliable.
- Adds configurable filename templates for spool and filament exports with tag substitution support.
- Keeps existing label-template tag modal as shared reference for filename templates.
- Adds duplicate filename auto-suffixing (01, 02, 03...).
- Sets ZIP naming to format like 'PNG spool labels.zip' / 'AML filament labels.zip'.
- Updates default spool filename template to include spool id for uniqueness.
@akira69
Copy link
Copy Markdown
Owner Author

akira69 commented Feb 16, 2026

I noticed that multi-page AML wasn't working - and maybe never would.
Addressed in commit f2e6da9.

  • Removed the multi-page AML path from export options because Labelife did not reliably load multiple labels/pages from a single AML as expected.
  • Replaced that behavior with "Export as .zip" for both PNG and AML exports (one file per label inside the archive).
  • Added configurable filename templates for both spool and filament exports under the label-template section
  • included tooltip for usage that references the label template rules/tags.
  • Added default templates:
    • Spool: {filament.vendor.name}-{filament.material}-{filament.name}-{id}
    • Filament: {vendor.name}-{material}-{name}
  • Duplicate file export names are auto-suffixed as 01, 02, 03...
  • ZIP naming format is:
    • PNG spool labels.zip / AML spool labels.zip
    • PNG filament labels.zip / AML filament labels.zip

@akira69
Copy link
Copy Markdown
Owner Author

akira69 commented Feb 20, 2026

Superseded by PR #2 + follow-up fixes in master. Closing fork-only PR to avoid conflict-heavy duplicate merge.

@akira69 akira69 closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant