Commit Graph

211 Commits

Author SHA1 Message Date
andrew.ng e9c99814b2 Update short log, print log 2026-05-20 10:46:34 +07:00
nguyentrungthat d4ea801bef Update view history log, tested ports 2026-05-18 16:20:09 +07:00
nguyentrungthat 1291d2c20c Update save form 2026-05-14 14:33:02 +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 5a79a0448e Update view history for line, UI 2026-05-07 10:21:08 +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 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 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 7888fc4090 Update regex inventory 2026-03-26 08:08:38 +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 7af8aabf6b Update ModalSelectIOS.tsx 2026-03-03 13:08:53 +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 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 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 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 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 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 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 db62385b29 Update ModalConfigRamFlash.tsx 2026-01-26 15:08:04 +07:00