TimePicker closes on select without Ok button; send log shows skipped entries from cooldown/max limits.
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace hour-only select with HH:mm picker, show last run and send logs in Jalali, and display scheduled times as HH:mm in the table.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expose run-now and sends APIs in the automations UI, show SMS hour and last run columns, and group advanced settings toolbar actions together.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Fix ReferenceError in store price sync log columns and place پیکربندی before چت پشتیبانی in the header menu.
Co-authored-by: Cursor <cursoragent@cursor.com>
Reorder pricing grid so تعدیل and قیمت صفر از مرجع sit side by side
below مرجع قیمت and formula sections.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
- 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>
- 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>
- 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>
- 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>
- 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>
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>
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>
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>
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>
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>
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>