Commit Graph

18 Commits

Author SHA1 Message Date
c9f7f4e908 release binary 2026-02-08 21:39:59 +03:00
7d671203d7 feat: add timeout utility for database operations
Added a new timeout utility file to help manage database operation timeouts more effectively.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 21:31:41 +03:00
e97cd5048c feat: implement background task system with notifications
- Added background task manager with goroutine execution and panic recovery
- Replaced SSE streaming with background task execution for:
  * Price recalculation (RecalculateAll)
  * Stock import (ImportStockLog)
  * Pricelist creation (CreateWithProgress)
- Implemented unified polling for task status and DB connection in frontend
- Added task indicator in top bar showing running tasks count
- Added toast notifications for task completion/error
- Tasks automatically cleaned up after 10 minutes
- Tasks show progress (0-100%) with descriptive messages
- Updated handler constructors to receive task manager
- Added API endpoints for task status (/api/tasks, /api/tasks/:id)

Fixes issue with SSE disconnection on slow connections during long-running operations
2026-02-08 20:39:59 +03:00
06aa7c7067 docs: add CSV export pattern documentation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 13:14:12 +03:00
9bc01831c9 feat: add pricelist CSV export and improve description display
- Add CSV export functionality for pricelists with download button
- Export includes all pricelist items with proper UTF-8 encoding
- Support both warehouse and estimate pricelist sources
- Remove description column from admin pricing tables
- Show description as tooltip on row hover instead
- Improve table layout by removing redundant column

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 12:26:45 +03:00
ed339a172b fix: prevent duplicate partnumbers in stock mappings table
Add duplicate detection before batch insert of auto-mappings:
- Query existing partnumbers from lot_partnumbers table
- Build case-insensitive set of existing entries
- Filter out duplicates before CreateInBatches
- Also prevent duplicates within single batch

This ensures partnumber uniqueness as primary key requires.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 11:58:13 +03:00
85062e007c feat: add LOT creation, auto-save mappings, disable auto warehouse pricelist
- Add LOT creation functionality in pricing admin
  - New API endpoint POST /api/admin/pricing/lots
  - Modal form for creating new LOT with auto-category detection
  - Creates entries in both lot and qt_lot_metadata tables

- Implement auto-save for stock mappings
  - Auto-save on change for partnumber → LOT mappings
  - Visual feedback (orange during save, green on success, red on error)
  - Works in both main mappings table and import suggestions

- Improve stock import suggestions UI
  - Remove "Причина" column from suggestions table
  - Increase LOT and Partnumber column widths to 33% each
  - Better visual balance in the table layout

- Disable automatic warehouse pricelist creation on stock_log import
  - Import now completes at 100% after stock_log update
  - Manual pricelist creation available via UI when needed
  - Faster import process without auto-generation overhead

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 11:34:43 +03:00
319400106c Restore connection settings modal from top nav 2026-02-08 10:54:31 +03:00
8fbdcb1d86 docs: remove obsolete integration and migration notes 2026-02-08 09:01:59 +03:00
d8954c411c lincense initial commit 2026-02-08 08:57:52 +03:00
88e8655450 chore: ignore releases artifacts 2026-02-08 08:54:48 +03:00
d1ab562282 docs: restore README for current PriceForge runtime 2026-02-07 21:50:57 +03:00
bf5dce9f18 chore: remove remaining QuoteForge/qfs references 2026-02-07 21:49:32 +03:00
641bc5614f chore: refresh pfs binary 2026-02-07 21:47:04 +03:00
22f0ad0e6e ui: switch branding palette to orange 2026-02-07 21:45:36 +03:00
005478ac6b refactor to MariaDB-only runtime and simplify PriceForge v0.1.0 2026-02-07 21:42:26 +03:00
20309d1f0e Fork from QuoteForge → PriceForge
Renamed module path git.mchus.pro/mchus/quoteforge → git.mchus.pro/mchus/priceforge,
renamed package quoteforge → priceforge, moved binary from cmd/qfs to cmd/pfs.
2026-02-07 21:42:26 +03:00
2f94536ed9 Initial commit 2026-02-07 21:40:45 +03:00