🎥 Adds a new Label Editor - #18938
Conversation
…. Note: need to fix tag alignment
# Conflicts: # app/View/Label.php # resources/views/settings/labels.blade.php # routes/web.php
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| UnusedCode | 4 medium |
| BestPractice | 2 minor |
| CodeStyle | 3 minor |
| Complexity | 16 medium |
🟢 Metrics 394 complexity
Metric Results Complexity 394
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
marcusmoore
left a comment
There was a problem hiding this comment.
I'm still barely starting to dive into this but a blocker is that I can't clone Hema or Zebra labels.
Still a lot more for me to look at but I just wanted to call that out first.
|
Also, sorry, my phpstan cleanup just caused a bunch of conflicts. Should be pretty easy to resolve tho. (I pulled out the stub methods and changed the Label class |
# Conflicts: # app/Models/Labels/DefaultLabel.php # app/Models/Labels/Sheets/Avery/L4736_A.php # app/Models/Labels/Sheets/Avery/L6009_A.php # app/Models/Labels/Sheets/Avery/L7162_A.php # app/Models/Labels/Sheets/Avery/L7162_B.php # app/Models/Labels/Sheets/Avery/L7163_A.php # app/Models/Labels/Sheets/Avery/_3490_A.php # app/Models/Labels/Sheets/Avery/_5267_A.php # app/Models/Labels/Sheets/Avery/_5520_A.php # app/Models/Labels/Sheets/Avery/_5520_B.php # app/Models/Labels/Sheets/Hema/_14130046.php # app/Models/Labels/Sheets/Hema/_38310012.php # app/Models/Labels/Tapes/Brother/TZe_12mm_A.php # app/Models/Labels/Tapes/Brother/TZe_18mm_A.php # app/Models/Labels/Tapes/Brother/TZe_241.php # app/Models/Labels/Tapes/Brother/TZe_24mm_A.php # app/Models/Labels/Tapes/Brother/TZe_24mm_B.php # app/Models/Labels/Tapes/Brother/TZe_24mm_C.php # app/Models/Labels/Tapes/Brother/TZe_24mm_D.php # app/Models/Labels/Tapes/Brother/TZe_24mm_E.php # app/Models/Labels/Tapes/Brother/TZe_62mm_Landscape_A.php # app/Models/Labels/Tapes/Dymo/LabelWriter_11354.php # app/Models/Labels/Tapes/Dymo/LabelWriter_1933081.php # app/Models/Labels/Tapes/Dymo/LabelWriter_2112283.php # app/Models/Labels/Tapes/Dymo/LabelWriter_2112284.php # app/Models/Labels/Tapes/Dymo/LabelWriter_30252.php # app/Models/Labels/Tapes/Generic/Continuous_53mm_A.php # app/Models/Labels/Tapes/Generic/Continuous_Landscape_0_59in_A.php # app/Models/Labels/Tapes/Generic/Tape_53mm_A.php
…ensions for import
Custom Label Editor
This PR introduces a comprehensive custom label management workflow for the new label engine. Users can now create, clone, import, edit, preview, and manage both sheet and tape labels through a unified editor
Label Management
1. Create New Label
Creates a new custom label from scratch. Choose either a sheet or tape label, configure its dimensions and layout, and then customize its content, supported features, and appearance in the label editor.

2. Import Label
Imports a previously exported custom label configuration from a JSON file or by pasting the configuration text. The imported label can then be reviewed, edited, and saved as a new custom label. This allows for crowdsourcing labels.

3. Clone Label
Creates a copy of an existing label template or custom label. The cloned label inherits the original's configuration, allowing you to make modifications without affecting the source label.

Label Editor
4. Supports
Controls which elements are available on the label. Enabling or disabling a feature automatically shows or hides its corresponding configuration options in the Content section.

5. Content
Configure the appearance and placement of each supported element, including barcodes, text, logos, and field formatting. Use these settings to organize the label's content to match your desired layout and design.

6. Layout
Define the physical characteristics of the label medium, including page, grid, and label dimensions. These settings ensure the label is correctly sized and positioned for your sheet or tape format.
