Commit Graph

137 Commits

Author SHA1 Message Date
nguyentrungthat 57e91bc422 Update physical test, load IOS 2026-01-19 09:28:13 +07:00
nguyentrungthat f6620edc35 Update load license 2026-01-15 09:52:54 +07:00
nguyentrungthat 38b6cb4981 Update load License 2026-01-13 10:54:12 +07:00
nguyentrungthat a9dce43ab2 Update select license 2026-01-12 16:33:07 +07:00
nguyentrungthat 5586f8f930 Update load license 2026-01-09 16:08:50 +07:00
nguyentrungthat 5afc8701ab Update folder get ios 2026-01-08 10:34:29 +07:00
nguyentrungthat 429c570688 Update line_connection.ts 2026-01-07 16:47:58 +07:00
nguyentrungthat 8580f3c88a Update line_connection.ts 2026-01-07 16:04:35 +07:00
nguyentrungthat 28059f85ed Update physical test, load ios 2026-01-07 16:04:24 +07:00
nguyentrungthat 07cfde8c15 Update line_connection.ts 2026-01-06 16:46:29 +07:00
nguyentrungthat d2621ca86c Update line_connection.ts 2026-01-06 08:51:36 +07:00
nguyentrungthat 175a7d04e2 Update 2026-01-06 08:44:51 +07:00
nguyentrungthat 250ea1421b Update line_connection.ts 2026-01-06 07:49:07 +07:00
nguyentrungthat e14d4ca216 Update load IOS switch 2026-01-05 16:59:00 +07:00
nguyentrungthat f160cd2905 Update send report Load IOS 2026-01-05 09:28:00 +07:00
nguyentrungthat 5e22f4ea25 Update 2025-12-31 16:48:37 +07:00
nguyentrungthat e4687f27f9 Update physical test and load ios 2025-12-31 14:06:49 +07:00
nguyentrungthat ef1ba4ac99 Update scenario load ios 2025-12-30 16:04:24 +07:00
nguyentrungthat dd32246f9f Update line_connection.ts 2025-12-27 10:10:33 +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 ab7db61608 Update line_connection.ts 2025-12-24 16:18:58 +07:00
nguyentrungthat 42f67e5390 Enhance terminal clear options and update note handling
Added a 'Clear (scrollback)' option to the terminal modal, allowing users to clear only the scrollback buffer without emitting a clear event. Updated backend and helper logic to use 'testNotes' instead of 'notes' for serial number updates, and improved note formatting with timezone support. Also improved email content formatting and error reporting.
2025-12-24 14:27: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 48a50b5628 Improve log handling and email reporting
Refactored log buffer management to use 'allBuffer' for complete log storage and updated email content to include raw logs. Enhanced log table formatting and removed status from email header. Commented out interface up/down rules in helper.ts to adjust log rule detection.
2025-12-23 09:36:46 +07:00
nguyentrungthat 0af1cd8747 Add email reporting for test errors and AI log analysis
Introduces functions to format test errors and AI log analysis as HTML tables and send them via email. Adds helper utilities for error mapping and HTML escaping, and updates types to support structured error rows. Also increases the log check interval and refactors buffer management for improved clarity.
2025-12-22 16:54:02 +07:00
nguyentrungthat 744472f3da Update 2025-12-20 10:13:33 +07:00
nguyentrungthat b9598f9351 Refactor log rule handling and enhance test session logic
Replaces per-rule application with a unified error-based approach in log processing. Expands and clarifies log rules, introduces deduplication and error counting in TestSession, and updates types to support richer error and result reporting. Improves final result output for better clarity and debugging.
2025-12-19 15:42:02 +07:00
nguyentrungthat b8ab1f0583 Update 2025-12-19 12:02:16 +07:00
nguyentrungthat 52ef8f192f Update line_connection.ts 2025-12-18 15:23:55 +07:00
nguyentrungthat fef82cb233 Enhance scenario detection and tracking logic
Updated LineConnection to track processed scenario IDs and prevent duplicate scenario detection by passing a list of previously detected scenarios to detectScenarioByModel. Modified detectScenarioByModel to skip scenarios already in the list. Added a delay in waitUntilAllReady to ensure readiness before proceeding.
2025-12-18 09:00:03 +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 7528da2f00 Add scenarioName to run scenario actions and logs
Pass scenarioName from frontend to backend when running scenarios, and include it in log titles, email subjects, and Zulip messages. Also, expand command matching in template utilities and update default '[ENTER]' handling in line_connection. Minor logging improvements included.
2025-12-16 15:37:16 +07:00
nguyentrungthat 4a671658ff Update 2025-12-15 14:11:50 +07:00
nguyentrungthat 1d0a90f2cf Update config scenarios 2025-12-15 11:33:45 +07:00
nguyentrungthat 92cb59cebc Update scroll terminal 2025-12-12 13:51:12 +07:00
nguyentrungthat 117d982c4d Update add log switch, apc 2025-12-11 09:00:58 +07:00
nguyentrungthat 2bc1338316 Update format send zulip 2025-12-09 17:09:23 +07:00
nguyentrungthat 4e5099aea8 Update send zulip 2025-12-08 16:30:17 +07:00
nguyentrungthat f0b1a09fd4 Update run dpelp 2025-12-05 09:27:43 +07:00
nguyentrungthat cbbfd4b1df Update logging DPELP 2025-12-04 13:35:16 +07:00
nguyentrungthat da8c0f418b Update line_connection.ts 2025-12-04 10:07:27 +07:00
nguyentrungthat 8cf801d964 Updaet wiki 2025-12-03 11:37:31 +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
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
nguyentrungthat ffad475c2b Update format data gửi wiki 2025-12-02 11:19:24 +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 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
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
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 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
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
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
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
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 f695062ec4 Enhance switch and APC controls, UI improvements
Refactored switch port restart logic to use turnPortOff/on methods. Improved socket communication for switch port status and clear line actions. Updated DrawerControl and ModalTerminal to streamline APC and switch controls, added filtering and persistent view options for switch ports, and improved UI consistency. Fixed ticket creation logic and enhanced terminal and toolbar layouts for better usability.
2025-11-20 14:39:38 +07:00
nguyentrungthat 1e058636b2 Sync line config updates and improve APC control
Added socket event handling to update line configuration in real time between frontend and backend. Improved APC outlet control in the terminal modal, including validation and user feedback. Refactored BottomToolBar and related components to share active tab state, and fixed command formatting. Minor bug fixes and UI improvements for terminal and scenario actions.
2025-11-19 16:50:12 +07:00
nguyentrungthat cbc4a8c9b0 Add ticket management API and update baud rate handling
Introduces a new TicketsController and Ticket model to support ticket CRUD operations via new /api/ticket routes. Updates line_connection service to improve baud rate command sequence. Adjusts CardLine component to include stationId when emitting set_baud events. Minor improvements to socket_io_provider for safer disconnect handling.
2025-11-17 16:25:40 +07:00
nguyentrungthat c2d68c685c Enhance user tracking and UI adjustments across app
Backend now logs user information during command/script execution and adds retry logic for command sending. Frontend adjusts button/menu sizes, input widths, and scenario button font sizes for better UI consistency. ModalLog now highlights user log entries, and minor style tweaks are applied throughout.
2025-11-17 13:36:21 +07:00
nguyentrungthat c6b3962542 Update 2025-11-14 15:18:34 +07:00
nguyentrungthat 8a06650eab Add baud and interface to lines, enhance line controls
Added 'baud' and 'interface' fields to the Line model and database schema. Implemented backend and frontend support for setting baud rate per line, including socket event handling and UI controls. Enhanced CardLine and BottomToolBar components to provide scenario and baud controls, and improved UI/UX for line management. Minor fixes and refactoring for consistency and usability.
2025-11-13 16:58:02 +07:00
nguyentrungthat 31036ff7da Update UI Bottom Tool Bar 2025-11-12 16:44:46 +07:00
nguyentrungthat f04bc0b4c1 Update 2025-11-12 08:01:19 +07:00
nguyentrungthat 00c91f1e69 Update 2025-11-11 16:12:11 +07:00
nguyentrungthat f9e685fcbd Update 2025-11-11 13:15:29 +07:00
nguyentrungthat 3e720691fb Update 2025-11-11 09:57:07 +07:00
nguyentrungthat 34d0f082f5 Update 2025-11-10 15:26:59 +07:00
nguyentrungthat 3054874568 Update 2025-11-10 11:25:47 +07:00
nguyentrungthat 99b2641ea2 Update 2025-11-10 10:49:51 +07:00
nguyentrungthat b14a21088e Update 2025-11-10 10:01:31 +07:00
nguyentrungthat c09f27da86 Update 2025-11-06 14:33:48 +07:00
nguyentrungthat 21cb42ebc0 Update 2025-11-05 11:07:04 +07:00
nguyentrungthat 9c4d8d4041 Update 2025-11-05 10:49:21 +07:00
nguyentrungthat d031c1e93e Update apc 2025-11-04 16:52:26 +07:00
nguentrungthat abda7c4e99 Update APC 2025-11-04 11:16:15 +07:00
nguyentrungthat 3b55644bc1 Update 2025-11-03 16:33:57 +07:00
nguyentrungthat 01485bf1d9 Update 2025-11-03 11:19:15 +07:00
nguyentrungthat 1682a28029 Update 2025-10-31 15:37:37 +07:00
nguyentrungthat fb1554d857 Update 2025-10-30 16:23:08 +07:00
nguyentrungthat 240dfdff2c Update 2025-10-29 16:23:00 +07:00
nguyentrungthat cbc8397ea8 Update 2025-10-28 16:57:15 +07:00
nguyentrungthat dea4d2b804 Update FE 2025-10-27 16:55:04 +07:00
nguyentrungthat ef1d585b61 Update 2025-10-25 11:30:57 +07:00
nguyentrungthat 077a2ddc35 Update 2025-10-24 16:39:39 +07:00
nguyentrungthat 85c4bb9a26 Initial commit 2025-10-23 17:00:58 +07:00