4a9b6c9d01
feat: enhance jadwal shift management with improved component structure and dummy data handling
2025-10-17 15:49:49 +07:00
6be90b6ea9
feat: add unit management functionality with list, detail, and API integration
2025-10-17 15:48:14 +07:00
2df7c953c7
feat: remove unused activeTab state and related props from ListBrandDevice component
2025-10-17 15:39:34 +07:00
e42d1fa3ce
feat: update data structure for tag history and adjust related components for consistency
2025-10-17 14:57:15 +07:00
15b3339dcb
feat: refactor plant section components to use sub-section terminology and improve modal handling
2025-10-17 14:42:55 +07:00
c7c5a33613
feat: remove section name handling from DetailPlantSection and ListPlantSection components
2025-10-17 11:13:05 +07:00
f049902d2c
feat: update delete confirmation dialog title and message in ListDevice component
2025-10-17 00:55:18 +07:00
2bf83619c7
feat: replace device location select with input field for direct entry in DetailDevice component
2025-10-17 00:45:32 +07:00
fcf1deaa26
feat: update button label in DetailPlantSection based on action mode
2025-10-17 00:31:29 +07:00
6348c1e2b4
feat: add section name field to DetailPlantSection and update ListPlantSection to include section name in data handling
2025-10-17 00:09:39 +07:00
2f621fc6c2
update status active inactive
2025-10-16 23:39:41 +07:00
956730135e
refactor: streamline IndexPlantSection and DetailPlantSection components, enhance ListPlantSection with improved search and action handling
2025-10-16 23:05:26 +07:00
7538c18624
feat: convert line chart data to table format and enhance filtering options in IndexReport
2025-10-16 15:36:01 +07:00
61ec188d59
fix: adjust content margin in MainLayout for improved layout consistency
2025-10-16 15:27:13 +07:00
1ba83ec105
fix: update device filtering logic and improve UI labels in DetailTag component
2025-10-16 15:07:25 +07:00
9f46908d79
template card or table in component table list
2025-10-16 14:55:57 +07:00
9bb07b1224
feat: enhance device selection with code and name display, filter active devices
2025-10-16 14:12:18 +07:00
c0f7b8eeb4
center
2025-10-16 13:11:24 +07:00
a4f7eaf422
hardcode signin
2025-10-16 13:02:46 +07:00
172e14e77d
update handle reject & is_active
2025-10-16 11:30:00 +07:00
77a89489cd
fix: rename alarm property to is_alarm
2025-10-15 22:32:27 +07:00
23db974695
feat: add alarm toggle functionality in DetailTag component
2025-10-15 22:19:16 +07:00
1bde2a0fd0
feat: swap Tag Name and Tag Number fields in DetailTag component
2025-10-15 21:25:17 +07:00
4e2da7d4fa
feat: refactor Plant Sub Section dropdown in DetailTag component
2025-10-15 21:17:37 +07:00
05be0b6738
feat: add dropdown field for plant sub sections in DetailTag component
2025-10-15 20:48:30 +07:00
2d2b1a6b0c
pending reject handle
2025-10-15 19:42:47 +07:00
aa68c6690e
update LayoutMenu , LayoutSidebar components
2025-10-15 19:42:01 +07:00
7b56f9690d
feat: add duplicate tag number validation in DetailTag component
2025-10-15 18:15:42 +07:00
9fc1c7cb40
feat: implement card view for device listing with actions for preview, edit, and delete
2025-10-14 19:06:23 +07:00
fc1ce7281e
fix signup
2025-10-14 16:57:11 +07:00
9f6cb66c37
feat: add password requirements validation and indicators in ChangePasswordModal and DetailUser components
2025-10-14 15:42:28 +07:00
eb90d89e0e
feat: enhance DetailTag and ListTag components with improved device handling and search functionality
2025-10-14 14:40:01 +07:00
251ad44371
fix detail tag
2025-10-14 12:24:47 +07:00
e13d7eb3be
refactor: update tag management with improved validation and device integration
2025-10-14 12:18:08 +07:00
973713286f
feat: update shift management with jadwal shift integration and improved error handling
2025-10-13 23:13:40 +07:00
5ed5ee26bf
feat: implement shift management with CRUD operations and local storage integration
2025-10-13 20:26:29 +07:00
bfe38d5955
fix notif alert delete
2025-10-13 11:14:47 +07:00
d9fb7c9fce
refactor plant section
2025-10-13 11:02:17 +07:00
577d8c8585
integrasi plant section
2025-10-13 10:17:16 +07:00
54290baaac
feat: add shift management functionality with CRUD operations and UI components
2025-10-13 02:25:16 +07:00
af6c6de301
fix field from be
2025-10-12 23:18:47 +07:00
5e728a6ff3
refactor: enhance error handling and logging in API requests
2025-10-12 22:08:57 +07:00
be17c43499
refactor update field user_prefix
2025-10-12 18:33:14 +07:00
d0bf6782d5
update mengikuti pusat
2025-10-11 03:07:27 +07:00
337598085a
refactor: change role search parameter from 'search' to 'criteria'
...
- Update defaultFilter to use criteria instead of search
- Update handleSearch to use criteria parameter
- Update handleSearchClear to use criteria parameter
- Update auto-clear onChange to use criteria parameter
API endpoint now uses: /api/roles?page=1&limit=10&criteria=keyword
2025-10-11 00:01:45 +07:00
6381235e14
refactor: change device search parameter from 'search' to 'criteria'
...
- Update defaultFilter to use criteria instead of search
- Update handleSearch to use criteria parameter
- Update handleSearchClear to use criteria parameter
- Update auto-clear onChange to use criteria parameter
API endpoint now uses: /api/device?page=1&limit=10&criteria=keyword
2025-10-10 16:06:58 +07:00
c5f0c73ae1
refactor: change search parameter from 'search' to 'criteria'
...
- Update defaultFilter to use criteria instead of search
- Update handleSearch to use criteria parameter
- Update handleSearchClear to use criteria parameter
- Update auto-clear onChange to use criteria parameter
API endpoint now uses: /api/user?page=1&limit=10&criteria=keyword
2025-10-10 15:59:38 +07:00
d7a09840b9
feat: update device API with server-side pagination support
...
- Add support for backend pagination with current_page, current_limit, total_limit, total_page
- Handle multiple sources for total count (total_data, rows, data.length)
- Transform backend paging structure to frontend format
- Maintain client-side pagination as fallback
- Add comprehensive error handling with try-catch
- Add detailed console logging for debugging
- Map backend fields: current_page->page, current_limit->limit, total_limit->total
- Calculate total_page if not provided by backend
Backend response format: GET /api/device?page=1&limit=10
Supports both server-side and client-side pagination modes
2025-10-10 15:50:20 +07:00
e00ecbf116
feat: add change password functionality for users
...
Add ChangePasswordModal component:
- Create modal with new password and confirmation fields
- Implement password validation (min 8 chars, uppercase, lowercase, number, special char)
- Add real-time error validation and display
- Show password requirements info box
- Display username for confirmation
- Add loading state during password change
- Success/error notifications
Update IndexUser:
- Add state management for change password modal
- Pass props to ListUser and ChangePasswordModal
- Integrate ChangePasswordModal component
Update ListUser:
- Add KeyOutlined icon for change password button
- Add purple change password button in action column
- Implement showChangePasswordModal function
- Update columns to include change password handler
- Increase action column width to 18%
API endpoint: PUT /api/user/change-password/:id
2025-10-10 15:49:31 +07:00
2817f3c31c
feat: update user API with server-side pagination and enhanced filtering
...
- Add support for server-side pagination from backend
- Maintain client-side pagination as fallback
- Filter out super admin users (is_sa = true or 1) in both paths
- Add comprehensive error handling with try-catch
- Add console logging for debugging
- Return standardized response structure
- Handle both boolean and integer values for is_sa field
- Recalculate pagination info after filtering SA users
API now supports both backend pagination and ensures SA users are always hidden from the list
2025-10-10 15:48:22 +07:00
7a8a46ee64
fix: remove duplicate /roles in API endpoints
...
- Fix getAllRole endpoint from roles/roles to roles
- Fix getRoleById endpoint from roles/roles/:id to roles/:id
- Fix createRole endpoint from roles/roles to roles
- Fix updateRole endpoint from roles/roles/:id to roles/:id
- Fix deleteRole endpoint from roles/roles/:id to roles/:id
- Add try-catch error handling in getAllRole
- Support both server-side and client-side pagination
This fixes SQL error: Conversion failed when converting the nvarchar value 'roles' to data type int
Backend was interpreting duplicate /roles as an ID parameter
2025-10-10 15:45:39 +07:00
c3b5ec2121
feat: refactor role display with dynamic colors and capitalize
...
- Add helper function capitalizeFirstLetter for consistent formatting
- Add helper function getRoleColor to determine tag color by role_level or role_name
- Refactor role_name column render to use dynamic helpers
- Replace 30+ lines of hardcoded conditions with 8 lines of clean code
- Support any role name from database without code changes
- Display role names with first letter capitalized
- Color mapping: Level 1=purple, Level 2=blue, Level 3=cyan, Level 4=green
- Add KeyOutlined icon import for change password feature
2025-10-10 15:44:46 +07:00
59c90c3519
feat: integrate dynamic role selection in user form
...
- Add getAllRole API import to fetch roles dynamically
- Add roleList and loadingRoles state management
- Implement fetchRoles function to get all roles from API
- Update Select component to display roles dynamically from database
- Display role format: Role Name (Level X)
- Add loading indicator while fetching roles
- Fetch roles automatically when modal opens
2025-10-10 15:44:21 +07:00
76e40ced3f
integrasi role user
2025-10-10 14:59:21 +07:00
5f6c156c12
feat: add role fetching functionality to DetailUser component
2025-10-10 14:49:16 +07:00
c312577d50
dynamic active sidebar
2025-10-10 15:07:00 +07:00
a3666dbf41
add status toggle switch to DetailBrandDevice and update ListBrandDevice
2025-10-10 14:40:41 +07:00
49dda8621b
refactor: remove IndexErrorCode component and update ListErrorMaster
2025-10-10 14:21:48 +07:00
bf03891142
refactor: streamline brand device management components and add error master view
2025-10-10 14:14:10 +07:00
3ce9b3772d
remove IndexErrorCode component
2025-10-10 14:12:37 +07:00
27c901d08f
role-based access control
2025-10-10 11:40:33 +07:00
a6e8c39ed8
integrasi role
2025-10-10 11:39:31 +07:00
7d10c3f5b2
update history trending
2025-10-10 10:58:45 +07:00
76cf2de6ed
fix signin bug identifier
2025-10-09 23:12:54 +07:00
823492a381
add detailuser file
2025-10-09 22:53:06 +07:00
25e31c58bd
add detail user
2025-10-09 22:52:37 +07:00
f1fe0e0bc4
filter hide superadmin from get all user
2025-10-09 22:51:27 +07:00
c6957b46c6
add notification management with list and detail views, including modal handling and state management
2025-10-09 16:45:52 +07:00
a7af974108
add status management with list and detail views, including routing and mock data
2025-10-09 16:43:03 +07:00
dcdd8c9b8d
refactor ListEventAlarm component by removing unused detail view handler and adjusting column widths
2025-10-09 14:50:26 +07:00
406b306275
refactor event alarm components to improve detail view and add action buttons
2025-10-09 14:48:36 +07:00
6807be41b6
update validation message for email/username field in SignIn component
2025-10-09 14:42:21 +07:00
7a9cf46e39
add event alarm management with list and detail views
2025-10-09 14:30:37 +07:00
0a2c23fa9c
add route for plant section in App component
2025-10-09 10:59:52 +07:00
e13539618b
add plant section management with list and detail views
2025-10-09 10:50:27 +07:00
8ef1bdb142
update data index username, fullname, user phone
2025-10-09 03:47:13 +07:00
930ee1708a
Merge branch 'lavoce' of https://gitea.idetama.id/yogiedigital/cod-fe into lavoce
2025-10-09 03:44:52 +07:00
2fddc7f098
add role management components with list and detail views
2025-10-09 10:26:13 +07:00
1613ee52d3
login identifier email dan username
2025-10-09 03:44:48 +07:00
148bca0e55
fix: update signin dan signup
2025-10-08 15:47:00 +07:00
7b78755ee1
delet background piu
2025-10-08 15:02:33 +07:00
678dd12a18
Merge branch 'lavoce' of https://gitea.idetama.id/yogiedigital/cod-fe into lavoce
2025-10-08 14:45:52 +07:00
bc46328832
feat: implement user management API functions and create ListUser component for user listing
2025-10-08 14:45:41 +07:00
9806593319
update: enhance global card styling and sidebar menu appearance
2025-10-08 14:38:00 +07:00
dcedf9fe19
update background cod signin&up
2025-10-08 14:33:21 +07:00
2f678cef03
Merge branch 'lavoce' of https://gitea.idetama.id/yogiedigital/cod-fe into lavoce
2025-10-07 14:46:19 +07:00
32d88df400
update: implement brand device management with listing, detail view, and search functionality
2025-10-07 12:37:40 +07:00
f21174e5d0
update: implement ListTag and DetailTag components for enhanced tag management functionality
2025-10-07 12:37:40 +07:00
676fb64554
update: adjust TableList component for improved data display and enhance ListDevice component styles
2025-10-07 12:37:40 +07:00
0beb46e318
Merge branch 'lavoce' of https://gitea.idetama.id/yogiedigital/cod-fe into lavoce
2025-10-07 12:07:31 +07:00
b2e1bca4ab
update: implement brand device management with listing, detail view, and search functionality
2025-10-07 12:07:29 +07:00
317610e552
update: implement ListTag and DetailTag components for enhanced tag management functionality
2025-10-07 12:01:15 +07:00
0d97a1978e
update: adjust TableList component for improved data display and enhance ListDevice component styles
2025-10-06 08:47:07 +07:00
d469992ee2
menambahkan halaman awal untuk setiap menu sidebar
2025-10-03 17:05:50 +07:00
e3b7792f9b
update tambah route
2025-10-03 17:05:00 +07:00
600e6c8593
update: enhance LayoutMenu component with additional menu items and icons
2025-10-03 17:03:59 +07:00
fbf8231050
update: remove fixed horizontal scroll width in TableList component for improved responsiveness
2025-10-02 15:36:59 +07:00
50aa323b5f
update: improve code formatting and error handling in SignIn component
2025-10-02 15:35:07 +07:00
3484683074
fix: refresh token cookies
2025-10-02 15:32:32 +07:00
1c0ac6930e
update: adjust horizontal scroll width in TableList component for better data visibility
2025-10-02 14:05:09 +07:00
1687f3b952
update signup
2025-10-02 11:45:20 +07:00
992dcc47ea
update: refactor action buttons in ListDevice component for improved functionality and layout
2025-10-02 10:40:48 +07:00
2d5a1b00ea
update clear all localStorage data on logout
2025-10-01 15:15:58 +07:00
3f39923070
update: adjust column widths in ListDevice component for better layout
2025-10-01 15:14:17 +07:00
3b51f59679
update: enhance device API functions with pagination and response structure; modify device form validation and UI components
2025-10-01 14:33:55 +07:00
2778c96143
add: device API functions for CRUD device
2025-10-01 11:33:10 +07:00
fb5528616c
update: api request
2025-10-01 11:03:11 +07:00
6a5b01bf0c
add: auth context
2025-10-01 11:02:59 +07:00
d362c041ac
add: credential true
2025-10-01 10:49:05 +07:00
ef67cdd91c
update layout header
2025-10-01 10:27:58 +07:00
6b4b511d66
fix: error
2025-10-01 10:11:56 +07:00
9dabbd60ea
fix: handle submit
2025-10-01 10:11:30 +07:00
ba0b145bda
update: credentials true
2025-10-01 10:11:20 +07:00
b73abf2fa2
simplyfy code svg value mqtt
2025-09-29 16:38:00 +07:00
6de6d35a6b
example dashboard svg mqtt
2025-09-29 16:23:20 +07:00
b9b5704232
update signup
2025-09-29 11:48:54 +07:00
42fff789e3
fix register request
2025-09-29 11:48:36 +07:00
c64b7b3490
update: route
2025-09-26 11:07:03 +07:00