Commit Graph

78 Commits

Author SHA1 Message Date
nguyentrungthat 91b2bdba7b Update form Summary 2026-05-12 14:22:45 +07:00
nguyentrungthat ef20557635 Update modal confirm 2026-05-04 07:46:58 +07:00
nguyentrungthat 9544ad87e2 Update view modal 2026-04-21 10:04:59 +07:00
nguyentrungthat 1de8ab75a0 Update view modal 2026-04-16 08:58:55 +07:00
nguyentrungthat 2ecb153118 Update confirm before run Physical 2026-04-01 13:31:23 +07:00
nguyentrungthat b715c0773a Update 2026-03-31 16:55:49 +07:00
nguyentrungthat c032a29cdd Update flow physical test va confirm skip test 2026-03-10 15:31:43 +07:00
nguyentrungthat 5305e64453 Update flow test dpelp 2026-03-05 08:52:41 +07:00
nguyentrungthat 3088848b1a Update rule run dpelp và physical 2026-03-04 14:20:54 +07:00
nguyentrungthat d68eca64c8 Emit update_status_ready and filter ready lines
Emit a dedicated 'update_status_ready' event when a LineConnection becomes ready, and stop sending isReady in the 'line_output' payload. On the server side, normalize incoming run_all_dpelp data and filter lineIds to only include lines that are already ready; also bail out early if no eligible lines or station isn't configured to send wiki. On the frontend, initialize line state with isReady, stop deriving readiness from line_output, and listen for the new 'update_status_ready' event to update line readiness in the UI.
2026-02-26 09:47:48 +07:00
nguyentrungthat 05950726bf Update status is ready for line 2026-02-24 09:36:36 +07:00
nguyentrungthat 669c30ca11 Add Issue badge and reset latestScenario
Reset latestScenario when a line disconnects and surface AI-detected issues in the UI. Backend: clear config.latestScenario on disconnect. Frontend: initialize latestScenario in App state, import useEffect and add isShowIssue state in CardLine with an effect that checks line.latestScenario.detectAI.issue (array) to toggle the badge. UI: reorganize feature badges layout and render a red "Issue" pill when an AI-detected issue exists.
2026-02-23 16:34:17 +07:00
nguyentrungthat c644e798c6 Add summary-report debounce and small fixes
Backend: Add debounceSendSummaryReport to LineConnection and snapshotting to debounce sendReportSummary (10 min) to avoid duplicate summary emails; adapt sendReportSummary to accept a snapshot and use snapshot data when available. Reset physicalTest and listFeatureTested on line disconnect and add initConfig helper. Improve PoE/SFP parsing (filter names with '/' and match 'unknown') and adjust report HTML (tested/missing counts, column counts). Add PS_INCOMPATIBLE log rule. Comment out automatic wiki/email send in socket provider. Physical test service: suppress getFormReport call on completion and include PoE/SFP breakdown in the HTML report counts. Frontend: fix terminal open logic to check userOpenCLI instead of userEmailOpenCLI and display device MAC in the terminal modal.
2026-02-23 11:20:56 +07:00
nguyentrungthat 02fdbcb166 Update 2026-02-11 14:38:10 +07:00
nguyentrungthat 7d3c5ad069 Clear terminal scrollback; format report output
Append a CLEAR_TERMINAL_SCROLL_BACK marker on disconnect and consume it in the frontend to effectively clear terminal scrollback. Backend: add marker on client close and in socket provider, import convertFromKilobytesString and use it to format MEMORY and FLASH values in the report, and compute/list missing ports (separating PoE vs SFP) in the summary HTML. Frontend: emit the marker on line_disconnected and have TerminalXTerm replace the marker with multiple newlines (varying by miniSize) before writing/initializing terminal content to scroll to bottom.
2026-02-11 10:11:34 +07:00
nguyentrungthat e962437c49 Update App.tsx 2026-02-09 14:09:51 +07:00
nguyentrungthat 4bffffa920 Update loading khi mới dô trang 2026-02-09 11:34:04 +07:00
nguyentrungthat 4369d722ef Update form report summary fully tested 2026-02-04 14:45:09 +07:00
nguyentrungthat a88ff44ebd Update modal terminal 2026-01-16 10:30:13 +07:00
nguyentrungthat c4a5b1c499 Update disable Station 2026-01-15 15:39:43 +07:00
nguyentrungthat 38b6cb4981 Update load License 2026-01-13 10:54:12 +07:00
nguyentrungthat 5586f8f930 Update load license 2026-01-09 16:08:50 +07:00
nguyentrungthat e4687f27f9 Update physical test and load ios 2025-12-31 14:06:49 +07:00
nguyentrungthat b1b4f1b907 Update physical test 2025-12-26 16:09:52 +07:00
nguyentrungthat 2f484e19b6 update physical test 2025-12-25 16:17:52 +07:00
nguyentrungthat fd5d1628a5 Update note SN sau khi run dpelp và api heal check 2025-12-23 16:34:21 +07:00
nguyentrungthat 6e282c42bd Enable scenario run and reporting, adjust UI elements
Uncommented code to run scenarios and send reports via email and Zulip in the backend, and commented out the scenario confirmation modal in the frontend. Also adjusted the height of the ScrollArea in the BottomToolBar component for improved UI layout.
2025-12-18 08:12:23 +07:00
nguyentrungthat 7c7778a0e1 Update run scenario DPELP theo flow mới 2025-12-17 16:45:33 +07:00
nguyentrungthat 2729feed4e Update modal Scenario 2025-12-15 17:10:50 +07:00
Truong Vo ae09fe1917 Fix giao diện tollbar 2025-12-15 11:10:11 +07:00
Truong Vo d4ae00dc37 update giao diện bottom bar 2025-12-12 17:05:19 +07:00
Truong Vo 8b986232e6 update thanh bottom bar 2025-12-12 14:27:01 +07:00
nguyentrungthat 086c440386 Update gom lại các thư mục, add input history 2025-12-06 10:36:59 +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 8ddccf6586 Update station connect 2025-12-04 10:00:56 +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 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
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 30b0d25d3d fix show thông tin item line > 8 2025-11-27 14:32:31 +07: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
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 18ce0145cc fix giao diện line 2025-11-27 11:20:10 +07: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
Truong Vo 065900f48b Update nút mở drawer add/edit scenario 2025-11-26 16:49:20 +07:00
nguyentrungthat 1a77075145 Update App.tsx 2025-11-25 16:12:25 +07:00
nguyentrungthat 36d7438055 Refactor log handling and improve output buffering
Updated log file naming to include station name and IP, and refactored appendLog to use new format. Enhanced frontend output buffering for lines to reduce UI update frequency. Improved connection retry logic for switch connections and adjusted socket.io provider timeouts. Updated DrawerLogs format description and removed unnecessary state changes in TerminalXTerm.
2025-11-25 11:32:07 +07:00
nguyentrungthat e8f5a9f67a Add baud rate management for line connections
Introduces baud rate configuration and detection for line connections in both backend and frontend. Backend now supports setting and checking baud rates via socket events, and frontend provides UI controls for users to select or input baud rates. Real-time updates are handled through new socket events, improving line management and visibility.
2025-11-24 16:42:20 +07:00
nguyentrungthat 580c415b97 Enhance port filtering and UI in DrawerControl
Added 'Config interface' filter option and refactored port filtering logic in DrawerControl. Improved UI layout with fieldsets and adjusted heights in App and BottomToolBar for better visual consistency.
2025-11-24 11:17:32 +07:00