Skip to content

Conversation

Mirag1993
Copy link

About The Pull Request

Autolate 516 fix

Why It's Good For The Game

Changelog

🆑

/:cl:

Mirag1993 and others added 10 commits September 24, 2025 01:29
Фикс карго консолей для 516 (версия2)
Убираю загогулину
Signed-off-by: Mirag1993 <145050764+Mirag1993@users.noreply.github.com>
Fixed premature cart clearing on purchase failure - Cart now only clears after successful server confirmation
Fixed search filter errors - Added proper array validation and error handling in search function
Fixed cart item limit validation - Proper blocking of add-to-cart buttons when limit reached
Added async purchase processing - Purchase button shows "Processing..." state during server communication
Added server-controlled behavior constants - Cart limits and search limits now managed from DM code
Added purchase state tracking - UI blocks interactions during purchase to prevent double-submissions
Centralized constants management - Moved max_cart_items, search_results_limit from client to server
Improved data validation - Enhanced validateData() function with proper fallbacks
Enhanced error handling - Added try-catch blocks for async operations
Better separation of concerns - Client waits for server response before state changes
Applied DIY, KISS, YAGNI principles - Removed code duplication, simplified logic, eliminated premature actions
Improved TypeScript types - Added server constants to Data interface
Enhanced search functionality - Search now only matches item names (removed description matching)
Better state management - Added purchasing state for proper async handling
Fixed client-server communication - Proper async/await pattern for purchase operations
Implemented single source of truth - All behavior constants now in DM code
Improved UI responsiveness - Visual feedback during async operations

(Короче наговнокодили , надо писать карго консоли с нуля)
findtext(D.name, params["to_search"]) is case-sensitive
selfClear attribute causes UX confusion
useLocalState is deprecated (says in your pr)
DM ui_data logic doesn't properly handle search result display
@Celadon-Bot Celadon-Bot added 💬 TGUI Кто-то решил потрогать интерфейсы 🎨 Спрайты 🎨 Есть спрайты 🔊 Звуки 🔊 Изменения звуков 🧱 Код 🧱 Изменения .dm файлов 🪓 ТРОГАЛИ CORE-CODE 🪓 Ты трогал офовский кор код! Внимание! labels Sep 27, 2025
@github-actions github-actions bot requested a review from Vairkharst September 27, 2025 19:17
@KOCMODECAHTHUK KOCMODECAHTHUK changed the title Autolate 516 fix [TM-DEV] Autolate 516 fix Sep 28, 2025
@KOCMODECAHTHUK KOCMODECAHTHUK added the ! TМ ! PR в тестировании на ДЕВ-сервере label Sep 28, 2025
@Mirag1993 Mirag1993 marked this pull request as draft September 28, 2025 20:03
Autolate fix 2
@KOCMODECAHTHUK KOCMODECAHTHUK removed the ! TМ ! PR в тестировании на ДЕВ-сервере label Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 Спрайты 🎨 Есть спрайты 💬 TGUI Кто-то решил потрогать интерфейсы 🔊 Звуки 🔊 Изменения звуков 🧱 Код 🧱 Изменения .dm файлов 🪓 ТРОГАЛИ CORE-CODE 🪓 Ты трогал офовский кор код! Внимание!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants