Commit Graph

145 Commits

Author SHA1 Message Date
nguyentrungthat 1e3a3629da Update line_connection.ts 2026-05-16 08:32:50 +07:00
nguyentrungthat 72478a52da Update line_connection.ts 2026-05-15 16:54:19 +07:00
nguyentrungthat ee475dde30 Update line_connection.ts 2026-05-15 13:10:57 +07:00
nguyentrungthat df0f3ec898 Update line_connection.ts 2026-05-15 11:20:08 +07:00
nguyentrungthat 1291d2c20c Update save form 2026-05-14 14:33:02 +07:00
nguyentrungthat 884c113a03 Update form report summary, gắn api 2026-05-14 10:23:22 +07:00
nguyentrungthat 9cd3defc1d Update 2026-05-13 15:19:35 +07:00
nguyentrungthat 91b2bdba7b Update form Summary 2026-05-12 14:22:45 +07:00
nguyentrungthat 4bc27938be Update form Sumary 2026-05-12 09:48:59 +07:00
nguyentrungthat 36a67c5b2d Update form summary 2026-05-11 16:25:15 +07:00
nguyentrungthat 7ea6af3c28 Update user login, form 2026-05-09 10:34:37 +07:00
nguyentrungthat 95601a02cb Update 2026-05-08 16:41:32 +07:00
nguyentrungthat 7fea517efa Update 2026-05-06 14:25:34 +07:00
nguyentrungthat 2c33854e43 Update 2026-05-06 14:12:44 +07:00
nguyentrungthat dd6d4047e0 Update Detect Log By AI 2026-05-06 13:57:02 +07:00
nguyentrungthat 1ae7550d77 Add Prompt AI model, API, seeds and UI
Introduce PromptAi support: add model, migration, seeder and controller with full CRUD endpoints, and register routes under /api/prompt-ai. Integrate DB-driven prompts into LineConnection (replace hardcoded prompt strings for DPELP and ENV with fetched PromptAi records). Update frontend ModalConfig to add a Prompt AI management tab (fetch, create, edit prompts), plus related UI tweaks (tabs, prompt editor modal, axios/notifications). This makes AI prompts editable at runtime without code changes.
2026-05-06 10:32:45 +07:00
nguyentrungthat ef20557635 Update modal confirm 2026-05-04 07:46:58 +07:00
nguyentrungthat b5c84e5cee Update 2026-04-01 13:57:06 +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 cba3178d09 Update select IOS, warning ping 2026-03-31 15:49:20 +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 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 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 c7094f0fd8 Update form report and UI 2026-02-10 08:16:25 +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 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