Commit Graph

52 Commits

Author SHA1 Message Date
nguyentrungthat 1a77075145 Update App.tsx 2025-11-25 16:12:25 +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 3c54ae3a21 Improve UI logic and port name handling in components
Updated DrawerControl to refine 'Select All' button logic and label. Adjusted FormAddEdit layout proportions for station info and lines. Enhanced ModalTerminal with normalized port name comparison and display. Improved TerminalXTerm loading state management and terminal reset behavior.
2025-11-25 14:40:48 +07:00
nguyentrungthat 36d7438055 Refactor log handling and improve output buffering
Updated log file naming to include station name and IP, and refactored appendLog to use new format. Enhanced frontend output buffering for lines to reduce UI update frequency. Improved connection retry logic for switch connections and adjusted socket.io provider timeouts. Updated DrawerLogs format description and removed unnecessary state changes in TerminalXTerm.
2025-11-25 11:32:07 +07:00
nguyentrungthat dc47636c96 Improve switch port handling and UI layout
Added extra commands in getPorts for better terminal output handling. Updated socket_io_provider to allow empty username/password and relaxed connection validation. Refined DrawerControl port normalization and adjusted port display layout for improved clarity and alignment.
2025-11-25 07:46:52 +07:00
nguyentrungthat e8f5a9f67a Add baud rate management for line connections
Introduces baud rate configuration and detection for line connections in both backend and frontend. Backend now supports setting and checking baud rates via socket events, and frontend provides UI controls for users to select or input baud rates. Real-time updates are handled through new socket events, improving line management and visibility.
2025-11-24 16:42:20 +07:00
nguyentrungthat a71f8ee27d Update UI for CardLine and ModalTerminal components
Removed ticket description from CardLine display and clipboard copy. Added buttonControl styles and applied them to control buttons in ModalTerminal. Improved internet status indicator logic and adjusted grid layout for better UI consistency.
2025-11-24 14:35:10 +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 002709e8e3 Update CardLine.tsx 2025-11-24 10:27:50 +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 de9e814305 Adjust connection and UI timeout durations
Reduced sleep delay in socket reconnection logic and increased disable timeout in ModalTerminal from 5s to 10s. These changes aim to improve responsiveness and user experience during connection and UI interactions.
2025-11-22 10:11:44 +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 cbc4a8c9b0 Add ticket management API and update baud rate handling
Introduces a new TicketsController and Ticket model to support ticket CRUD operations via new /api/ticket routes. Updates line_connection service to improve baud rate command sequence. Adjusts CardLine component to include stationId when emitting set_baud events. Minor improvements to socket_io_provider for safer disconnect handling.
2025-11-17 16:25:40 +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 c6b3962542 Update 2025-11-14 15:18:34 +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
nguyentrungthat 00c91f1e69 Update 2025-11-11 16:12:11 +07:00
nguyentrungthat f9e685fcbd Update 2025-11-11 13:15:29 +07:00
nguyentrungthat 32873ad388 Update 2025-11-11 09:38:06 +07:00
nguyentrungthat 34d0f082f5 Update 2025-11-10 15:26:59 +07:00
nguyentrungthat 3054874568 Update 2025-11-10 11:25:47 +07:00
nguyentrungthat 99b2641ea2 Update 2025-11-10 10:49:51 +07:00
nguyentrungthat b14a21088e Update 2025-11-10 10:01:31 +07:00
nguyentrungthat 788f108b6a Update 2025-11-10 09:27:07 +07:00
nguyentrungthat caf3a5a696 Update 2025-11-07 14:02:15 +07:00
nguyentrungthat c09f27da86 Update 2025-11-06 14:33:48 +07:00
nguyentrungthat e4014054d2 Update 2025-11-06 09:39:33 +07:00
nguyentrungthat 990f57a342 Update 2025-11-05 16:48:30 +07:00
nguyentrungthat 9c4d8d4041 Update 2025-11-05 10:49:21 +07:00
nguyentrungthat ef7ea5c9af Update 2025-11-05 09:10:25 +07:00
nguyentrungthat d031c1e93e Update apc 2025-11-04 16:52:26 +07:00
nguentrungthat abda7c4e99 Update APC 2025-11-04 11:16:15 +07:00
nguyentrungthat 3b55644bc1 Update 2025-11-03 16:33:57 +07:00
nguyentrungthat 01485bf1d9 Update 2025-11-03 11:19:15 +07:00
nguyentrungthat 1682a28029 Update 2025-10-31 15:37:37 +07:00
nguyentrungthat fb1554d857 Update 2025-10-30 16:23:08 +07:00
nguyentrungthat aa1c315531 Stop tracking .env file 2025-10-30 09:59:37 +07:00
nguyentrungthat 54ed6c95e8 Update 2025-10-30 09:56:09 +07:00
nguyentrungthat 240dfdff2c Update 2025-10-29 16:23:00 +07:00
nguyentrungthat 0a0dd559f0 Update 2025-10-28 16:56:57 +07:00
nguyentrungthat dea4d2b804 Update FE 2025-10-27 16:55:04 +07:00
nguyentrungthat ef1d585b61 Update 2025-10-25 11:30:57 +07:00