Commit Graph

334 Commits

Author SHA1 Message Date
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
andrew.ng 1bb7066348 Merge pull request 'Update ModalTerminal.tsx' (#20) from that into main
Reviewed-on: #20
2025-11-28 13:00:41 +11:00
nguyentrungthat f70c553c7f Update ModalTerminal.tsx 2025-11-28 09:00:06 +07:00
andrew.ng 89b0524b15 Merge pull request 'Update ModalTerminal.tsx' (#19) from that into main
Reviewed-on: #19
2025-11-28 12:19:42 +11:00
nguyentrungthat cd3a8b9308 Update ModalTerminal.tsx 2025-11-28 08:17:12 +07:00
andrew.ng 33ba827207 Merge pull request 'Update DrawerControl.tsx' (#18) from that into main
Reviewed-on: #18
2025-11-27 20:28:35 +11:00
nguyentrungthat 654ab5408e Update DrawerControl.tsx 2025-11-27 16:28:16 +07:00
Truong Vo 30b0d25d3d fix show thông tin item line > 8 2025-11-27 14:32:31 +07:00
andrew.ng 79322507a9 Merge pull request 'Add connecting state for line connection process' (#17) from that into main
Reviewed-on: #17
2025-11-27 18:27:54 +11:00
nguyentrungthat 429ec2cd7a Add connecting state for line connection process
Introduces a 'connecting' state to lines during connection attempts, updating both backend and frontend to emit and handle a new 'line_connecting' event. UI now displays a connecting animation, and disables actions for longer durations to improve user feedback. Also adds a POE indicator for switch ports in DrawerControl.
2025-11-27 14:27:37 +07:00
andrew.ng bed6f9c8f7 Merge pull request 'UI improvements and bug fixes for line and switch controls' (#16) from that into main
Reviewed-on: #16
2025-11-27 17:35:02 +11:00
nguyentrungthat d219e0145b UI improvements and bug fixes for line and switch controls
Enhanced CardLine layout and added user CLI usage indicator. Updated info_line font size for better readability. Improved DrawerControl to show 'DISCONNECTED' status when switch is unavailable. Fixed ModalTerminal issue mapping to handle undefined values. Commented out overflowX style in App for layout flexibility.
2025-11-27 13:34:42 +07:00
Truong Vo 449f9d71ef remove thanh scroll và chuyển SN xuống PID 2025-11-27 11:35:25 +07:00
Truong Vo 9af8f19986 show hover nội dung scenario bên phải 2025-11-27 11:22:55 +07:00
Truong Vo 18ce0145cc fix giao diện line 2025-11-27 11:20:10 +07:00
andrew.ng ca32a1df0b Merge pull request 'Refactor BottomToolBar and update user types' (#15) from that into main
Reviewed-on: #15
2025-11-27 14:36:59 +11:00
nguyentrungthat 1b9b18ce3b Refactor BottomToolBar and update user types
Improved BottomToolBar command line UI with better line selection and clearing logic. Updated TUser type to include 'id' and 'email' fields, and fixed DragTabs to support both 'userId' and 'id' for user key mapping.
2025-11-27 10:35:37 +07:00
Truong Vo b5bb90ca4e Fix giao diện select scebario và modal add/edit 2025-11-27 10:26:20 +07:00