Commit Graph

30 Commits

Author SHA1 Message Date
Truong Vo d4ae00dc37 update giao diện bottom bar 2025-12-12 17:05:19 +07:00
Truong Vo 8b986232e6 update thanh bottom bar 2025-12-12 14:27:01 +07:00
nguyentrungthat 086c440386 Update gom lại các thư mục, add input history 2025-12-06 10:36:59 +07:00
nguyentrungthat cd2c511afc Pass stationId prop to Drawer controls
Refactored DrawerAPCControl and DrawerSwitchControl components to receive stationId as a prop instead of relying on stationAPI.id. Updated App and BottomToolBar to pass stationId, ensuring correct station context for socket event handling.
2025-12-05 08:37:52 +07:00
nguyentrungthat 5d7c10ca4d Update 2025-12-05 07:59:13 +07:00
nguyentrungthat 2ad1ee195f Update send Wiki 2025-12-04 15:54:18 +07:00
nguyentrungthat 8ddccf6586 Update station connect 2025-12-04 10:00:56 +07:00
Truong Vo 4d9c6abc89 Hiệu chỉnh thanh bottom bar gọn hơn 2025-12-04 08:26:13 +07:00
nguyentrungthat 997e9b2a1b Add history tracking to Line model and update CLI actions
Introduces a 'history' column to the Line model and database, storing line history as a JSON string. Updates line_connection service to persist history and extends Redis cleanup to 96 hours. Refactors BottomToolBar and ButtonAction components to use selectedLines for CLI actions and adjusts command sequences.
2025-12-02 14:23:35 +07:00
nguyentrungthat 77027d4f8a Implement DPELP batch run and result aggregation
Added backend and frontend support for running DPELP scenarios on all lines of a station and aggregating results. Introduced a new socket event 'run_all_dpelp', a helper for formatting line results, and logic to post results to a wiki endpoint. Also updated scenario command delays and improved overlay positioning logic in the UI.
2025-12-01 16:49:19 +07:00
Truong Vo 9af8f19986 show hover nội dung scenario bên phải 2025-11-27 11:22:55 +07:00
nguyentrungthat 1b9b18ce3b Refactor BottomToolBar and update user types
Improved BottomToolBar command line UI with better line selection and clearing logic. Updated TUser type to include 'id' and 'email' fields, and fixed DragTabs to support both 'userId' and 'id' for user key mapping.
2025-11-27 10:35:37 +07:00
Truong Vo b5bb90ca4e Fix giao diện select scebario và modal add/edit 2025-11-27 10:26:20 +07:00
nguyentrungthat f2a78c76d2 Refactor BottomToolBar UI and remove debug log
Removed a console.log statement from line_connection.ts to clean up debug output. Refactored BottomToolBar.tsx for improved layout, spacing, and usability, including changes to selected line display, button arrangement, and input handling for better user experience.
2025-11-27 08:53:06 +07:00
Truong Vo 065900f48b Update nút mở drawer add/edit scenario 2025-11-26 16:49:20 +07:00
Truong Vo 6f785644be Update modal select scenario 2025-11-26 14:59:55 +07:00
nguyentrungthat 608b63f203 Update BottomToolBar.tsx 2025-11-25 15:59:08 +07:00
nguyentrungthat e6e430e7ff Update BottomToolBar.tsx 2025-11-25 15:44:08 +07:00
nguyentrungthat 6ac08c2d8b Update BottomToolBar.tsx 2025-11-25 15:03:16 +07:00
nguyentrungthat 580c415b97 Enhance port filtering and UI in DrawerControl
Added 'Config interface' filter option and refactored port filtering logic in DrawerControl. Improved UI layout with fieldsets and adjusted heights in App and BottomToolBar for better visual consistency.
2025-11-24 11:17:32 +07:00
nguyentrungthat e5bb81ef27 Refactor BottomToolBar expand state handling
Moved the expand state management for BottomToolBar from internal state to props, allowing parent components to control its expanded state. Also commented out an unused conditional in DrawerControl.
2025-11-24 10:09:52 +07:00
nguyentrungthat f695062ec4 Enhance switch and APC controls, UI improvements
Refactored switch port restart logic to use turnPortOff/on methods. Improved socket communication for switch port status and clear line actions. Updated DrawerControl and ModalTerminal to streamline APC and switch controls, added filtering and persistent view options for switch ports, and improved UI consistency. Fixed ticket creation logic and enhanced terminal and toolbar layouts for better usability.
2025-11-20 14:39:38 +07:00
nguyentrungthat 1e058636b2 Sync line config updates and improve APC control
Added socket event handling to update line configuration in real time between frontend and backend. Improved APC outlet control in the terminal modal, including validation and user feedback. Refactored BottomToolBar and related components to share active tab state, and fixed command formatting. Minor bug fixes and UI improvements for terminal and scenario actions.
2025-11-19 16:50:12 +07:00
nguyentrungthat c36b9f69df Enhance ticket handling and UI interactions
Backend: Added lineId to ticket creation, improved ticket update logic, and switched ticket update route to POST. Added 'update_ticket' event to socket.io provider. Frontend: Integrated 'motion' for animated bottom toolbar, added expand/collapse functionality, improved ticket creation and update flows, and ensured terminal focus on CLI open. Adjusted delays in ButtonDPELP, improved ticket info copy, and enhanced input handling in ModalTerminal. Updated dependencies to include 'motion'.
2025-11-19 13:57:52 +07:00
nguyentrungthat d908cf204c Add ticket management to lines and improve UI
Backend changes add a tickets relationship to lines and preload tickets (ordered by updated_at) when fetching stations. The frontend now displays ticket information in CardLine, adds ticket history and management (create, update, close, issue) in ModalTerminal, and introduces new types for tickets. Various UI improvements include consistent button font weights, port name normalization, and enhanced log/tooltips. Obsolete takeover logic was removed from App and ModalTerminal.
2025-11-18 16:59:27 +07:00
nguyentrungthat c2d68c685c Enhance user tracking and UI adjustments across app
Backend now logs user information during command/script execution and adds retry logic for command sending. Frontend adjusts button/menu sizes, input widths, and scenario button font sizes for better UI consistency. ModalLog now highlights user log entries, and minor style tweaks are applied throughout.
2025-11-17 13:36:21 +07:00
nguyentrungthat abfae279da Refactor BottomToolBar and DrawerControl UI layout
Improved the BottomToolBar layout by wrapping it in a Grid and adjusting tab styles and heights for better alignment. Updated DrawerControl to refine port group rendering, including scrollable areas for large groups, reduced card widths, and minor style tweaks for consistency and usability.
2025-11-14 16:29:35 +07:00
nguyentrungthat 654fbe0468 Improve CLI line selection and user access control
Enhanced frontend and backend logic to better manage CLI line selection, ensuring only one user can access a line at a time. Added clipboard copy functionality for PID/SN, improved UI feedback for line usage, and updated event handling for opening and closing CLI sessions. Also improved status messaging for disconnected devices and refactored related components for clarity and maintainability.
2025-11-14 13:20:08 +07:00
nguyentrungthat 8a06650eab Add baud and interface to lines, enhance line controls
Added 'baud' and 'interface' fields to the Line model and database schema. Implemented backend and frontend support for setting baud rate per line, including socket event handling and UI controls. Enhanced CardLine and BottomToolBar components to provide scenario and baud controls, and improved UI/UX for line management. Minor fixes and refactoring for consistency and usability.
2025-11-13 16:58:02 +07:00
nguyentrungthat 31036ff7da Update UI Bottom Tool Bar 2025-11-12 16:44:46 +07:00