Commit Graph

317 Commits

Author SHA1 Message Date
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
andrew.ng 3fedaa33de Merge pull request 'Refactor CLI close logic and comment out debug log' (#14) from that into main
Reviewed-on: #14
2025-11-27 14:21:51 +11:00
nguyentrungthat 1ee447d2c7 Refactor CLI close logic and comment out debug log
Commented out the debug log in LineConnection's write method for cleaner output. Updated App.tsx to close CLI only for lines in the currently active station tab, improving accuracy when switching tabs.
2025-11-27 10:21:13 +07:00
andrew.ng dc28f7f2e1 Merge pull request 'Improve APC and switch control validation and logging' (#13) from that into main
Reviewed-on: #13
2025-11-27 14:01:10 +11:00
nguyentrungthat 68411ef611 Improve APC and switch control validation and logging
Added console logs for command and scenario execution in line_connection.ts for better traceability. Changed socket_io_provider.ts to save state every 10 seconds instead of 60. Updated DrawerControl.tsx to disable controls and show status messages when APC or switch IPs are unavailable or not connected, improving UI feedback and preventing invalid actions.
2025-11-27 10:00:45 +07:00
andrew.ng 3415af6eb0 Merge pull request 'Refactor BottomToolBar UI and remove debug log' (#12) from that into main
Reviewed-on: #12
2025-11-27 12:53:31 +11:00
nguyentrungthat f2a78c76d2 Refactor BottomToolBar UI and remove debug log
Removed a console.log statement from line_connection.ts to clean up debug output. Refactored BottomToolBar.tsx for improved layout, spacing, and usability, including changes to selected line display, button arrangement, and input handling for better user experience.
2025-11-27 08:53:06 +07:00
Truong Vo 065900f48b Update nút mở drawer add/edit scenario 2025-11-26 16:49:20 +07:00
andrew.ng df25b5db3f Merge pull request 'Add AI log analysis and history tracking for lines' (#11) from that into main
Reviewed-on: #11
2025-11-26 20:31:26 +11:00
nguyentrungthat e0725cc00f Add AI log analysis and history tracking for lines
Introduces AI-based log analysis to summarize issues and status in network device logs, storing results in the latestScenario.detectAI field. Implements history tracking for line inventory changes using Redis, with backend and socket.io support for retrieving and displaying history. Updates frontend components to show AI analysis results and improve control button states.
2025-11-26 16:30:53 +07:00
Truong Vo 6f785644be Update modal select scenario 2025-11-26 14:59:55 +07:00
joseph le 55bcc055ea change gitignore 2025-11-26 08:41:19 +07:00
andrew.ng d1d77a3d9a Merge pull request 'Update App.tsx' (#10) from that into main
Reviewed-on: #10
2025-11-25 20:13:15 +11:00
nguyentrungthat 1a77075145 Update App.tsx 2025-11-25 16:12:25 +07:00
andrew.ng b255b4e940 Merge pull request 'Update BottomToolBar.tsx' (#9) from that into main
Reviewed-on: #9
2025-11-25 19:59:30 +11:00
nguyentrungthat 608b63f203 Update BottomToolBar.tsx 2025-11-25 15:59:08 +07:00
andrew.ng 10af102bc2 Merge pull request 'Update BottomToolBar.tsx' (#8) from that into main
Reviewed-on: #8
2025-11-25 19:44:20 +11:00
nguyentrungthat e6e430e7ff Update BottomToolBar.tsx 2025-11-25 15:44:08 +07:00