Commit Graph

227 Commits

Author SHA1 Message Date
nguyentrungthat cba3178d09 Update select IOS, warning ping 2026-03-31 15:49:20 +07:00
nguyentrungthat d2263a3ec3 Update socket_io_provider.ts 2026-03-30 08:31:41 +07:00
nguyentrungthat fa8fd8116f Update socket_io_provider.ts 2026-03-27 08:59:39 +07:00
nguyentrungthat 27485dc245 Update skip physical test 2026-03-27 08:45:44 +07:00
joseph le 36dc75bee8 Update 2026-03-26 09:27:17 +07:00
nguyentrungthat 7888fc4090 Update regex inventory 2026-03-26 08:08:38 +07:00
nguyentrungthat c7040f7ac7 Update load IOS, License 2026-03-21 09:32:35 +07:00
nguyentrungthat 16bdd6d586 Update send zulip 2026-03-20 13:15:10 +07:00
nguyentrungthat c3c5914651 update stream zulip 2026-03-20 10:31:01 +07:00
nguyentrungthat 211f85130d Update regex show inventory, version 2026-03-19 08:26:33 +07:00
nguyentrungthat 0bb2ce2e63 Update ping trước khi load ios, license 2026-03-17 08:35:35 +07:00
nguyentrungthat c18b8aeff2 Update 2026-03-11 07:45:42 +07:00
nguyentrungthat c032a29cdd Update flow physical test va confirm skip test 2026-03-10 15:31:43 +07:00
nguyentrungthat faf37c7136 Update note sn to erp 2026-03-09 10:05:30 +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 8612d88858 Update view IOS 2026-03-03 11:30:38 +07:00
nguyentrungthat 75acf0ed8c Increase test interval and relax license check
Increase physical test polling interval from 5s to 15s (backend setInterval and frontend AutoProgress ms) to reduce polling frequency. Add handling to stop the interval when physicalTest.done, send the physical test report, and end testing. Change license filtering to be case-insensitive and match any value containing "permanent" (backend and frontend) so licenses are detected regardless of casing/format.
2026-03-02 13:29:24 +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 4b65611269 Update line_connection.ts 2026-02-24 09:36:52 +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 763bfca791 Update line_connection.ts 2026-02-23 14:33:22 +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 f3dbd3d4cc Update form Report 2026-02-13 09:20:54 +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 0cc78e8715 Update UI card line view listFeatureTested 2026-02-10 14:28:43 +07:00
nguyentrungthat 215cd4fbe4 Update convert kilobytes 2026-02-10 09:52:19 +07:00
nguyentrungthat c7094f0fd8 Update form report and UI 2026-02-10 08:16:25 +07:00
nguyentrungthat b9c25499aa Update socket_io_provider.ts 2026-02-09 15:01:06 +07:00
nguyentrungthat 4bffffa920 Update loading khi mới dô trang 2026-02-09 11:34:04 +07:00
nguyentrungthat 2382ab1f6f Update email 2026-02-06 13:29:57 +07:00
nguyentrungthat c24febf32a Update physical test, report 2026-02-05 09:14:45 +07:00
nguyentrungthat 4369d722ef Update form report summary fully tested 2026-02-04 14:45:09 +07:00
nguyentrungthat 63b264304e Update flow check physical ports test 2026-02-03 13:58:17 +07:00
nguyentrungthat d33878c112 Update view Physical test và report 2026-02-02 16:24:28 +07:00
nguyentrungthat 5812e1742b Update show_version.ts 2026-02-02 10:53:47 +07:00
nguyentrungthat 1b85cde4bb Update regex show version 2026-02-02 09:36:14 +07:00
nguyentrungthat 4a1217fbfa Update regex sh ver 2026-01-30 13:37:13 +07:00
nguyentrungthat 6a9a3fb350 Fix inv 2026-01-30 11:28:32 +07:00
nguyentrungthat 7373601fa4 Update report special keyword 2026-01-29 08:43:26 +07:00
nguyentrungthat d0022eb7d5 Update keywords 2026-01-28 16:34:28 +07:00
nguyentrungthat e6a5713c18 Update 2026-01-27 15:06:05 +07:00
nguyentrungthat 9fcf03e3a7 Update check flash 2026-01-26 14:54:47 +07:00
nguyentrungthat 0ce936b685 Update config ram and check ram 2026-01-26 14:45:04 +07:00
nguyentrungthat 20ef2732da Update 2026-01-23 13:04:52 +07:00
nguyentrungthat b9fde3c5e7 Update show env 2026-01-21 13:23:41 +07:00
nguyentrungthat 638a19e314 Update show_env.ts 2026-01-21 10:37:43 +07:00
nguyentrungthat 2222b79258 Update template show env 2026-01-21 09:16:15 +07:00
nguyentrungthat e1f8e42112 Update note from user 2026-01-20 10:51:51 +07:00
nguyentrungthat ae7050a719 Update line_connection.ts 2026-01-19 13:20:45 +07:00
nguyentrungthat 6e2f7e756d Update PoE Test 2026-01-19 13:13:33 +07:00
nguyentrungthat 57e91bc422 Update physical test, load IOS 2026-01-19 09:28:13 +07:00
nguyentrungthat c5e3e796bf Add error handling for external service calls
Wrapped calls to axios, sendMessageToMail, and sendMessageToZulip in try-catch blocks to handle errors individually and log them. This prevents one failure from blocking the execution of subsequent service calls.
2026-01-17 11:31:49 +07:00
nguyentrungthat c86824e589 Refactor health check controller and improve error handling
Moves LINK_WIKI and ERP_URL constants outside the check method for reuse. Updates error handling to set status based on which API call failed, and removes console logging for cleaner output. Always returns code 200 for consistency.
2026-01-17 10:41:51 +07:00
nguyentrungthat c4a5b1c499 Update disable Station 2026-01-15 15:39:43 +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 9266b63823 Update .gitignore 2026-01-08 15:22:35 +07:00
nguyentrungthat 9bc0f96afc Update loading list log 2026-01-08 13:37:26 +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 e55951d42c Update ios_license_controller.ts 2025-12-29 16:59:05 +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 e2e66f86bf Add health check endpoint and controller
Introduces HealCheckController to perform a health check by posting to a wiki API. Adds a new route at /atc/health-check for accessing the health check functionality.
2025-12-23 10:19:16 +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 6c00e35072 Update switch_connection.ts 2025-12-19 08:41:30 +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 76659b3e68 Update modal run scenario 2025-12-16 11:11:19 +07:00
nguyentrungthat 2729feed4e Update modal Scenario 2025-12-15 17:10:50 +07:00
nguyentrungthat 5a8cf4b999 Update migration table brand, category, scenario 2025-12-15 15:03:26 +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