Commit Graph

259 Commits

Author SHA1 Message Date
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 7e422e4852 Update css 2026-02-26 16:30:29 +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 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 2382ab1f6f Update email 2026-02-06 13:29:57 +07:00
nguyentrungthat daddb7d812 Update ModalTerminal.tsx 2026-02-05 09:22:05 +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 0fb7690d33 Update DragTabs.tsx 2026-01-30 14:17:33 +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 2d387de73f Update ModalKeywords.tsx 2026-01-29 15:59:39 +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 db62385b29 Update ModalConfigRamFlash.tsx 2026-01-26 15:08:04 +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 16d916fa05 Update ModalTerminal.tsx 2026-01-21 09:17:33 +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 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 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