Commit Graph
253 Commits
Author SHA1 Message Date
mohmdsdgandCursor f6efeeff3e fix(settings): show Montzar keys when price_provider is empty
Regular settings hid all montzar_* unless price_provider was already
loaded as montzar, so search only found referral_gift_buy_from_montzar.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 21:27:20 +03:30
mohmdsdgandCursor ed326a41d2 fix(settings): show code-managed keys in regular settings panel
Runtime Montzar/price keys visible when can_edit=1 from API (readonly).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 20:15:29 +03:30
mohmdsdgandCursor 6da3f84a89 fix(settings): code-managed keys in advanced panel only
Align can_edit lists with deploy SQL: runtime Montzar/price keys stay in
tenant advanced settings (read-only), not super admin catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:55:41 +03:30
mohmdsdgandCursor 1a8001fb75 fix(price-trigger): SMS-only in admin price trigger editor
Remove email action from form and always show sms in the table column.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:02:46 +03:30
mohmdsdgandCursor ba4557c526 fix(admin): pricing table toTime import and swap support/config menu order
Fix ReferenceError in store price sync log columns and place پیکربندی before چت پشتیبانی in the header menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 14:11:27 +03:30
mohmdsdgandCursor 46c397804f feat(settings): montzar_product_id as select from partner product API
Load products from /admin/montzar/products with searchable select UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 14:02:48 +03:30
mohmdsdgandCursor 022796738d fix(product): place reference adjustment next to zero-price toggle
Reorder pricing grid so تعدیل and قیمت صفر از مرجع sit side by side
below مرجع قیمت and formula sections.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 13:59:23 +03:30
mohmdsdgandCursor db29998e40 fix(product): show formula price beside pricing fields for melted products
Formula section was only in non-melted automatic mode; now appears next to
adjustment fields for melted app/reference/fixed and all non-melted sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 13:57:59 +03:30
mohmdsdgandCursor 2471a447b7 ui(product): use 2-column grid layout for formula/live-price and visibility/TV formula
- Pricing tab: formula section and live price preview side by side in 2-col grid
- Specs tab: visibility switches and TV formula side by side in 2-col grid
- Reduces wasted horizontal space

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 12:28:30 +03:30
mohmdsdgandCursor eeaf0ce94a fix(product): fix dark mode colors for section titles and borders
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 12:25:52 +03:30
mohmdsdgandCursor 0a0d1d8680 ui(product): restructure product specs tab with sections and fix pricing tab gap
- Product specs tab: group fields into bordered sections (اطلاعات پایه, وزن و واحد, تنظیمات نمایش)
- Visibility switches in a compact panel with divider lines
- Weight/unit/inventory fields in same grid row
- Pricing tab: wrap all content in flex-col gap-4
- Remove unnecessary product-editor-panel border from non-melted pricing block

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 12:23:52 +03:30
mohmdsdgandCursor 6cb2488221 ui(product): improve formula sections and group visibility switches
- FormulaPriceSection: compact inline guide with variables and functions
- TvFormulaPriceSection: same compact guide style, remove verbose text
- Product specs tab: group visibility switches (list, assets, TV) in single bordered panel

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 12:17:44 +03:30
mohmdsdgandCursor 30d857bde5 fix(product): add inline guide for TV formula variables and functions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 12:13:16 +03:30
mohmdsdgandCursor f1699f2848 fix(product): simplify TV formula help text and show regular formula for melted products
- Move FormulaPriceSection outside usesMeltedPricing guard so it appears for all product types
- Shorten TV formula tooltip to a single sentence

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 12:06:27 +03:30
mohmdsdgandCursor 2ab99255da feat(product): add show_in_list toggle and TV price formula UI
- show_in_list switch in product editor
- TvFormulaPriceSection component (blue theme) shown when show_on_tv is on
- Form defaults, model type, and submit logic for new fields

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 11:51:57 +03:30
mohmdsdgandCursor c332e9df24 feat(admin): let price alerts pick a product
Show the product on the form and table so each alert is tied to one item.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 22:23:22 +03:30
mohmdsdgandCursor 14c9843abb fix(admin): merge SuperAdmin settings over local can_edit locks
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:57:20 +03:30
mohmdsdgandCursor 808562d3ed feat(admin): add product switch for TV board display
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:17:01 +03:30
mohmdsdgandCursor 69b6a1c4a9 feat(admin): overlay system settings from SuperAdmin program-settings
Fetch /api/public/program-settings with 3-host retry and hide the local
advanced-configuration editor in favor of SuperAdmin.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 16:10:37 +03:30
mohmdsdgandCursor 7440a53c80 feat(admin): signed profit/discount fields for special price packages
Let buy/sell extras be entered as profit or discount so negative values work in the editor and table.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 13:10:59 +03:30
mohmdsdg 8636fd1aea added setting for users 2 2026-08-16 22:03:59 +03:30
mohmdsdg 17dea2a52f added setting for users 2026-08-16 22:00:48 +03:30
mohmdsdg 84b0a4767a added table of co-woeker requests and new features 4 2026-08-16 20:49:40 +03:30
mohmdsdg 7d38ed23e9 added table of co-woeker requests and new features 3 2026-08-16 20:46:48 +03:30
mohmdsdg f192d3e171 added table of co-worker 2026-08-16 20:27:13 +03:30
mohmdsdg 609f6b2fa3 added table 2026-08-16 20:01:54 +03:30
mohmdsdg 27f3a6212a fixsome changes 2026-08-16 14:03:11 +03:30
mohmdsdg 2b27b16296 fix persian number in input 2026-08-14 21:05:11 +03:30
MahdiandCursor 82dc6b82d8 feat(admin): subscription expiry modals and once-per-session SMS warning
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 16:37:28 +03:30
mohmdsdg 5dd9f7db96 fix 2026-08-12 00:59:14 +03:30
MahdiandCursor 97705b4444 fix(admin): honor server kill-switch; stop booting from stale cache
Do not load admin from old get_user cache after version bump/timeout.
Show server-unavailable on 503 and fatal memory responses.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 21:25:40 +03:30
MahdiandCursor 512756348b feat: full-screen lock when server access is blocked
Gate admin boot on server_reachable and show server-unavailable overlay on API 503 for SuperAdmin kill switch.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 15:51:13 +03:30
mohmdsdgandCursor 7c58501268 feat: failover SuperAdmin domains for get_user/get_version
Try adm.montzar, adm.montech, then adm.montest before legacy registry URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 12:13:42 +03:30
MahdiandCursor 035ba50bc0 feat: prefer SuperAdmin get_user/get_version for admin config
Resolve tenant domain (localhost fallback) and query adm.montzar.ir
first for version and user config; refresh components.d.ts types.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 17:42:40 +03:30
mohmdsdgandCursor de97d7caa6 Add customer multi-level referral profit editor and related settings UI.
Expose enable_customer_level_profit in config and let admins edit per-customer level percents from the customers table/mobile sheets.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:48:53 +03:30
mohmdsdgandCursor 4dde172ed7 Add formula price controls to the product editor.
Admins can enable a reference-based formula (P/W/MG) with live calculated unit price preview, matching the colleague-app pricing flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:47:39 +03:30
MahdiandCursor 7e043b24be Show negative SMS wallet warning modal on admin page loads.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 14:13:51 +03:30
mohmdsdg 3ea6b02b47 fix support issue 3 2026-08-06 14:48:53 +03:30
mohmdsdg 62a1d917a8 fix support issue 3 2026-08-05 14:52:18 +03:30
mohmdsdg b759aa9570 fix support issue 2 2026-08-05 14:01:05 +03:30
mohmdsdg 4dcc3c7135 fix support issue 2026-08-05 12:57:05 +03:30
mohmdsdg e8d5dc9f66 added trigger for chat sms 2026-08-04 18:59:52 +03:30
mohmdsdg 45647e7266 added rahimi dashboard 2026-08-03 22:22:39 +03:30
mohmdsdg 82e72b9811 fix some bugs 2026-08-03 11:53:14 +03:30
mohmdsdg 57895c129e fix gift 2026-08-02 16:49:27 +03:30
mohmdsdg 9a975e1cba added fund 2026-08-01 17:30:37 +03:30
mohmdsdg 6a9e5aee47 fix some setting 2026-08-01 16:45:16 +03:30
mohmdsdg 0ff7e1d835 fix pargar and login 2026-08-01 15:55:03 +03:30
mohmdsdg 1aa8f6b867 fix some bugs from chart 2026-08-01 15:54:13 +03:30
mohmdsdg 31836f3f8e Merge remote-tracking branch 'origin/montify' into modular 2026-08-01 15:53:49 +03:30