Commit Graph

299 Commits

Author SHA1 Message Date
nguyentrungthat 9cd3defc1d Update 2026-05-13 15:19:35 +07:00
nguyentrungthat 91b2bdba7b Update form Summary 2026-05-12 14:22:45 +07:00
andrew.ng f4c07fa318 Merge pull request 'Update form Sumary' (#22) from new-form-summary into main
Reviewed-on: #22
2026-05-12 12:49:36 +10:00
nguyentrungthat 4bc27938be Update form Sumary 2026-05-12 09:48:59 +07:00
andrew.ng 19d5aec7ab Merge pull request 'Update form summary, login' (#21) from new-form-summary into main
Reviewed-on: #21
2026-05-11 19:28:05 +10: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 5a79a0448e Update view history for line, UI 2026-05-07 10:21:08 +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 c3f51051fa Update 2026-05-06 13:59:26 +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 5d36b39c64 Update api update note SN ERP 2026-04-24 07:56:20 +07:00
nguyentrungthat 9544ad87e2 Update view modal 2026-04-21 10:04:59 +07:00
nguyentrungthat 4740458dd4 Update healcheck_controller.ts 2026-04-21 09:45:48 +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 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 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 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