Commit Graph
139 Commits
Author SHA1 Message Date
mohmdsdg b78fbbdc4e Hide after-hours prices and skip stock checks when the shop is not a store. 2026-09-11 00:49:29 +03:30
mohmdsdg 0da9f68353 better theme for tv 2026-09-10 19:46:35 +03:30
mohmdsdgandCursor d4e3a99e61 Let melted products trade without store inventory, and split TV sell prices with extra tickers.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 15:10:10 +03:30
mohmdsdgandCursor c2f6f9d226 fix(register): hide or require referral from settings like other apps
Also keep exact trade grams from rial and poll colleague wait every 10s.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 21:03:32 +03:30
mohmdsdgandCursor 0f6d8b37f4 Match SSE ping comments to the 20s server heartbeat.
Rename the equals price-trigger condition to reach-this-price.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 18:11:26 +03:30
mohmdsdgandCursor 5015fb2838 fix(trade): keep exact grams when the input shows rounded display
Percent and cash conversions no longer lose precision by rounding the gram field to three decimals.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 14:56:14 +03:30
mohmdsdgandCursor e9abc9840a Close colleague wait modal when order is no longer pending.
Settle on pending:false or any non-waiting status, and stop polling after a max wait so rejected orders do not leave the overlay stuck.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 22:49:32 +03:30
mohmdsdgandCursor 47beece729 fix(logo): keep absolute nerkh avatar URLs intact
Stop rewriting legacy upload hosts to SuperAdmin; only prefix relative /uploads/ paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 20:10:11 +03:30
mohmdsdgandCursor 7ab391d48f fix: rewrite nerkh logo URLs to the SuperAdmin host
App logos now follow get_user.user.avatar instead of leftover nerkh.gold paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 16:56:54 +03:30
mohmdsdgandCursor 065a0b3178 fix(tv): show board prices from tv_price instead of list price
The monitor uses the TV formula field so the catalog list price stays unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 21:35:54 +03:30
mohmdsdgandCursor 4104235546 feat: landing settings helper plus wallet and profile UX fixes
Expose landing_* readers, fix OTP contrast on dark modal, and keep auth badge/card submit loading consistent.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 17:02:22 +03:30
mohmdsdgandCursor bc2acc3eb6 fix(trade): use stream closed and trade_open instead of device clock
Changing the phone time can no longer open a product that the server has closed.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 12:58:19 +03:30
mohmdsdgandCursor 2d3c590c71 fix(products): ignore foreign SSE catalogs
Drop list events from other shops and honor show_in_list so the grid stops jumping.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 10:58:54 +03:30
mohmdsdgandCursor cb9762b0d6 fix(products): treat SSE list as full active catalog
Stop keeping deactivated products when the stream shrinks, update prices in place to avoid grid flicker, and only keep admin-active items.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 10:12:16 +03:30
mohmdsdgandCursor 3e15cb1481 fix(products): hide empty categories and stabilize catalog list
Only show active products, keep partial SSE lists from dropping items, and hide category tabs with no products.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 09:55:32 +03:30
mohmdsdg 57780ae99c fix bug 2026-09-04 01:50:59 +03:30
mohmdsdgandCursor 3dda7fcf60 fix(build): drop missing transactions page data import.
Ghatreh lacks useTransactionsPageData; the dynamic import broke Vite production builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 00:43:00 +03:30
mohmdsdgandCursor bddd591d63 feat(boot): use boot-loader as splash with cached tenant logo
Remove the Vue splash overlay and unused duplicate public logos from dist output.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 20:24:44 +03:30
mohmdsdgandCursor 0d19412c96 feat(trade): wait on colleague order until status is final
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:55:08 +03:30
mohmdsdgandCursor 164bb267f1 fix(trade): show three gram decimals when converting from rial
Keep the rial-locked order amount unchanged; only the gram input display is capped.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 15:45:13 +03:30
mohmdsdgandCursor 8929501be5 Show pending-admin messages from profile and bank-card save responses.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 21:35:11 +03:30
mohmdsdgandCursor 383d371d00 Update auto-generated Vue component type declarations.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 21:19:27 +03:30
mohmdsdgandCursor 5b06034255 Show accounting adjust notes on transactions and polish input/lottie boot.
Transaction detail surfaces note text for adjustments; Persian digit input and local Lottie preload are included.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 21:18:29 +03:30
mohmdsdgandCursor 449fad5ed1 fix(price): delay empty-quote UI until settle window
Avoid flashing no-quote too early while waiting for live/SSE price after first empty response.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 18:47:42 +03:30
mohmdsdgandCursor 059ba0b565 fix(files): join storage URLs onto /server so public images load
Relative storage paths were resolved on the SPA host instead of the API, so uploaded files 404'd.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 18:01:25 +03:30
mohmdsdgandCursor 4675a5b5e3 fix(home): show quote skeleton while loading and harden auth/images
Prefer server quote status, avoid false no-quote before ready, toast on 401 re-login, and keep product/banner image URLs absolute.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 16:59:29 +03:30
mohmdsdgandCursor ff3a1cb00b fix(products): absolutize image URLs and preserve them on SSE merge
Relative full_src now uses node_server, and empty live-list file payloads no longer wipe catalog images.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 20:49:53 +03:30
mohmdsdgandCursor 29579f80d3 fix(products): keep newly uploaded image when SSE list is stale
The live product stream was replacing the catalog with an older payload, so the new photo flashed then jumped back. Keep the newer file_id and stop resetting the img on unrelated price ticks.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 16:14:49 +03:30
mohmdsdgandCursor 16ade71598 feat(user): gate menus by SuperAdmin flags and show physical delivery
Hide fund/earn/gift entries when access is off, add matching route guards, and surface physical delivery instead of price alert on mobile profile.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 14:19:26 +03:30
mohmdsdgandCursor 2238a34c53 fix(price): hide stored fallback when last-price display is off
Treat only live quote sources as open; a leftover database price should not stay on screen after the admin switch is turned off.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 03:01:10 +03:30
mohmdsdgandCursor ea71591557 fix(price): apply live trading-hours settings without refresh
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 02:29:14 +03:30
mohmdsdg e87ba066db feat(user): about software page, enamad badge, and deal sheet UI polish
Add public about-software flow, login-only enamad, and deal buy/sell UI refinements for the store user app.
2026-08-24 19:39:07 +03:30
mohmdsdg bb4bcdf600 fix tv 3 2026-08-22 22:35:10 +03:30
mohmdsdg 1171390996 fix tv 2026-08-22 22:05:59 +03:30
mohmdsdg be59cca162 fix tv 2026-08-22 21:50:39 +03:30
mohmdsdgandCursor 444178df05 feat: add gold day calculator and polish desktop UI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 21:35:18 +03:30
MojtabaSoumi d2737a4998 1405/05/29-add tv page 2026-08-20 10:06:55 +03:30
mohmdsdgandCursor 866ffbf774 fix(fee): default service fee to 0 when setting is empty
Read fee_service_charge_percentage only; no implicit 0.01 fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:55:42 +03:30
mohmdsdgandCursor 66807fca8d fix(price-trigger): SMS-only alerts in ghatreh user app
Match khaneghi_user price trigger SMS-only behavior and UI copy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:02:46 +03:30
mohmdsdgandCursor 47ac13b114 feat: mobile keyboard auto-scroll for input fields
- initMobileInputKeyboardScroll utility using visualViewport API
- mobile-keyboard-scroll.less for scroll-margin and padding adjustments

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 11:52:00 +03:30
mohmdsdgandCursor e578ba521d feat: add product select to price alerts
Customer can pick a product when creating an alert and see it on the card.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 22:23:25 +03:30
mohmdsdgandCursor e01192fb5e feat: align fee summary, special pricing and support chat with modular
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:57:22 +03:30
mohmdsdgandCursor e9c5830d4e fix: merge SuperAdmin settings over local can_edit locks
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:57:22 +03:30
mohmdsdgandCursor 9d391aeb95 feat: show selected products on public /tv board
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:16:59 +03:30
mohmdsdgandCursor a9d0cba909 feat: load program-settings from SuperAdmin with 3-host failover
Use /api/public/program-settings only and retry montzar/montech/montest
three rounds before showing the bootstrap error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 16:10:35 +03:30
mohmdsdgandCursor 5d3ca82236 feat: align piggy, support chat and numeric input with modular app
Persian keyboards send ٫ ، and / as decimal or thousand separators, so amount
and weight fields now normalize input before parsing. Support chat reopens an
existing thread instead of starting a new one, and axios surfaces the server
message on failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 22:17:17 +03:30
mohmdsdgandCursor d2183c9a3c feat: failover SuperAdmin domains for get_user/get_version
Replace nerkh.gold with adm.montzar/montech/montest and prefer last successful URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 12:13:42 +03:30
MojtabaSoumi 4361e71030 1405/05/15-change redirect route 2026-08-06 11:54:35 +03:30
mohmdsdg 46807e3089 added gholak 2026-08-03 22:36:23 +03:30
mohmdsdg d6608283f6 fix some bugs 2026-08-03 11:52:44 +03:30