Skip to content

Add durable Streamlit CSV review desk with atomic approval - #450

Draft
sdairs wants to merge 3 commits into
mainfrom
codex/csv-review-desk
Draft

sdairs wants to merge 3 commits into
mainfrom
codex/csv-review-desk

Conversation

@sdairs

@sdairs sdairs commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Add a trusted local Streamlit workbench for uploading catalogue CSVs, correcting durable staged rows, and approving a complete batch. Server-generated row identities and locked expected revisions reject stale edits/approval; a single PostgreSQL transaction publishes new SKUs without overwriting existing catalogue items. Native XSRF/CORS protections remain enabled and only the thread-safe engine is cached.

Validation: six CSV unit cases, nine real Cloud cases (all passing) covering observed lock contention, competing approval, edit/approve ordering, a late SKU conflict with total rollback, constraints, restricted roles and certificate/hostname TLS controls. Actual Chromium upload/editor flow and two-browser stale-click rejection, desktop/mobile screenshots, process restart readback, fresh Alembic up/down/up and an empty-environment locked install passed. Ruff/compilation and source/private-value agreement passed. Earlier browser helper timing/method failures are preserved in private programme evidence.

The app is bound to loopback without application authentication. Uploads and reviews are bounded; all connected operators share authority. Companion article and infrastructure credentials remain local, outside this PR.

Browser-helper follow-up: Python Playwright is now pinned to 1.56.0. Only helper requirement pins changed; runtime application code/dependencies are unchanged. Clean isolated native-Linux installs, pip check and Chromium launch/DOM/screenshot smoke passed for the updated helper. Full Cloud/application acceptance remains recorded at f24a7eaaa018aa3fabe354390a74b5e71394e93c; it was not rerun for this test-dependency-only follow-up.

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