Commit Graph

151 Commits

Author SHA1 Message Date
nguyentrungthat 086c440386 Update gom lại các thư mục, add input history 2025-12-06 10:36:59 +07:00
nguyentrungthat 7e91bc8d85 Update socket_io_provider.ts 2025-12-05 10:11:10 +07:00
nguyentrungthat b817159757 Update ButtonAction.tsx 2025-12-05 09:51:51 +07:00
nguyentrungthat 11673ffc13 Update ButtonAction.tsx 2025-12-05 09:39:02 +07:00
nguyentrungthat 67d8eabc07 Update ButtonAction.tsx 2025-12-05 09:30:40 +07:00
nguyentrungthat f0b1a09fd4 Update run dpelp 2025-12-05 09:27:43 +07:00
Truong Vo 637bdfa16b Khi Delete scenario k tắt modal add/edit 2025-12-05 09:19:46 +07:00
nguyentrungthat cf6a950dcb Update 2025-12-05 08:52:50 +07:00
nguyentrungthat cd2c511afc Pass stationId prop to Drawer controls
Refactored DrawerAPCControl and DrawerSwitchControl components to receive stationId as a prop instead of relying on stationAPI.id. Updated App and BottomToolBar to pass stationId, ensuring correct station context for socket event handling.
2025-12-05 08:37:52 +07:00
nguyentrungthat 7d2c20c61e Update App.tsx 2025-12-05 08:31:11 +07:00
nguyentrungthat 5d7c10ca4d Update 2025-12-05 07:59:13 +07:00
nguyentrungthat b75c3e3697 Update switch 2025-12-04 17:06:47 +07:00
nguyentrungthat d8c58e5361 Merge branch 'main' into that 2025-12-04 16:37:31 +07:00
nguyentrungthat ab1ff30f12 Update save field send wiki 2025-12-04 16:37:24 +07:00
Truong Vo 0f5c878dd4 Fix search 2025-12-04 16:10:21 +07:00
nguyentrungthat 2ad1ee195f Update send Wiki 2025-12-04 15:54:18 +07:00
Truong Vo 17e5aad8d9 Update input search list logs 2025-12-04 14:59:44 +07:00
nguyentrungthat cbbfd4b1df Update logging DPELP 2025-12-04 13:35:16 +07:00
nguyentrungthat f71f18393e Update bất đồng bộ 2025-12-04 10:23:54 +07:00
nguyentrungthat da8c0f418b Update line_connection.ts 2025-12-04 10:07:27 +07:00
nguyentrungthat 8ddccf6586 Update station connect 2025-12-04 10:00:56 +07:00
Truong Vo 4d9c6abc89 Hiệu chỉnh thanh bottom bar gọn hơn 2025-12-04 08:26:13 +07:00
Truong Vo ef57da0154 Thên button edit scenarios ở ngoài (góc trái trên) 2025-12-03 14:57:17 +07:00
nguyentrungthat 237a514ae1 Update socket_io_provider.ts 2025-12-03 13:16:13 +07:00
nguyentrungthat 8cf801d964 Updaet wiki 2025-12-03 11:37:31 +07:00
Truong Vo ae01929bf2 Nút copy all pid+sn: Đổi format copy 2025-12-03 08:49:09 +07:00
nguyentrungthat b9fbb3f7b7 Improve connection retry logic and error handling
Refactored APC, Line, and Switch connection services to reset retry counters after max retries and added retry logic on disconnect events. Enhanced LineConnection to accept a clear line handler and implemented a reconnect method. Wrapped the 'run_all_dpelp' event in socket_io_provider with error handling to prevent crashes during wiki post operations.
2025-12-02 16:12:23 +07:00
Truong Vo 46ac79b94f fix 2025-12-02 15:05:56 +07:00
Truong Vo ae52635c2c Bổ sung màu mới cho nút copy pid+sn 2025-12-02 15:03:00 +07:00
Truong Vo e119d9c831 chức năng copy ở tất cả các view có PID, SN, full PID + SN 2025-12-02 14:59:48 +07:00
nguyentrungthat 68b217f769 Merge branch 'main' into that 2025-12-02 14:23:43 +07:00
nguyentrungthat 997e9b2a1b Add history tracking to Line model and update CLI actions
Introduces a 'history' column to the Line model and database, storing line history as a JSON string. Updates line_connection service to persist history and extends Redis cleanup to 96 hours. Refactors BottomToolBar and ButtonAction components to use selectedLines for CLI actions and adjusts command sequences.
2025-12-02 14:23:35 +07:00
Truong Vo a70ad77ae4 bảng tổng hợp thông tin history 2025-12-02 11:22:17 +07:00
nguyentrungthat ffad475c2b Update format data gửi wiki 2025-12-02 11:19:24 +07:00
Truong Vo 1be935a805 Fix scroll danh sách cuối station 2025-12-02 09:42:19 +07:00
Truong Vo c532e78093 fix 2025-12-02 09:08:58 +07:00
Truong Vo 13a3788c4a Merge branch 'main' of https://gitea.nswteam.net/andrew.ng/ATC_SIMPLE 2025-12-02 09:00:01 +07:00
Truong Vo 6b787c8f86 fix 2025-12-02 09:00:00 +07:00
nguyentrungthat 075ceb7de4 Add running scenario status to line connections
Implemented real-time tracking and display of running scenarios for line connections. Backend now emits 'running_scenario' events, and frontend components show the current scenario being executed. Also improved switch port status parsing and ensured terminal scrolls to bottom on open.
2025-12-02 08:55:57 +07:00
Truong Vo f60be2f543 fix chức năng history 2025-12-02 08:49:54 +07:00
nguyentrungthat 77027d4f8a Implement DPELP batch run and result aggregation
Added backend and frontend support for running DPELP scenarios on all lines of a station and aggregating results. Introduced a new socket event 'run_all_dpelp', a helper for formatting line results, and logic to post results to a wiki endpoint. Also updated scenario command delays and improved overlay positioning logic in the UI.
2025-12-01 16:49:19 +07:00
Truong Vo 3e1ad11e72 Bổ sung khoảng cách trống 60% mới scroll line + bổ sung last 72h 2025-12-01 16:16:49 +07:00
nguyentrungthat 9c38adb69e Add terminal text color configuration modal
Introduces ModalConfig component for customizing terminal text color, accessible from DragTabs via a new settings icon. TerminalXTerm now reads the color from localStorage, allowing user-selected colors to persist across sessions.
2025-12-01 12:03:58 +07:00
nguyentrungthat b012a26c47 Improve terminal scroll and connection status handling
Added custom scroll styling for the terminal viewport and improved connection status management by introducing a 'connecting' state in socket event handlers. Enhanced ModalHistory layout for better readability and adjusted key generation in App.tsx for grid columns.
2025-12-01 10:06:38 +07:00
Truong Vo 030ebe9fd6 fix 2025-11-28 16:05:40 +07:00
nguyentrungthat 78f9ca1aa1 Update ModalHistory.tsx 2025-11-28 15:57:12 +07:00
nguyentrungthat 2ba35743fd Refactor ModalHistory time filtering and UI
Adjusted time period logic in ModalHistory to use correct time ranges for filtering history data. Improved code formatting, grouping, and UI rendering for station history. Added validation in backend addHistory to ensure pid and sn are present before saving history items.
2025-11-28 15:40:33 +07:00
Truong Vo 6f8aa1d69b fix 2025-11-28 15:23:23 +07:00
Truong Vo 5fb9c14db5 Thực hiện page History 2025-11-28 11:39:35 +07:00
nguyentrungthat 40beb16f6f Update DrawerControl.tsx 2025-11-28 09:09:22 +07:00