Commit Graph

48 Commits

Author SHA1 Message Date
Cursor Agent
a9c31148e0 Fix Enter key to submit QC sheet form
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Wrap fields in a form with type=submit Create button so Enter in
serial (or closed combobox) creates the datasheet without a mouse click.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-09-27 07:59:59 +00:00
e4cdb540e9 Fix intermittent win32com CLSIDToPackageMap errors on Windows. (#27)
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Corrupt gen_py early-binding cache is cleared and EnsureDispatch retried
(with late-bound Dispatch fallback), matching the manual Temp\gen_py workaround.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-09-22 23:43:35 +03:30
fb9295ce65 Restyle New QC Sheet GUI to OmniRoute visual language (#25)
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
* Restyle New QC Sheet GUI to match OmniRoute visual language.

Dark graph-paper canvas, coral-to-violet tokens, traffic-light card chrome, and a terminal-style status panel replace the teal Material form while keeping the Set/Ink/Serial workflow and pywebview bridge.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Flatten GUI chrome so the form sits on the graph-paper canvas.

Remove the nested traffic-light window, drop desktop/demo.html, and keep
the OmniRoute grid visible behind the operator form in both themes.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Stop the form panel from stretching so the graph-paper canvas shows through.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Make floating field labels transparent so the grid shows through.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Set field-label backgrounds to 50% opacity of the canvas color.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Float field labels on focus or value, Material outlined style.

Empty labels sit inside the box; they move up to the border when the
field is focused or has a value.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Revert "Float field labels on focus or value, Material outlined style."

This reverts commit 757781f7a0.

* Sit field labels just above the boxes, clear of the border.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Give field labels more clearance above the input borders.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Place field labels in document flow above the inputs.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Sync the ink combobox text as soon as the set's ink list rebuilds.

Previously the visible value stayed on the old ink until the box was
clicked, because rebuild only copied the select when the input was empty.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Reopen combobox on input mousedown after selection.

Selecting an option closes the list without blurring the input, so a later
click never fires focus. Open the panel on mousedown as well.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

* Require the combobox mousedown handler to call open().

The previous substring only checked that a mousedown listener exists.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-08-15 12:23:15 +03:30
f1d9693966 Switch UI to HTML based tools
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
2026-08-12 04:56:02 +03:30
95e0acbe71 Add GUI refactor, modern theme, and configuration improvements
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
2026-08-10 14:28:49 +03:30
Cursor Agent
8ee6cebea3 Automate package version bumps with bump-my-version
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Use a non-numeric web UI fallback, configure bump-my-version against
pyproject.toml, and add a workflow_dispatch Action that opens a bump PR.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-08-08 15:42:43 +00:00
Cursor Agent
78d1a0a5fc Bump package version to 0.2.0
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Advance the minor version in pyproject.toml and the web UI fallback
so the displayed app version matches the release.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-08-08 15:34:57 +00:00
Cursor Agent
86d0006291 Update KRBG1600T Beige clear cell from G12 to F12
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Align the Kimia Razi beige row cells_to_clear with the intended
Batch!F12 target in file_data.csv.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-08-08 15:24:50 +00:00
Cursor Agent
7cc3a350cd Add timestamped file logging for QC datasheet creation
Log every create_datasheet outcome (success, skip, validation/backend
errors with traceback) to a dated append-only log file so CLI and web
UI share one audit trail.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-08-08 10:31:23 +00:00
Cursor Agent
0bca5e551e Show package version in window title and muted UI footer
Read xlsx-clean version from package metadata and display it as
"New QC Sheet · X.Y.Z" in the title and "vX.Y.Z" under Create, without
changing the 900x700 native window size.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-25 07:06:03 +00:00
Cursor Agent
3463fb74df Prefer /usr/bin/python3 over PATH uv-managed interpreters
setup_linux.sh used command -v python3, which with an activated .venv or
uv on PATH resolved to ~/.local/share/uv/python/... and failed the gi
preflight even though apt python3-gi was installed. Always use
/usr/bin/python3 for the native-window venv.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-25 06:03:16 +00:00
Cursor Agent
b9ea8b2d36 Force Linux venv onto OS Python so apt _gi loads
uv was recreating .venv with managed CPython 3.12.2 (from .python-version),
which cannot import apt python3-gi's _gi. Pin .python-version to 3.12, create
and sync the venv with --no-managed-python using /usr/bin/python3, fail setup
if GTK is still unusable, and document the ABI mismatch.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-25 05:54:59 +00:00
Cursor Agent
ba1231c73d Add Linux setup script and clearer native-window diagnostics
Provide desktop/setup_linux.sh for apt + system-site-packages uv venv,
point docs at it, and print Python version plus the real gi/typelib error
when falling back to the browser.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 11:22:09 +00:00
Cursor Agent
63bd3b0f0e Tighten Linux native fallback hint text
Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 11:09:58 +00:00
Cursor Agent
a70793f61a Fix Linux native window when uv venv hides system PyGObject
Isolated uv venvs cannot import apt-installed python3-gi, so native mode
always fell back to the browser. Append system dist-packages and verify
Gtk/WebKit typelibs before deciding native mode is unavailable; document
uv venv --system-site-packages as the durable install option.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 11:09:54 +00:00
Cursor Agent
d1e817f4ac Brand operator UI, shortcut, and exe as New QC Sheet
Keep the xlsx_clean package name; show New QC Sheet in the web window
title/heading, Desktop shortcut, and Windows PyInstaller output.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 11:03:16 +00:00
Cursor Agent
dc097a2da4 Document Linux GTK deps for native window and fall back
Native single-window mode on Linux needs apt GTK/WebKit packages that
uv cannot install. Document them in README/AGENTS, and auto-fall back
to the browser with a clear hint when those libs are missing.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 10:59:14 +00:00
Cursor Agent
d46fe5b6a4 Add modern Desktop icon and bring Excel to front on COM save
Ship a multi-size teal spreadsheet ICO for shortcuts/exe, and after COM
SaveAs maximize Excel and force it to the foreground over the app window.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 09:51:18 +00:00
Cursor Agent
5c6451c32a Open UI in a single native app window by default
Use NiceGUI native mode (pywebview) instead of the default browser so
Desktop launchers get one dedicated window without existing tabs.
Add --browser / --no-browser overrides.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 09:08:29 +00:00
Cursor Agent
afec00b50f Add desktop shortcut and Windows exe packaging
Operators can double-click XlsxClean without using the terminal: Windows
VBS/BAT launchers plus Install-DesktopShortcut, Linux .desktop installer,
and a PyInstaller spec/build script for a standalone Windows exe.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 08:12:44 +00:00
Cursor Agent
1be0c3ca0f Add NiceGUI web UI for set/ink/serial selection
Extract shared create_datasheet() for CLI and web. New xlsx-clean-web
entry point serves a local NiceGUI form with cascading dropdowns while
keeping the existing CLI.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 07:56:12 +00:00
Cursor Agent
2cfd530ced Add cross-platform OOXML backend alongside Windows Excel COM
Linux/macOS default to surgical zip edits that clear/set cells while
preserving queries, styles, and other non-worksheet parts. Windows keeps
the COM + add-in path. Paths remapped via XLSX_CLEAN_ROOT; pywin32 is
Windows-only.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-07-22 06:33:43 +00:00
90823a6f00 update file_data.csv 2026-07-22 09:34:10 +03:30
e3569da2da added ICJ/EH630 2026-02-18 08:46:40 +03:30
e3c6fe8112 begin year 2026 2026-01-07 07:53:08 +03:30
cbdda5f210 fix: pink csv data 2025-10-14 08:41:13 +03:30
1fddd7df4c added ICJ152 & ICJ109 to "file_data.csv" 2025-10-06 13:34:00 +03:30
a520144faf Added beads to kw sheet 2025-08-06 15:14:28 +03:30
3975572f96 fix icj 308 2025-02-11 09:41:07 +03:30
680f3668d4 using ClearContents() function 2025-02-09 15:28:45 +03:30
b7cb7d70cc Empty other Serial rows 2025-02-05 16:45:12 +03:30
3b2aa47c82 WIP 2024-09-25 12:00:07 +03:30
ff2af84c4d WIP 2024-09-14 11:21:47 +03:30
71848c9f72 added inco brown 407 and black 610 2024-08-17 11:55:58 +03:30
a1135e8c79 added inco pink 2024-07-17 11:38:22 +03:30
f998538b54 bring new excel to front and maximise it 2024-06-19 10:00:53 +03:30
3cd99eca5b bugfixes 2024-06-13 13:26:23 +03:30
c60a682d27 replaced openpyxl with pywin32 2024-06-13 12:35:48 +03:30
c4ecebf4b9 edied file_data.csv 2024-06-02 14:14:38 +03:30
117d34273e bugfix 2024-05-26 08:31:33 +03:30
3c6add7583 updated file_data.csv - added pink 2024-05-20 10:44:23 +03:30
fc8c9502e4 Fixed file_data.csv 2024-05-12 09:43:54 +03:30
ecf0e5678e updated file data 2024-05-12 09:21:04 +03:30
c801780fe8 upadated file data 2024-04-20 12:13:09 +03:30
5bbf5e5915 bugfix 2024-04-14 15:06:37 +03:30
diaco soltanpour
73326b86d0 Fixed on windows 2024-04-14 14:20:24 +03:30
bc4da930ff minor fixes 2024-04-11 21:35:54 +03:30
94e99a5b72 initial commit 2024-04-11 21:25:37 +03:30