Commit Graph

17 Commits

Author SHA1 Message Date
a5b863fa6c Add order count edit, remove, and undo-done
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 08:16:16 +03:30
13135b5999 Fetch fresh calibration on every print
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 14:08:11 +03:30
bce920e279 Add interactive label calibration UI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 11:48:59 +03:30
1bf56f237d Calibrate print label field positions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 10:49:08 +03:30
a3a99411c6 Show New Order dates as dd/mm/yyyy (#13)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #13
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 10:58:56 +00:00
5668cbf25e Restyle light theme with coral chrome (#12)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #12
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 10:20:32 +00:00
bf5ce1bb3f Default to Persian and use SVG language flags (#11)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #11
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 07:31:59 +00:00
cb8fd593c0 Rename app title to Lithium | Print Label (#10)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #10
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 07:25:05 +00:00
b3e8b543f9 Update Persian app title to لیتیوم | پرینت لیبل (#9)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #9
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 05:03:03 +00:00
273785c2e9 Add light theme default with toggle (#8)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #8
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 04:57:12 +00:00
0c1340cf3e Localize labels preview and enable Persian RTL (#7)
## Summary
- Translate Data Entry labels preview when language is Persian
- Enable `dir=rtl` for FA (toast position mirrored)
- Add badge `gap` so page counts show as `4 Page(s)` not `4Page(s)`

## Test plan
- [ ] Data Entry in FA shows e.g. `گالن: 20 (5 صفحه) | کارتن: 5 (2 صفحه)`
- [ ] Toggling language refreshes the preview line
- [ ] Print Queue badges have space before Page(s)/صفحه
- [ ] FA layout is RTL

Reviewed-on: #7
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 19:47:50 +00:00
0aa04301e4 Change Persian mark-done label to چاپ شد (#6)
## Summary
- Change Persian `mark_done` label from تایید چاپ to چاپ شد

## Test plan
- [ ] Print Queue in FA shows چاپ شد on the done button

Reviewed-on: #6
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 19:19:28 +00:00
791a39697a Localize print queue badges and use گالن in Persian (#5)
## Summary
- Translate print-queue badges (canisters/boxes/pages/pending) via i18n
- Replace Persian قوطی with گالن everywhere in UI strings

## Test plan
- [ ] Print Queue in FA shows e.g. `20 گالن | 5 کارتن` and `7 صفحه`
- [ ] Pending badge shows `در انتظار`
- [ ] Entry form FA labels use گالن (weight / per box)

Reviewed-on: #5
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 18:41:27 +00:00
d7f1929674 Label print calibration and Lithium Label UI polish (#3)
## Summary
- Calibrate label print/calibrate CSS to the reference PDF (positions, ~7pt/6pt sizes, bottom-row pitch)
- Print layout: partial last-box weight, pad short pages to 4 slips, whole-number weights
- Rename to Lithium Label Manager; Vazirmatn for FA / Inter for EN; inverted lithium icon; seed weights=5; number step=1; hide empty toast

## Test plan
- [ ] Print calibration sheet and overlay on a physical label — top and bottom rows align
- [ ] Order 50/5/4 — box labels show 20, 20, 10 (padded page); weights without `.0`
- [ ] Language toggle switches Inter ↔ Vazirmatn
- [ ] Seed products use canister weight 5; form spinners step by 1

Reviewed-on: #3
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 18:10:44 +00:00
d1d18422f1 Rename app to Lithium Slip Manager and add brand icon.
Swap Product Slip branding for Lithium Slip, and use lithium.png in the nav and favicon.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 19:08:00 +03:30
90bcc0e813 Bump Python 3.14 and fix entry date defaults (#1)
## Summary
- Bump Docker base image from `python:3.12-slim` to `python:3.14-slim`
- Fix entry form: Date defaults to today, Next Control Date to Date + 6 months
- Constrain form inputs so they fit the left column width

## Test plan
- [ ] `docker compose up -d --build` succeeds with Python 3.14
- [ ] Open `/entry` — Date is today, Next Control is ~6 months later
- [ ] Changing Date updates Next Control
- [ ] Form inputs no longer overflow the left card

Reviewed-on: #1
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 14:23:36 +00:00
0af10dde9d Initial commit: Product Slip Manager 2026-09-30 14:17:30 +03:30