Compare commits

...

541 Commits

Author SHA1 Message Date
f144a0a54c ci(release): bump build number to 353 2025-05-21 20:20:20 -05:00
1cd7ec8aff chore(release): 2.21.0 2025-05-21 20:19:53 -05:00
018981cf9e refactor(ti): changes to post based on loading date not delivery date 2025-05-21 20:19:11 -05:00
0f44079666 test(old bols): added the query to check for old bols 2025-05-21 20:17:46 -05:00
32d011fc98 fix(ti): added some catches for the remark just being there and incorrect scac 2025-05-21 20:17:24 -05:00
cf8fd9dbb9 fix(dm): added day and hour to abbott truck to over come the weird posting issue 2025-05-21 20:16:42 -05:00
1ce0e6195e refactor(macrotemplate): bumped the version 2.7 > 2.8 2025-05-21 20:16:07 -05:00
e384640add ci(release): bump build number to 352 2025-05-21 20:07:45 -05:00
f3bf8a93cc ci(release): bump build number to 351 2025-05-21 17:04:09 -05:00
f7644b3333 ci(release): bump build number to 350 2025-05-21 16:58:44 -05:00
9fbea9ebc8 ci(release): bump build number to 349 2025-05-21 12:46:12 -05:00
5885fe8cd2 refactor(printerdata): changed change to have a static orderby so it dose not jump all over 2025-05-20 16:30:28 -05:00
57ac7a6b8d refactor(master serverdata): updated iowa city with a header info for remarks 2025-05-20 13:47:14 -05:00
c88fedd75a fix(lots): if no lot assigned dont spam 2025-05-20 13:43:54 -05:00
a5f1203a34 fix(abbott orders): working on times coming over as yesterday 2025-05-20 13:42:37 -05:00
b96a750e9e feat(dm): added in p&g to the list 2025-05-20 13:42:12 -05:00
fb603e74dc refactor(ti import): made a change to look at the loading date vs the delivery date 2025-05-20 13:41:36 -05:00
2559706510 ci(release): bump build number to 348 2025-05-20 13:37:51 -05:00
89812d29a0 ci(release): bump build number to 347 2025-05-20 12:14:24 -05:00
9148723607 ci(release): bump build number to 346 2025-05-20 08:20:12 -05:00
e2fcb09ff9 ci(release): bump build number to 345 2025-05-20 07:28:02 -05:00
3ecad39440 ci(release): bump build number to 344 2025-05-19 17:20:07 -05:00
e9bcf2e21e ci(release): bump build number to 343 2025-05-19 17:18:42 -05:00
54a4e008a2 ci(release): bump build number to 342 2025-05-19 17:11:35 -05:00
522f313249 ci(release): bump build number to 341 2025-05-19 16:39:17 -05:00
cfd378dab6 ci(release): bump build number to 340 2025-05-19 15:03:50 -05:00
1f0cb98dd8 refactor(serverdata): corrected iowa2 data so it passes over to tms correctly 2025-05-19 15:01:53 -05:00
080087fa0d fix(lots): if no lots are assigned or released correct so nothing is posted 2025-05-19 15:01:28 -05:00
2fe48097e5 ci(release): bump build number to 339 2025-05-19 14:08:00 -05:00
a93524a6ac ci(release): bump build number to 338 2025-05-19 13:50:13 -05:00
defeff3270 ci(release): bump build number to 337 2025-05-16 08:05:47 -05:00
78c5da8e81 feat(datamart): new query to check if the city state will be valid to process in tms 2025-05-15 21:14:51 -05:00
f4a91614c1 refactor(datamart): added product family to the article query 2025-05-15 20:56:19 -05:00
2e0d26f2ad fix(serverdata): changed dayton to be 24 hour shipping and added marktree 2025-05-15 20:55:44 -05:00
9d9a2683fa feat(apihits): so i can see if what end points are being used and when and how often 2025-05-15 20:55:17 -05:00
12ea23c9fb ci(release): bump build number to 336 2025-05-15 20:45:22 -05:00
951396cd3c ci(release): bump build number to 335 2025-05-15 20:03:45 -05:00
fce9c74ead ci(release): bump build number to 334 2025-05-15 19:49:46 -05:00
a555a8b940 ci(release): bump build number to 333 2025-05-15 19:37:00 -05:00
76c60d4a82 ci(release): bump build number to 332 2025-05-15 19:34:14 -05:00
83008edf32 ci(release): bump build number to 331 2025-05-15 19:26:39 -05:00
336a0343d5 ci(release): bump build number to 330 2025-05-15 19:25:34 -05:00
3878211acb ci(release): bump build number to 329 2025-05-15 19:16:30 -05:00
401c1899f2 ci(release): bump build number to 328 2025-05-15 18:56:15 -05:00
a7b3c6a79f ci(release): bump build number to 327 2025-05-15 18:42:37 -05:00
87aac10090 ci(release): bump build number to 326 2025-05-14 11:30:32 -05:00
5b0cff4d84 ci(release): bump build number to 325 2025-05-13 17:46:07 -05:00
1c559c970a chore(release): 2.20.0 2025-05-13 17:45:36 -05:00
60d9fd1f55 fix(open orders): made a change to correct the date being off by 1 day 2025-05-13 17:45:20 -05:00
9b76b7d023 refactor(serverdata): added in citystate to change based on the json 2025-05-09 08:44:53 -05:00
082b36ba2b fix(server data): corrected st to st. for ti intergration 2025-05-02 19:14:30 -05:00
b9de750668 feat(bookin route): endpoint point for bookin 2025-05-02 19:14:07 -05:00
4e3be2c565 feat(helpercommand): helpercommand page 2025-05-02 19:13:44 -05:00
8f828d764a fix(createurl): add catches for when server not installed 2025-05-02 19:13:17 -05:00
9f68cd2146 fix(manual print): missing role added 2025-05-02 19:12:49 -05:00
3a78f77475 feat(helpercommand): bookin pallets 2025-05-02 19:12:28 -05:00
3817c33638 ci(release): bump build number to 324 2025-05-02 18:50:10 -05:00
ac68a65f5d ci(release): bump build number to 323 2025-05-02 18:44:42 -05:00
0c80d3b87d ci(release): bump build number to 322 2025-05-02 10:59:47 -05:00
e9fd3730d6 ci(release): bump build number to 321 2025-05-02 08:14:36 -05:00
0c719dc647 ci(release): bump build number to 320 2025-05-02 07:57:17 -05:00
ffeeea44c5 chore(release): 2.19.0 2025-05-02 07:56:43 -05:00
c75b7c8d54 test(fifo index): started process for fifo index 2025-05-02 07:52:58 -05:00
21bcdde625 refactor(blocking query): changes made to only show 1 bo at a atime 2025-05-02 07:52:37 -05:00
6f46f40414 refactor(iowa1 and stp1): now activated with ti 2025-05-02 07:52:11 -05:00
981c04e741 refactor(blocking notification): changed to look at the latest blocking order and only pull 1 at a t 2025-05-02 07:51:46 -05:00
a709be838f feat(loreal): vmi file can be sent over now 2025-05-02 07:51:16 -05:00
2921792c0a ci(release): bump build number to 319 2025-05-01 13:22:45 -05:00
e62b5409af ci(release): bump build number to 318 2025-05-01 13:16:13 -05:00
85301bca32 ci(release): bump build number to 317 2025-05-01 11:56:28 -05:00
7ed1c32ae9 fix(fakeedi updates): corrected an issue where multi orders would not update if 1 release was used 2025-04-30 12:14:26 -05:00
156cd845e0 ci(release): bump build number to 316 2025-04-30 12:05:11 -05:00
2e78d4c5fb ci(release): bump build number to 315 2025-04-30 11:10:08 -05:00
c71b1038f3 ci(release): bump build number to 314 2025-04-30 09:37:05 -05:00
e4a972643f refactor(serverdata): updated mcd and dayton for tms 2025-04-30 09:36:27 -05:00
e6d20508e7 ci(release): bump build number to 313 2025-04-30 07:10:40 -05:00
1ceee5e05e ci(release): bump build number to 312 2025-04-29 17:12:42 -05:00
9f2baf98b4 chore(release): 2.18.0 2025-04-29 17:12:13 -05:00
99bed6a8aa fix(stock silo data): correction to how the data comes abck to us 2025-04-29 17:11:17 -05:00
9953846c7f fix(blocking orders): removed some console logs 2025-04-29 17:10:56 -05:00
cd3e6c81e4 fix(datamart): fixed to open order to show the correct customer release number 2025-04-29 17:10:32 -05:00
e2152becf7 fix(submodules): correction to the role name so its now roles and properly updates 2025-04-29 17:09:56 -05:00
17af3776d1 fix(abbott): fix to properly remove the space in the middle of the po 2025-04-29 17:09:21 -05:00
75ff724805 test(outbound): test for outbound deliveryes edit 2025-04-29 17:08:50 -05:00
dbd3f76f02 fix(datamart): typo in the get delivery by date range 2025-04-29 17:08:21 -05:00
3e79017afc feat(fakeedi): fake edi macro update implemented 2025-04-29 17:07:15 -05:00
b3b6002d9a ci(release): bump build number to 311 2025-04-28 12:41:48 -05:00
acf266464a ci(release): bump build number to 310 2025-04-28 10:42:18 -05:00
bda8ac4119 ci(release): bump build number to 309 2025-04-28 06:47:58 -05:00
bb57930a88 ci(release): bump build number to 308 2025-04-25 15:02:25 -05:00
b0f59b6ec8 refactor(swagger): changes to the link so it opens in a new window 2025-04-25 10:43:20 -05:00
f35c481aec fix(ppoo): changes to prevent blank screen 2025-04-25 10:42:58 -05:00
9c8249b2e4 fix(openorders): changes to prevent and error during the get request due to missing data 2025-04-25 10:42:17 -05:00
67d47ee030 feat(swagger link): added in prod swagger link to admin panel 2025-04-25 10:41:34 -05:00
0e5790702e ci(release): bump build number to 307 2025-04-25 10:39:51 -05:00
8494a16c9f ci(release): bump build number to 306 2025-04-25 10:00:13 -05:00
b74a197778 fix(datamart): corrected endpoins due to recent sql changes 2025-04-24 22:58:39 -05:00
2bc9e88588 fix(abbott orders): corrected the ignore function for already in progress orders 2025-04-24 22:58:07 -05:00
63b59fe5ac feat(dm): added in so test and dev see everything always 2025-04-24 22:57:40 -05:00
3dc14e4097 fix(ocme counts): corrected the reset on the tpye select to always clear out 2025-04-24 22:57:14 -05:00
9bee452446 ci(release): bump build number to 305 2025-04-24 22:28:44 -05:00
67ded802bf ci(release): bump build number to 304 2025-04-24 22:13:46 -05:00
eb0a5d6311 fix(lots): missed .data on the lotInfo return 2025-04-24 21:36:22 -05:00
c5ebe4e2fa fix(mmstaged check): changes to prevent crash where lot sent over is not an object 2025-04-24 21:31:42 -05:00
9cea76e01f feat(ocme): added in option to manually add running number if camera isnt working 2025-04-24 21:26:25 -05:00
3cb7fd2e1b refactor(time): more time changes to fix 24 hour format 2025-04-24 21:25:56 -05:00
1b90129516 refactor(tcp): added in a destory function to make sure we always disconnect from the tcp device 2025-04-24 21:25:31 -05:00
ead63d4b41 refactor(sql): improved the return function to show data [] when not connected, prevents crashes 2025-04-24 21:24:39 -05:00
3573fd1a5b ci(release): bump build number to 303 2025-04-24 00:33:07 -05:00
0ae8aea3ac ci(release): bump build number to 302 2025-04-23 20:15:29 -05:00
f74a22bbb1 ci(release): bump build number to 301 2025-04-23 20:14:46 -05:00
afa80114fb ci(release): bump build number to 300 2025-04-23 20:10:21 -05:00
46f8d6cde6 ci(release): bump build number to 299 2025-04-23 20:03:26 -05:00
f272cf9ad9 ci(release): bump build number to 298 2025-04-23 15:29:02 -05:00
e81a6456d8 chore(release): 2.17.0 2025-04-23 15:28:29 -05:00
97cf624440 fix(lot assignment): removed the return i had oops 2025-04-23 15:28:07 -05:00
e0df6b8cd7 feat(orders): energizer orders in 2025-04-23 15:27:28 -05:00
c248cc0129 test(forecast): loreal forecast starting 2025-04-23 15:27:09 -05:00
57d3727f49 refactor(profile): changed to patch vs posting 2025-04-23 15:25:46 -05:00
5a48dcf553 refactor(profile updates): added a link to the profile change email 2025-04-23 15:23:33 -05:00
eac7444038 fix(register): typo 2025-04-23 15:21:56 -05:00
b290b21ca2 feat(lst): removed v1 from the update 2025-04-23 15:20:54 -05:00
86905b591b feat(password change): added in password link to email and change in lst 2025-04-23 15:20:35 -05:00
28b050859a feat(dm): standard forecast and orders in 2025-04-23 15:19:34 -05:00
3c9e627021 feat(dm): buttons to the nav bar if customs are made 2025-04-23 15:18:58 -05:00
7152e72822 feat(registerpage): added in but hidden 2025-04-23 15:18:21 -05:00
a03130a961 feat(build): removed v1 from being built in 2025-04-23 15:17:31 -05:00
aea06c12a0 chore(release): 2.16.1 2025-04-23 15:14:45 -05:00
4f1d83137b ci(release): bump build number to 297 2025-04-23 14:17:20 -05:00
72a3292633 ci(release): bump build number to 296 2025-04-23 13:52:11 -05:00
174a6c0adc ci(release): bump build number to 295 2025-04-23 12:37:31 -05:00
556aaa381d ci(release): bump build number to 294 2025-04-22 19:04:17 -05:00
5f7915b81f ci(release): bump build number to 293 2025-04-22 18:55:59 -05:00
613a486160 ci(release): bump build number to 292 2025-04-22 16:23:39 -05:00
caccaf143c ci(release): bump build number to 291 2025-04-22 14:44:17 -05:00
2a7eb26e6b ci(release): bump build number to 290 2025-04-22 13:06:38 -05:00
844f337f6c ci(release): bump build number to 289 2025-04-22 11:55:55 -05:00
4e1f7d4040 ci(release): bump build number to 288 2025-04-21 21:09:12 -05:00
8786681923 chore(release): 2.16.0 2025-04-21 21:08:05 -05:00
a3732c0208 fix(blocking notification): added throw error so i get an email when it errors 2025-04-21 21:06:23 -05:00
abc39634fb docs(macrotemplate): bump version so everyone gets the new sheety 2025-04-21 21:05:46 -05:00
dd7299ad76 refactor(serverdata): changed all server ports to 3000 2025-04-21 21:05:12 -05:00
2343f9387a refactor(ocme): moved the server port to the app vs ocme 2025-04-21 21:04:50 -05:00
9a6cec65cd refactor(inventory card): changed to 500 by default so we can scroll 2025-04-21 21:04:22 -05:00
92dc3855b9 fix(lst): removed console log on useraccess 2025-04-21 21:03:55 -05:00
6334efe093 test(time): more time testing 2025-04-21 21:03:38 -05:00
e9cb3e5db4 fix(manual print form): corrected typos and name 2025-04-21 21:03:13 -05:00
8422955d39 feat(dm): added import and exports plus first custom for dayton 2025-04-21 21:02:44 -05:00
06d2f1464b refactor(dm): repaced the orders in image with the new updated one 2025-04-21 21:01:57 -05:00
a1d526bd52 ci(release): bump build number to 287 2025-04-21 20:14:43 -05:00
6ef9626cb7 ci(release): bump build number to 286 2025-04-21 17:53:48 -05:00
55cc694a0e ci(release): bump build number to 285 2025-04-21 17:36:01 -05:00
3b8296dd54 ci(release): bump build number to 284 2025-04-21 16:29:23 -05:00
c39a12759f ci(release): bump build number to 283 2025-04-21 15:41:48 -05:00
7b0a1d08d2 ci(release): bump build number to 282 2025-04-21 08:03:02 -05:00
925776b634 ci(release): bump build number to 281 2025-04-21 08:01:08 -05:00
789ea31948 ci(release): bump build number to 280 2025-04-21 07:58:15 -05:00
f8ba05fbae ci(release): bump build number to 279 2025-04-21 07:56:20 -05:00
44f418cfbc ci(release): bump build number to 278 2025-04-21 07:53:18 -05:00
d65450d5ee fix(ocme): cycle counts on an empty stock row would crash corrected so this wont happen 2025-04-21 07:49:39 -05:00
8240e9c5d3 fix(log cleanup): corrected the level look at 2025-04-21 07:48:49 -05:00
bb6d1c3bff fix(time): changes the labeling time to be our db version 2025-04-21 07:48:21 -05:00
f44e5a87e7 refactor(v1 cleanup): added in removal of localstoage items from v1 2025-04-21 07:46:24 -05:00
b42b8a4c83 ci(release): bump build number to 277 2025-04-21 07:23:09 -05:00
c741274ffa ci(release): bump build number to 276 2025-04-21 07:19:22 -05:00
93693d3093 ci(release): bump build number to 275 2025-04-20 17:29:24 -05:00
fd49280313 ci(release): bump build number to 274 2025-04-20 17:25:51 -05:00
39e5929b46 ci(release): bump build number to 273 2025-04-20 17:23:27 -05:00
53520845a8 ci(release): bump build number to 272 2025-04-20 17:19:40 -05:00
4fe7eed8ef ci(release): bump build number to 271 2025-04-20 17:15:05 -05:00
c397e56407 ci(release): bump build number to 270 2025-04-20 17:13:48 -05:00
ea0610c86b ci(release): bump build number to 269 2025-04-20 17:00:07 -05:00
09fd408f6c ci(release): bump build number to 268 2025-04-20 16:54:57 -05:00
96c1e4d28a ci(release): bump build number to 267 2025-04-20 16:51:13 -05:00
0d4a5ca396 ci(release): bump build number to 266 2025-04-20 16:50:30 -05:00
9011b9cb64 ci(release): bump build number to 265 2025-04-20 16:44:30 -05:00
bc519bcfeb ci(release): bump build number to 264 2025-04-20 16:41:10 -05:00
f0a1a7ada2 ci(release): bump build number to 263 2025-04-20 16:37:50 -05:00
42dcd93d19 ci(release): bump build number to 262 2025-04-20 16:30:59 -05:00
fdd2024b84 ci(release): bump build number to 261 2025-04-20 16:28:53 -05:00
ecb07c7e7c refactor(bulk orders): improvments and changes that i wanted in but missed 2025-04-18 16:27:38 -05:00
dcfa96b710 feat(forecast): migrated forecast over 2025-04-18 16:26:48 -05:00
8c5c9fd244 refactor(updater): removed v1 from restarting 2025-04-18 16:25:26 -05:00
2ffc3cc242 refactor(services): removed some comments that were no longer needed 2025-04-18 16:25:00 -05:00
e780a24a8a fix(auth): corrected to remove localstorage 2025-04-18 16:23:39 -05:00
8b7353d42b ci(release): bump build number to 260 2025-04-18 07:47:48 -05:00
4ef0c51ab2 ci(release): bump build number to 259 2025-04-18 07:43:17 -05:00
c6fe7dbbce ci(release): bump build number to 258 2025-04-18 07:26:52 -05:00
9ae324193a ci(release): bump build number to 257 2025-04-18 07:24:18 -05:00
e8cd5916d0 ci(release): bump build number to 256 2025-04-18 07:21:32 -05:00
9c65b8b377 ci(release): bump build number to 255 2025-04-17 23:19:22 -05:00
7aa897bcc9 ci(release): bump build number to 254 2025-04-17 23:13:00 -05:00
085dc64db9 refactor(standard in): returns the orders in success or failed and why 2025-04-17 23:11:32 -05:00
3df1ceaaac ci(release): bump build number to 253 2025-04-17 23:06:22 -05:00
07c0be0ea1 feat(abbott import): custom abbott import with time and date correction 2025-04-17 23:05:16 -05:00
68ccf2382b feat(standard orders in): multi customer orders in plus ignore already started 2025-04-17 23:04:50 -05:00
632e07967a feat(bulk orders): standard template created 2025-04-17 23:03:23 -05:00
a68a3ba640 test(rfid): more rfid work and tested working 2025-04-17 18:42:29 -05:00
af8d53cac1 feat(manual print options): added in block for printing and new log type 2025-04-17 18:42:08 -05:00
5cdca0a41f refactor(cards): messing with the time in the cards 2025-04-17 18:41:40 -05:00
9cb8ca6813 feat(openorders): new open order card and page 2025-04-17 18:41:07 -05:00
d5114ba243 fix(lots errors): fixes to prevent crashes when sql server not connected 2025-04-17 18:40:35 -05:00
e7e35336f8 ci(release): bump build number to 252 2025-04-17 18:33:16 -05:00
fae1f36555 ci(release): bump build number to 251 2025-04-17 09:38:39 -05:00
69031a7f0e ci(release): bump build number to 250 2025-04-17 07:27:28 -05:00
fc621c8ca6 ci(release): bump build number to 249 2025-04-17 07:26:08 -05:00
be1074d142 ci(release): bump build number to 248 2025-04-16 20:54:51 -05:00
365a24ce5f ci(release): bump build number to 247 2025-04-16 19:50:19 -05:00
94f5906299 ci(release): bump build number to 246 2025-04-16 11:14:02 -05:00
35652e3735 ci(release): bump build number to 245 2025-04-16 08:34:56 -05:00
84e0c46be9 ci(release): bump build number to 244 2025-04-15 16:20:04 -05:00
f5fd1c0890 ci(release): bump build number to 243 2025-04-15 16:16:21 -05:00
7dab5f36ec ci(release): bump build number to 242 2025-04-15 16:10:03 -05:00
1b69edfef0 ci(release): bump build number to 241 2025-04-15 14:56:07 -05:00
4c799c70ab ci(release): bump build number to 240 2025-04-15 14:49:18 -05:00
fbd63e6da2 ci(release): bump build number to 239 2025-04-15 14:44:44 -05:00
be31ae2c04 ci(release): bump build number to 238 2025-04-15 14:32:57 -05:00
5f486bf6cd ci(release): bump build number to 237 2025-04-15 12:59:45 -05:00
8cf4e3e31c ci(release): bump build number to 236 2025-04-15 12:52:02 -05:00
558673d8c4 ci(release): bump build number to 235 2025-04-15 09:08:52 -05:00
9add660249 ci(release): bump build number to 234 2025-04-15 07:33:14 -05:00
02912825de ci(release): bump build number to 233 2025-04-15 07:21:35 -05:00
0793c5f7d6 ci(release): bump build number to 232 2025-04-15 07:14:07 -05:00
46bb695840 ci(release): bump build number to 231 2025-04-15 07:07:08 -05:00
c79496eaac fix(ocp page): changed to localhost for dev it was showing the card twice 2025-04-15 07:06:50 -05:00
50fcfb05ce ci(release): bump build number to 230 2025-04-15 06:56:40 -05:00
a6f29fe11c ci(release): bump build number to 229 2025-04-15 06:34:14 -05:00
30cdb3f073 ci(release): bump build number to 228 2025-04-14 22:18:59 -05:00
fbc2282aee feat(ocme): cycle count added to db will add to front end later for users to inspect 2025-04-14 22:17:51 -05:00
26798ca140 refactor(lots): changed the way the time looks 2025-04-14 22:16:54 -05:00
2d39f93e42 refactor(inventory card): change to 15min check 2025-04-14 22:16:37 -05:00
917090eaa9 fix(ocme): added in field catch 2025-04-14 22:16:10 -05:00
c25c2d006a feat(quality): addpallet and cycle pallets added 2025-04-14 22:15:44 -05:00
95ca2ff2b3 feat(ocme cycle counts): tracking of cycle counts and when they were done 2025-04-14 22:15:06 -05:00
2eafbdf45e perf(db): better control over how we stay connected 2025-04-14 22:14:41 -05:00
7a3732d5b2 ci(release): bump build number to 227 2025-04-14 17:24:28 -05:00
d0a19b5589 refactor(ocp): resizbale with scrollling added makes more easy to review if table overflows 2025-04-14 17:21:29 -05:00
71f1cf0f21 ci(release): bump build number to 226 2025-04-14 14:02:52 -05:00
56252e2439 ci(release): bump build number to 225 2025-04-14 13:46:08 -05:00
142be260bd chore(release): 2.15.0 2025-04-14 13:45:16 -05:00
a751bb6a50 refactor(ocplogs): removed imports not needed 2025-04-14 13:44:54 -05:00
1a5d066eb4 refactor(ocp logs): changed table data to tanstack 2025-04-14 13:44:23 -05:00
1bc7949f30 refactor(label logs): changed to tanstack table 2025-04-14 13:43:56 -05:00
450e5acd34 feat(db cleanup): added a cleanup for labels this checks daily 2025-04-14 12:53:05 -05:00
d4edeb15d9 refactor(cards): allow for changes to the existing card and corrected the display of current stats 2025-04-14 12:43:01 -05:00
a0afb305fc refactor(addcards): changes the way it looks 2025-04-14 12:42:20 -05:00
2a6af066bc fix(datamart): corrected the date grab to be print date vs delivery date 2025-04-14 12:29:10 -05:00
acd89d926c fix(labeling process): corrected a typo in success 2025-04-14 12:28:38 -05:00
bb20046890 test(printers): added in management tab for printers 2025-04-14 12:28:11 -05:00
ae7ea2bb90 test(notification): added framework for managment tab 2025-04-14 12:27:45 -05:00
17773e9a23 refactor(modules): removed a console log 2025-04-14 12:27:13 -05:00
25785703db feat(exports): added in a button to export the lanes to cycle count 2025-04-14 12:26:56 -05:00
087d14c585 feat(cards): migrated cards over 2025-04-14 12:26:31 -05:00
328b61f6cc test(quality): added in framrwork 2025-04-14 12:25:16 -05:00
c02d289b80 ci(release): bump build number to 224 2025-04-14 09:37:30 -05:00
e0e7e03d37 ci(release): bump build number to 223 2025-04-14 09:02:49 -05:00
5fb7b5c59e ci(release): bump build number to 222 2025-04-13 15:29:14 -05:00
aabcf12bee ci(release): bump build number to 221 2025-04-13 15:24:22 -05:00
f0a5d6e949 ci(release): bump build number to 220 2025-04-13 13:41:41 -05:00
bdeea6bd1a ci(release): bump build number to 219 2025-04-13 13:27:30 -05:00
89ace4343c ci(release): bump build number to 218 2025-04-13 11:49:14 -05:00
242b90c75a feat(changelog): added in a place to see the changelogs 2025-04-13 10:40:31 -05:00
9baeb1ceff test(notifications mgt): added new mgt for notifications to turn off and on in the ui 2025-04-13 10:22:40 -05:00
148919a411 ci(release): bump build number to 217 2025-04-13 10:21:44 -05:00
090f618ebd chore(release): 2.14.0 2025-04-13 10:21:00 -05:00
d96cd4416e feat(datamart): delivery by date ranged added in, includes inhouse 2025-04-13 10:09:12 -05:00
99abded7b9 ci(release): bump build number to 216 2025-04-13 09:53:03 -05:00
7532c89ae2 test(ppoo): added inn query for ppoo 2025-04-13 08:28:53 -05:00
dd6895fac2 fix(lots): if no sql it crashs due to lots returning a non error 2025-04-13 08:28:30 -05:00
95c869d667 fix(ocp): removed the auto labeler from cycleing due to causuing delay in printing 2025-04-13 08:27:53 -05:00
9325e58551 test(reporting): more reporting tables for different reports 2025-04-13 08:27:28 -05:00
17b6c0ac66 feat(ocp page): changed to resizable panels as its kinda customizable 2025-04-13 08:26:35 -05:00
3241cf810a test(front end): added in card test but removing 2025-04-13 08:26:03 -05:00
b5b57fe3bf refactor(formatting): formatting due to new default settings 2025-04-13 08:25:22 -05:00
08b052ea5a ci(release): bump build number to 215 2025-04-11 14:55:57 -05:00
8ad64bb67a ci(release): bump build number to 214 2025-04-11 14:50:52 -05:00
e0eb26b544 ci(release): bump build number to 213 2025-04-09 20:58:53 -05:00
2090f8ce71 ci(release): bump build number to 212 2025-04-09 20:36:36 -05:00
db1d5f1601 ci(release): bump build number to 211 2025-04-09 20:34:44 -05:00
c5d53e03d3 ci(release): bump build number to 210 2025-04-09 20:24:09 -05:00
fb0b3f06a4 ci(release): bump build number to 209 2025-04-09 18:35:30 -05:00
6e2e17bdde ci(release): bump build number to 208 2025-04-09 18:09:34 -05:00
6665b77e09 feat(cyclecountcheck): added i cycle count check this is in mem right now
if this becomes a resource hog we will move it to the db. no need for it to really be presitant
2025-04-09 17:50:06 -05:00
2e2699ab3c refactor(ocp): change the way logs are brought in and other changes to clean the code up 2025-04-09 17:49:03 -05:00
bad390ec17 feat(silo): added in charts and historical data 2025-04-09 17:48:03 -05:00
efc630f5f8 refactor(auth): added module and submodule access to the user 2025-04-09 17:47:02 -05:00
ded074a1ce refactor(serverpage): added in linke to server by clicking the name 2025-04-09 17:46:12 -05:00
ca0b027e67 refactor(database): removed the createAt as it was a duplicate 2025-04-09 17:45:39 -05:00
1282f5efe4 ci(release): bump build number to 207 2025-04-09 14:05:37 -05:00
77988477f6 ci(release): bump build number to 206 2025-04-09 13:17:17 -05:00
37b26c4c92 ci(release): bump build number to 205 2025-04-09 13:00:20 -05:00
72e2c6ea6a ci(release): bump build number to 204 2025-04-09 12:49:17 -05:00
ffe80d6a58 ci(release): bump build number to 203 2025-04-09 12:31:25 -05:00
9dcd07bf2a ci(release): bump build number to 202 2025-04-09 12:26:47 -05:00
4a36107ebb ci(release): bump build number to 201 2025-04-09 12:15:02 -05:00
fb03fc83e6 ci(release): bump build number to 200 2025-04-09 12:13:28 -05:00
8c522c5b72 ci(release): bump build number to 199 2025-04-09 11:49:22 -05:00
e9c9a84a82 ci(release): bump build number to 198 2025-04-09 11:25:55 -05:00
ff2ecff146 ci(release): bump build number to 197 2025-04-09 08:28:03 -05:00
3757b367d5 ci(release): bump build number to 196 2025-04-09 08:24:14 -05:00
4d979089cb ci(release): bump build number to 195 2025-04-08 21:07:26 -05:00
b1e611c7b8 ci(release): bump build number to 194 2025-04-08 21:05:08 -05:00
02fdc14769 ci(release): bump build number to 193 2025-04-08 21:03:11 -05:00
a794943740 ci(release): bump build number to 192 2025-04-08 21:01:20 -05:00
c2ad046fb0 ci(release): bump build number to 191 2025-04-08 20:56:40 -05:00
ba2b8036b8 ci(release): bump build number to 190 2025-04-08 20:36:42 -05:00
26aa9d8f80 ci(release): bump build number to 189 2025-04-08 20:30:12 -05:00
663f2f436c ci(release): bump build number to 188 2025-04-08 19:26:01 -05:00
88f05eaf65 ci(release): bump build number to 187 2025-04-08 17:36:30 -05:00
b84d6f5186 ci(release): bump build number to 186 2025-04-08 17:32:57 -05:00
410790e693 ci(release): bump build number to 185 2025-04-08 16:00:46 -05:00
f847ce423d ci(release): bump build number to 184 2025-04-08 13:42:46 -05:00
27126cca35 ci(release): bump build number to 183 2025-04-08 11:11:09 -05:00
04f524419d ci(release): bump build number to 182 2025-04-08 11:02:14 -05:00
d8edfaf05f test(auth): testing auth stuff 2025-04-08 06:49:13 -05:00
92d251c122 fix(labeling): if label fails we want to stop the process and post the why 2025-04-08 06:48:35 -05:00
b4a4dfcb75 test(silo): backend silo stuff 2025-04-08 06:48:12 -05:00
b630bae50d test(auth): more and more auth setup 2025-04-08 06:46:56 -05:00
4371fcc028 test(silos): more base line silo data to be implemented 2025-04-08 06:43:56 -05:00
9deedd86e5 test(auth): more permission testing 2025-04-08 06:43:29 -05:00
5a48c91801 ci(release): bump build number to 181 2025-04-07 13:01:41 -05:00
51d65cc0b1 ci(release): bump build number to 180 2025-04-07 12:38:44 -05:00
6c94005971 ci(release): bump build number to 179 2025-04-07 12:12:24 -05:00
8afdc71bbf ci(release): bump build number to 178 2025-04-07 11:53:43 -05:00
358e5524c7 ci(release): bump build number to 177 2025-04-07 11:09:03 -05:00
ef61dad210 ci(release): bump build number to 176 2025-04-07 10:09:33 -05:00
7d03d0c42a ci(release): bump build number to 175 2025-04-07 10:01:23 -05:00
4effb25e9d test(logger): trying to understand why debug is not actually showing in the console 2025-04-07 07:09:27 -05:00
dc5ee5b97a feat(ocp): printer cycling backend and frontend done :) 2025-04-07 07:02:31 -05:00
75f94eae14 feat(silo): adjustments completed :D 2025-04-07 07:01:50 -05:00
31fbfa4eb3 fix(submodules): spelling crrections 2025-04-07 06:58:06 -05:00
b589bf9724 fix(database): corrected spelling in the silo adjustment id 2025-04-07 06:57:37 -05:00
17ed18669a ci(release): bump build number to 174 2025-04-06 17:56:33 -05:00
b9f080f130 ci(release): bump build number to 173 2025-04-06 17:55:04 -05:00
ce546c0d35 ci(release): bump build number to 172 2025-04-06 10:40:22 -05:00
51cc4aa370 feat(ocp): completly moved ocp to lst 2025-04-06 07:48:05 -05:00
95bebbde2b feat(silo adjustments): added in email if % wrong 2025-04-06 07:47:39 -05:00
85e3d46b2e refactor(ocp): added default time in for each printer to allow different delays 2025-04-06 07:46:47 -05:00
525de7dab2 test(test code): new test folder for testing stuff 2025-04-06 07:46:12 -05:00
1956ee313a ci(release): bump build number to 171 2025-04-05 11:44:13 -05:00
536899b6e7 ci(release): bump build number to 170 2025-04-04 22:11:49 -05:00
d9e60451f8 chore(release): 2.13.0 2025-04-04 22:10:30 -05:00
85577b291f feat(submodules and login redirect): submodules added and login redirect 2025-04-04 22:10:11 -05:00
f1abe7b33d feat(siloadjustments): added email for comments :D 2025-04-04 22:09:47 -05:00
9f26f2334f test(ocp): working on more migrations 2025-04-04 17:13:15 -05:00
a7818b4ca3 feat(notificaitons): fixed and corrections to get them working properly 2025-04-04 17:12:48 -05:00
99477bac19 refactor(materials): moved for better sturcture 2025-04-04 17:11:57 -05:00
5eacbb5ecf fix(datamart): added some fixed some 2025-04-04 17:11:32 -05:00
8b5698a839 feat(update all): added a new function to update all servers in a row. easier to walk away 2025-04-04 17:10:55 -05:00
ad5e77028d test(frontend): work on the frontend to have better admin 2025-04-04 17:09:30 -05:00
e1973e4da6 feat(submodules): to help with submodules of course 2025-04-04 17:08:47 -05:00
8194798a37 fix(database): correction to the printer modules 2025-04-04 17:08:25 -05:00
16e5413a90 ci(release): bump build number to 169 2025-04-04 16:35:09 -05:00
6065cccbd7 ci(release): bump build number to 168 2025-04-04 15:53:27 -05:00
9a5dc980f0 ci(release): bump build number to 167 2025-04-04 14:54:24 -05:00
23fa9f09dc ci(release): bump build number to 166 2025-04-04 14:33:49 -05:00
f1c9877686 ci(release): bump build number to 165 2025-04-04 12:19:58 -05:00
6ad49b704d ci(release): bump build number to 164 2025-04-04 12:17:20 -05:00
60cd6e551a ci(release): bump build number to 163 2025-04-04 06:51:21 -05:00
74445149b7 ci(release): bump build number to 162 2025-04-04 06:31:21 -05:00
2e05f79c72 ci(release): bump build number to 161 2025-04-03 20:22:10 -05:00
13df4af860 ci(release): bump build number to 160 2025-04-03 17:31:45 -05:00
6bd1bebe33 ci(release): bump build number to 159 2025-04-03 11:49:47 -05:00
99fd875dbb ci(release): bump build number to 158 2025-04-03 11:03:05 -05:00
17d7e54b7a ci(release): bump build number to 157 2025-04-03 09:56:19 -05:00
498c1626a1 ci(release): bump build number to 156 2025-04-03 09:43:51 -05:00
6180f61d08 ci(release): bump build number to 155 2025-04-03 08:16:10 -05:00
3e4d8b260c ci(release): bump build number to 154 2025-04-03 07:44:37 -05:00
fa9e5dd70f ci(release): bump build number to 153 2025-04-03 07:32:37 -05:00
b9397c029f fix(tcp): added in a catch if ocme is not active and we dont have a zebra camera 2025-04-03 06:08:15 -05:00
7e34d42fda style(ocme): format changes 2025-04-03 06:07:41 -05:00
96807bf77e build(builds): changes to the build system 2025-04-03 06:07:21 -05:00
7a6911c694 ci(release): bump build number to 152 2025-04-03 05:56:35 -05:00
05b22d7cb7 ci(release): bump build number to 151 2025-04-03 05:52:26 -05:00
6b5f7e0bcd ci(release): bump build number to 150 2025-04-03 05:27:24 -05:00
858bf986d9 ci(release): bump build number to 149 2025-04-03 05:03:16 -05:00
2cc81a5b07 chore(release): bump build number to 148 2025-04-02 21:27:33 -05:00
52e3e1b4a1 chore(release): 2.12.0 2025-04-02 21:26:45 -05:00
d27611d035 feat(servers): all servers in v2 meow 2025-04-02 21:26:32 -05:00
f771db6034 fix(ocp): delivery changes to happen after bookin is done 2025-04-02 21:26:15 -05:00
4f3b5d75a2 refactor(ocme): crashing for no reason added ?? 2025-04-02 21:25:49 -05:00
a1f62a3e51 fix(ti intergraion): chagnes to the special instructions 2025-04-02 21:25:30 -05:00
de0ee3a61c fix(sendmail): if server not installed just stop 2025-04-02 21:25:07 -05:00
b48dd8fa15 style(auth): format changes to the new config only 2025-04-02 21:24:51 -05:00
3355eb389c test(services): testing remove restart and stop 2025-04-02 21:24:23 -05:00
b2683d0429 feat(datamart): total inv migrated over 2025-04-02 21:23:42 -05:00
7e484a0f90 chore(release): bump build number to 147 2025-04-02 21:02:05 -05:00
77abaed60e chore(release): bump build number to 146 2025-04-02 16:38:47 -05:00
d10770bc49 chore(release): bump build number to 145 2025-04-02 15:29:10 -05:00
1fee4b719b chore(release): bump build number to 144 2025-04-02 14:58:43 -05:00
1dce3dccdc chore(release): bump build number to 143 2025-04-02 14:50:28 -05:00
3babf8a749 chore(release): bump build number to 142 2025-04-02 13:17:42 -05:00
29c9f2d1be chore(release): bump build number to 141 2025-04-02 12:17:34 -05:00
459b0f287c chore(release): bump build number to 140 2025-04-02 08:45:48 -05:00
7535e15337 chore(release): bump build number to 139 2025-04-02 08:15:43 -05:00
68dac0dd28 chore(release): bump build number to 138 2025-04-02 07:56:22 -05:00
f442cedff2 chore(release): bump build number to 137 2025-04-02 07:51:35 -05:00
63e005b790 feat(servers): added in jci lima sherman 2025-04-01 18:50:35 -05:00
814861e59c feat(ocp): added dual printing back in 2025-04-01 18:50:03 -05:00
dd62ceb133 fix(updater): fixed the iowa2 server so it has the correct port 2025-04-01 18:49:48 -05:00
e335225807 build(update server): added cheaters in to get rid of the other service to readd it 2025-04-01 18:49:27 -05:00
3e54685a7e chore(release): bump build number to 136 2025-04-01 16:30:06 -05:00
f481197d6e feat(new server): added mcd to the server setup 2025-04-01 16:23:13 -05:00
053c05c1a7 fix(perms): fixed the location for the test update 2025-04-01 16:22:52 -05:00
8bdbc4995c refactor(ocp): more work on perfecting dyco and labeling 2025-04-01 16:22:21 -05:00
bc2336e46d refactor(compile): changes to keep the last 20 builds 2025-04-01 16:22:01 -05:00
544e82c01d fix(update server missing migrate): missing 2025-04-01 16:21:15 -05:00
44507d41c4 feat(datamart): initial get active query migrated 2025-04-01 16:20:18 -05:00
ee3026fa7c fix(ocme): cycle count typos 2025-04-01 16:19:25 -05:00
5c642805b1 feat(notifications): migrated all from v1 2025-04-01 16:18:48 -05:00
0d06dae6de chore(release): bump build number to 135 2025-04-01 13:37:46 -05:00
8a639ceaf8 chore(release): bump build number to 134 2025-04-01 10:14:50 -05:00
8c6dc5f690 chore(release): bump build number to 133 2025-04-01 09:50:03 -05:00
16b39fd386 chore(release): bump build number to 132 2025-03-31 20:36:09 -05:00
075bba95ee chore(release): bump build number to 131 2025-03-31 20:33:34 -05:00
6ec9f5827c chore(release): bump build number to 130 2025-03-31 10:23:34 -05:00
93941723cc chore(release): bump build number to 129 2025-03-31 10:18:08 -05:00
fb41fb1dd1 chore(release): bump build number to 128 2025-03-30 18:51:23 -05:00
6d5bcde88e chore(release): bump build number to 127 2025-03-30 18:48:18 -05:00
1156bbd223 chore(release): bump build number to 126 2025-03-30 10:13:01 -05:00
bfd4aec4eb chore(release): 2.11.0 2025-03-30 10:12:17 -05:00
63b1151cb7 fix(misc): work on ocp to improve the errors that were missed and better logging 2025-03-30 10:11:58 -05:00
a5dee58223 refactor(server): removed console logs 2025-03-30 10:11:29 -05:00
9784072aab refactor(format changes): changes to the file formats to match across computers 2025-03-30 10:10:53 -05:00
f9096b54f5 fix(admin auth): added in role change for v1 2025-03-30 10:10:01 -05:00
11e5cf4d86 refactor(lst): added huston backin 2025-03-30 10:09:32 -05:00
a647d05d3b chore(release): bump build number to 125 2025-03-30 10:03:20 -05:00
098c477119 chore(release): bump build number to 124 2025-03-30 09:44:19 -05:00
3228ad7892 feat(lst): script added for the test server to readd the permissions once it boots up 2025-03-30 08:41:55 -05:00
c27ad7cf6a refactor(lst): added in a removal of old files so we can keep the server clean 2025-03-30 08:41:26 -05:00
a48d4bd5af feat(auth): admin user updates added
if a password change happens then an email will be sent to the user.
2025-03-30 08:40:49 -05:00
09c0825194 chore(release): bump build number to 123 2025-03-30 05:09:52 -05:00
28fbf2c1e4 chore(release): bump build number to 122 2025-03-29 18:26:57 -05:00
af5dc9266f chore(release): bump build number to 121 2025-03-29 12:16:23 -05:00
b903c8ee2d chore(release): bump build number to 120 2025-03-29 12:15:02 -05:00
035eda9aa8 chore(release): bump build number to 119 2025-03-29 12:13:16 -05:00
1f7c33d871 chore(release): bump build number to 118 2025-03-29 07:54:44 -05:00
d046c4ea41 chore(release): bump build number to 117 2025-03-29 07:39:34 -05:00
88258baf9d chore(release): bump build number to 116 2025-03-28 14:50:34 -05:00
82acfcc4a9 chore(release): bump build number to 116 2025-03-28 14:20:37 -05:00
ba3d721940 refactor(ocp): lots of work for rfid and dyco contorl 2025-03-27 21:12:22 -05:00
27d6b6e884 refactor(ocme): added new error in posting where we know when the pallet is not instock 2025-03-27 21:11:42 -05:00
2c8d1fb710 fix(logger): changes to get the most recent verse aged 2025-03-27 21:10:57 -05:00
b5de6445b3 feat(rfid): work on the readers and there functions 2025-03-27 21:08:05 -05:00
f9f68ce969 refactor(logger): changed log level to be in the env file vs hardcoded 2025-03-27 21:07:15 -05:00
0ced135ec3 feat(updater): added in a delete function for the server side 2025-03-27 21:06:45 -05:00
7b1c6e1361 refactor(ocp): finished the dashboard and move logs and labels to a tab style 2025-03-27 21:06:25 -05:00
e3ba45ae13 fix(ocme): fixed to make sure we can always just update a runnning nunmber 2025-03-27 21:05:49 -05:00
ac7859fda3 chore(release): bump build number to 115 2025-03-27 20:21:24 -05:00
fb31ae79d1 chore(release): bump build number to 114 2025-03-27 18:50:04 -05:00
ff1dfdde68 chore(release): bump build number to 113 2025-03-27 18:44:11 -05:00
f0b9bd599a chore(release): bump build number to 112 2025-03-27 18:42:43 -05:00
f3103d8c1a chore(release): bump build number to 111 2025-03-27 18:22:13 -05:00
d557728fa2 chore(release): bump build number to 110 2025-03-27 17:26:30 -05:00
d58cb5286e chore(release): bump build number to 109 2025-03-27 17:03:39 -05:00
7d4733896e chore(release): bump build number to 108 2025-03-27 16:48:14 -05:00
175c7226ed chore(release): bump build number to 107 2025-03-27 15:00:51 -05:00
c32547ceb8 chore(release): bump build number to 106 2025-03-27 14:47:42 -05:00
a01c0566c2 chore(release): bump build number to 105 2025-03-27 14:46:43 -05:00
ca4106945b chore(release): bump build number to 104 2025-03-27 14:45:41 -05:00
1386e0f00f chore(release): bump build number to 103 2025-03-27 14:44:10 -05:00
290f20b86b chore(release): bump build number to 102 2025-03-27 14:33:34 -05:00
52171c87fc chore(release): bump build number to 101 2025-03-27 14:31:22 -05:00
c474536992 chore(release): bump build number to 100 2025-03-27 14:07:33 -05:00
600a989226 chore(release): bump build number to 99 2025-03-27 11:55:35 -05:00
ea7801fccf chore(release): bump build number to 98 2025-03-27 10:59:53 -05:00
c03b61f48a chore(release): bump build number to 97 2025-03-27 10:33:59 -05:00
ca552d5587 chore(release): bump build number to 96 2025-03-27 10:12:23 -05:00
278c5538bc chore(release): bump build number to 95 2025-03-27 09:21:15 -05:00
f39ae0f590 chore(release): bump build number to 94 2025-03-27 09:10:01 -05:00
b4e0f4c666 chore(release): bump build number to 93 2025-03-26 22:12:03 -05:00
db66302415 chore(release): 2.10.0 2025-03-26 22:11:27 -05:00
90e9bb0ff6 refactor(rfid): refactored the way the wrapper works to indlude backup dyco plan 2025-03-26 22:10:39 -05:00
bd11feb136 refactor(rfid): refactored station 3 (lines) and complete logic 2025-03-26 22:10:05 -05:00
96e7f742fe refactor(ocme): removed some info logs as ocme calls alot 2025-03-26 22:09:23 -05:00
eb051d51f2 feat(notify): intial nofity system added to monitor crashes and rfid wrapper 2025-03-26 22:08:53 -05:00
7a1a4773e7 feat(ocp): create and book in plus dyco controller implemented 2025-03-26 22:07:19 -05:00
878e650e62 chore(release): bump build number to 92 2025-03-26 22:05:21 -05:00
a31e7ea163 chore(release): bump build number to 91 2025-03-26 16:17:53 -05:00
04aa943920 chore(release): bump build number to 90 2025-03-26 16:00:56 -05:00
af076b8e27 chore(release): bump build number to 89 2025-03-26 15:39:57 -05:00
c0a0589b3c chore(release): bump build number to 88 2025-03-26 15:19:55 -05:00
509ef84726 chore(release): bump build number to 87 2025-03-26 15:18:53 -05:00
5ab813f378 chore(release): bump build number to 86 2025-03-26 12:44:17 -05:00
5d61eb879e chore(release): bump build number to 85 2025-03-26 12:42:58 -05:00
2d4b1db5f4 fix(logistics): correction to the lane grab 2025-03-26 09:16:16 -05:00
58f7b4322d feat(logistics): added in return material by lane name and gets lane id 2025-03-26 08:36:47 -05:00
3b5e82fdc1 feat(ocp): added wrappercard into the mix 2025-03-25 18:57:00 -05:00
f9cd3fb881 feat(ocp): prodlink check added 2025-03-25 18:56:36 -05:00
51267f5202 fix(ocme): fixed the camera routes 2025-03-25 18:55:57 -05:00
ceaa25f31e feat(ocp): added labeling logs in 2025-03-25 18:55:23 -05:00
416254353c chore(release): bump build number to 84 2025-03-25 18:21:47 -05:00
7f946c095b chore(release): bump build number to 83 2025-03-25 18:03:32 -05:00
c2aa69ab0a chore(release): bump build number to 82 2025-03-25 18:02:14 -05:00
250988800e chore(release): bump build number to 81 2025-03-25 17:57:13 -05:00
cacfd6d2e0 chore(release): bump build number to 80 2025-03-25 17:49:07 -05:00
8d2721b0c2 chore(release): bump build number to 79 2025-03-25 17:44:41 -05:00
36cdc7b4bf chore(release): bump build number to 78 2025-03-25 17:39:26 -05:00
4d4d6fc7a4 chore(release): bump build number to 77 2025-03-25 15:48:28 -05:00
030f9f9aac refactor(ocp): moved printers to there own folder to keep everything clean 2025-03-25 13:39:39 -05:00
9e9a56cbb1 feat(ocp): add lots with scroll view was added 2025-03-25 13:39:18 -05:00
b01980e1c5 fix(ocme): fixed some import errors 2025-03-25 12:48:18 -05:00
fe0c500dcf feat(server): clearn up code 2025-03-25 12:47:52 -05:00
8a040d15db fix(servers): fixed the weird conflict import that happened 2025-03-25 12:47:36 -05:00
f90066c090 feat(ocp): added in printers get and add 2025-03-25 12:47:15 -05:00
04eb2e3e14 refactor(tcpserver): just the tcp server doing something 2025-03-25 07:58:37 -05:00
90fb0d364d Merge branch 'main' of https://git.tuffraid.net/cowch/lstV2 2025-03-25 07:57:55 -05:00
e6e1cecce3 refactor(ocme): corrections to endpoints to work with ocnme as intneeded 2025-03-25 07:54:58 -05:00
73aa95a693 refactor(ocme): cleaup on pickedup 2025-03-25 07:54:22 -05:00
b9f19095cb refactor(ocme): clean up on the getInfo endpoint 2025-03-25 07:54:00 -05:00
dcb56d4274 fix(ocme): corrections to posting data for the response was added 2025-03-25 07:53:30 -05:00
bc1821132e feat(ocme): manual camera trigger for the wrapper added 2025-03-25 07:52:40 -05:00
2551d6c907 refactor(updateserver): removed ocme from starting back up as it was migrated 2025-03-25 07:41:10 -05:00
adf0880659 refactor(server): changed to log only when in dev, and removed the redirect of the url 2025-03-25 07:40:15 -05:00
5149de3199 ci(lst): changes made to the settings file to work across all pvs 2025-03-25 07:39:32 -05:00
c71b514d9a refactor(frontend): prettier change to formatting 2025-03-25 07:27:45 -05:00
9254e52808 chore(release): bump build number to 76 2025-03-25 06:17:31 -05:00
b8c028a6c1 chore(release): bump build number to 75 2025-03-24 20:20:55 -05:00
529e922485 chore(release): bump build number to 74 2025-03-24 20:13:07 -05:00
5201012235 chore(release): bump build number to 73 2025-03-24 20:08:59 -05:00
abe53b8f5d chore(release): bump build number to 72 2025-03-24 20:06:15 -05:00
836f3e294b chore(release): bump build number to 71 2025-03-24 19:56:03 -05:00
96abef762b chore(release): bump build number to 70 2025-03-24 19:40:39 -05:00
2c227f9428 chore(release): bump build number to 69 2025-03-24 18:33:12 -05:00
46647687dc chore(release): bump build number to 68 2025-03-24 18:23:24 -05:00
cb01ef1af1 chore(release): bump build number to 67 2025-03-24 17:16:23 -05:00
b3b5fcec65 chore(release): bump build number to 66 2025-03-24 17:14:25 -05:00
3a4dc47a36 chore(release): bump build number to 65 2025-03-24 17:06:23 -05:00
63177b523e chore(release): bump build number to 64 2025-03-24 17:00:20 -05:00
e1cad027d2 chore(release): bump build number to 63 2025-03-24 16:42:53 -05:00
c1cc355f4f chore(release): bump build number to 62 2025-03-24 16:40:50 -05:00
5ed67f3fc0 chore(release): bump build number to 61 2025-03-24 16:28:32 -05:00
57e82d2360 chore(release): bump build number to 60 2025-03-24 16:26:04 -05:00
9395ec6cd4 chore(release): bump build number to 59 2025-03-24 15:50:29 -05:00
0475bb30f9 chore(release): bump build number to 58 2025-03-24 15:49:37 -05:00
6843368c36 chore(release): bump build number to 57 2025-03-24 15:47:16 -05:00
335ea2deca chore(release): bump build number to 56 2025-03-24 15:39:33 -05:00
96814c1115 Merge branch 'main' of https://git.tuffraid.net/cowch/lstV2 2025-03-24 15:31:35 -05:00
6dd9ed848b test(ocme): lots of changes to get it working in production 2025-03-24 15:31:31 -05:00
0c5fc1dfb0 chore(release): bump build number to 55 2025-03-24 15:28:10 -05:00
5886bea85d chore(release): bump build number to 52 2025-03-24 11:43:52 -05:00
477 changed files with 81823 additions and 3415 deletions

2
.gitignore vendored
View File

@@ -10,6 +10,7 @@ backend-0.1.2-217.zip
backend-0.1.2-218.zip
backend-0.1.2.zip
postgresql-17.2-3-windows-x64.exe
jsTesting
# ---> Node
@@ -149,3 +150,4 @@ dist
.pnp.*
backend-0.1.3.zip
BulkForecastTemplate

View File

@@ -1,17 +1,17 @@
{
"types": [
{ "type": "feat", "section": "🌟 Enhancements" },
{ "type": "fix", "section": "🐛 Bug fixes" },
{ "type": "chore", "hidden": false, "section": "📝 Chore" },
{ "type": "docs", "section": "📚 Documentation" },
{ "type": "style", "hidden": true },
{ "type": "refactor", "section": "🛠️ Code Refactor" },
{ "type": "perf", "hidden": false, "section": "🚀 Performance" },
{ "type": "test", "section": "📝 Testing Code" },
{ "type": "ci", "hidden": false, "section": "📈 Project changes" },
{ "type": "build", "hidden": true, "section": "📈 Project Builds" }
],
"commitUrlFormat": "https://git.tuffraid.net/cowch/lstV2/commits/{{hash}}",
"compareUrlFormat": "https://git.tuffraid.net/cowch/lstV2/compare/{{previousTag}}...{{currentTag}}",
"header": "# All CHanges to LST can be found below.\n"
"types": [
{ "type": "feat", "section": "🌟 Enhancements" },
{ "type": "fix", "section": "🐛 Bug fixes" },
{ "type": "chore", "hidden": false, "section": "📝 Chore" },
{ "type": "docs", "section": "📚 Documentation" },
{ "type": "style", "hidden": true },
{ "type": "refactor", "section": "🛠️ Code Refactor" },
{ "type": "perf", "hidden": false, "section": "🚀 Performance" },
{ "type": "test", "section": "📝 Testing Code" },
{ "type": "ci", "hidden": true, "section": "📈 Project changes" },
{ "type": "build", "hidden": true, "section": "📈 Project Builds" }
],
"commitUrlFormat": "https://git.tuffraid.net/cowch/lstV2/commits/{{hash}}",
"compareUrlFormat": "https://git.tuffraid.net/cowch/lstV2/compare/{{previousTag}}...{{currentTag}}",
"header": "# All CHanges to LST can be found below.\n"
}

50
.vscode/settings.json vendored
View File

@@ -1,26 +1,28 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.formatOnSave": true
},
"[json]": {
"editor.formatOnSave": true
},
"[graphql]": {
"editor.formatOnSave": true
},
"[handlebars]": {
"editor.formatOnSave": true
}
"editor.defaultFormatter": "esbenp.prettier-vscode",
"workbench.colorTheme": "Default Dark+",
"prettier.tabWidth": 4,
"terminal.integrated.env.windows": {},
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.formatOnSave": true
},
"[json]": {
"editor.formatOnSave": true
},
"[graphql]": {
"editor.formatOnSave": true
},
"[handlebars]": {
"editor.formatOnSave": true
}
}

View File

@@ -1,5 +1,562 @@
# All CHanges to LST can be found below.
## [2.21.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.20.0...v2.21.0) (2025-05-22)
### 🌟 Enhancements
* **apihits:** so i can see if what end points are being used and when and how often ([9d9a268](https://git.tuffraid.net/cowch/lstV2/commits/9d9a2683fada6143b96b1d0f92b53a56879f1d45))
* **datamart:** new query to check if the city state will be valid to process in tms ([78c5da8](https://git.tuffraid.net/cowch/lstV2/commits/78c5da8e81fb2075a05028546ea9c2fcfcc0fe05))
* **dm:** added in p&g to the list ([b96a750](https://git.tuffraid.net/cowch/lstV2/commits/b96a750e9e7aa119b3f45840c6f976eb519eb4fc))
### 🐛 Bug fixes
* **abbott orders:** working on times coming over as yesterday ([a5f1203](https://git.tuffraid.net/cowch/lstV2/commits/a5f1203a34f85a29c4bc516e0e1aa9d5ab1956d3))
* **dm:** added day and hour to abbott truck to over come the weird posting issue ([cf8fd9d](https://git.tuffraid.net/cowch/lstV2/commits/cf8fd9dbb92f1584d901ea50476500261d1f81b0))
* **lots:** if no lot assigned dont spam ([c88fedd](https://git.tuffraid.net/cowch/lstV2/commits/c88fedd75aaa3d063f8eed798168882b718d70c9))
* **lots:** if no lots are assigned or released correct so nothing is posted ([080087f](https://git.tuffraid.net/cowch/lstV2/commits/080087fa0dc9968168b3f353bfe754b618ae315e))
* **serverdata:** changed dayton to be 24 hour shipping and added marktree ([2e0d26f](https://git.tuffraid.net/cowch/lstV2/commits/2e0d26f2adbfe52803a8777eeeb387aa165c64b2))
* **ti:** added some catches for the remark just being there and incorrect scac ([32d011f](https://git.tuffraid.net/cowch/lstV2/commits/32d011fc989311cb76a11fed2a6c03e6d301ba31))
### 📝 Testing Code
* **old bols:** added the query to check for old bols ([0f44079](https://git.tuffraid.net/cowch/lstV2/commits/0f44079666f21106c6a0abf1f9f528ad5883967f))
### 🛠️ Code Refactor
* **datamart:** added product family to the article query ([f4a9161](https://git.tuffraid.net/cowch/lstV2/commits/f4a91614c1b7acb51bf5855551ea9ca0324888ac))
* **macrotemplate:** bumped the version 2.7 > 2.8 ([1ce0e61](https://git.tuffraid.net/cowch/lstV2/commits/1ce0e6195e384683ee7c22f15cc1281cdd09cedd))
* **master serverdata:** updated iowa city with a header info for remarks ([57ac7a6](https://git.tuffraid.net/cowch/lstV2/commits/57ac7a6b8d379b1babdb5ca02b81f0d6918ee242))
* **printerdata:** changed change to have a static orderby so it dose not jump all over ([5885fe8](https://git.tuffraid.net/cowch/lstV2/commits/5885fe8cd2e68cc976a22640550556bb045b3048))
* **serverdata:** corrected iowa2 data so it passes over to tms correctly ([1f0cb98](https://git.tuffraid.net/cowch/lstV2/commits/1f0cb98dd82096210122a376de97a64d7396ea87))
* **ti import:** made a change to look at the loading date vs the delivery date ([fb603e7](https://git.tuffraid.net/cowch/lstV2/commits/fb603e74dc014ac04678d5dcd1ca8a2405437622))
* **ti:** changes to post based on loading date not delivery date ([018981c](https://git.tuffraid.net/cowch/lstV2/commits/018981cf9e0d8bdc8132f4819abdb7bb745b543a))
## [2.20.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.19.0...v2.20.0) (2025-05-13)
### 🌟 Enhancements
* **bookin route:** endpoint point for bookin ([b9de750](https://git.tuffraid.net/cowch/lstV2/commits/b9de75066865d140494fc9a96a9b2809a9162117))
* **helpercommand:** bookin pallets ([3a78f77](https://git.tuffraid.net/cowch/lstV2/commits/3a78f774751d8080d0c27eaf52c230fca67c175f))
* **helpercommand:** helpercommand page ([4e3be2c](https://git.tuffraid.net/cowch/lstV2/commits/4e3be2c56503e8a9f42d80832ae038aeeeb96170))
### 🛠️ Code Refactor
* **serverdata:** added in citystate to change based on the json ([9b76b7d](https://git.tuffraid.net/cowch/lstV2/commits/9b76b7d023feb7f1ada5602c87d3e6ba062a087e))
### 🐛 Bug fixes
* **createurl:** add catches for when server not installed ([8f828d7](https://git.tuffraid.net/cowch/lstV2/commits/8f828d764a09be9b5fb7726468afdd6fda3fd8aa))
* **manual print:** missing role added ([9f68cd2](https://git.tuffraid.net/cowch/lstV2/commits/9f68cd2146c8dc9b62cec42661527cd88f63eccc))
* **open orders:** made a change to correct the date being off by 1 day ([60d9fd1](https://git.tuffraid.net/cowch/lstV2/commits/60d9fd1f559f23a7b40b8426cac619106aac6991))
* **server data:** corrected st to st. for ti intergration ([082b36b](https://git.tuffraid.net/cowch/lstV2/commits/082b36ba2be7243179b1399126161878d23bc3a2))
## [2.19.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.18.0...v2.19.0) (2025-05-02)
### 🐛 Bug fixes
* **fakeedi updates:** corrected an issue where multi orders would not update if 1 release was used ([7ed1c32](https://git.tuffraid.net/cowch/lstV2/commits/7ed1c32ae919baf5c1d4cf464a5d0d6057b456fb))
### 🌟 Enhancements
* **loreal:** vmi file can be sent over now ([a709be8](https://git.tuffraid.net/cowch/lstV2/commits/a709be838f65a750065269b4dd83a4ffd64c2feb))
### 🛠️ Code Refactor
* **blocking notification:** changed to look at the latest blocking order and only pull 1 at a t ([981c04e](https://git.tuffraid.net/cowch/lstV2/commits/981c04e7417cbdfb549d60a316d618b07e8eff8c))
* **blocking query:** changes made to only show 1 bo at a atime ([21bcdde](https://git.tuffraid.net/cowch/lstV2/commits/21bcdde625d953a53630f1345f68ab6c06b68aa6))
* **iowa1 and stp1:** now activated with ti ([6f46f40](https://git.tuffraid.net/cowch/lstV2/commits/6f46f40414efde78e2843c5b7b52b06f12336973))
* **serverdata:** updated mcd and dayton for tms ([e4a9726](https://git.tuffraid.net/cowch/lstV2/commits/e4a972643fcba842ed39a8ad58d3a9355db150ab))
### 📝 Testing Code
* **fifo index:** started process for fifo index ([c75b7c8](https://git.tuffraid.net/cowch/lstV2/commits/c75b7c8d54f10763a874ecf7a8501dbc177a8e71))
## [2.18.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.17.0...v2.18.0) (2025-04-29)
### 🛠️ Code Refactor
* **sql:** improved the return function to show data [] when not connected, prevents crashes ([ead63d4](https://git.tuffraid.net/cowch/lstV2/commits/ead63d4b4124b070679e6e781555047a8e4c5ad5))
* **swagger:** changes to the link so it opens in a new window ([b0f59b6](https://git.tuffraid.net/cowch/lstV2/commits/b0f59b6ec80a4dbd8304dd0018b56d0273600203))
* **tcp:** added in a destory function to make sure we always disconnect from the tcp device ([1b90129](https://git.tuffraid.net/cowch/lstV2/commits/1b901295164f37ec9620f48a06c188140d5fb89c))
* **time:** more time changes to fix 24 hour format ([3cb7fd2](https://git.tuffraid.net/cowch/lstV2/commits/3cb7fd2e1b49425a9ad6e7ffab9c1c11fbc6b593))
### 🌟 Enhancements
* **dm:** added in so test and dev see everything always ([63b59fe](https://git.tuffraid.net/cowch/lstV2/commits/63b59fe5ac5a3c79df3a1760afbeb835280f2052))
* **fakeedi:** fake edi macro update implemented ([3e79017](https://git.tuffraid.net/cowch/lstV2/commits/3e79017afc4764ce41bbbf7a2a0cc9ffaf8111ac))
* **ocme:** added in option to manually add running number if camera isnt working ([9cea76e](https://git.tuffraid.net/cowch/lstV2/commits/9cea76e01fca91aaf5d2d9a520184429a9936737))
* **swagger link:** added in prod swagger link to admin panel ([67d47ee](https://git.tuffraid.net/cowch/lstV2/commits/67d47ee0309ba74b0e2f0edf613e98542d2e918b))
### 📝 Testing Code
* **outbound:** test for outbound deliveryes edit ([75ff724](https://git.tuffraid.net/cowch/lstV2/commits/75ff7248057211a588c30794be27af25a09e3487))
### 🐛 Bug fixes
* **abbott orders:** corrected the ignore function for already in progress orders ([2bc9e88](https://git.tuffraid.net/cowch/lstV2/commits/2bc9e88588b564e0728ab66c95d1597ed7da7656))
* **abbott:** fix to properly remove the space in the middle of the po ([17af377](https://git.tuffraid.net/cowch/lstV2/commits/17af3776d1964325dcc5af231187011195752ae7))
* **blocking orders:** removed some console logs ([9953846](https://git.tuffraid.net/cowch/lstV2/commits/9953846c7f8ed25108211362b014eb66e6b94c89))
* **datamart:** corrected endpoins due to recent sql changes ([b74a197](https://git.tuffraid.net/cowch/lstV2/commits/b74a197778065c53be1e0e94e5b6b7f8ce11d069))
* **datamart:** fixed to open order to show the correct customer release number ([cd3e6c8](https://git.tuffraid.net/cowch/lstV2/commits/cd3e6c81e417287f4dcab7bbdbd2dda97c5c0a43))
* **datamart:** typo in the get delivery by date range ([dbd3f76](https://git.tuffraid.net/cowch/lstV2/commits/dbd3f76f022f0c5ca26d27d4b6357fd5c731f88d))
* **lots:** missed .data on the lotInfo return ([eb0a5d6](https://git.tuffraid.net/cowch/lstV2/commits/eb0a5d63115d6f1d33835fb995ed65249400269f))
* **mmstaged check:** changes to prevent crash where lot sent over is not an object ([c5ebe4e](https://git.tuffraid.net/cowch/lstV2/commits/c5ebe4e2fa414540f9cac1babc52c3d1c6a4f2f7))
* **ocme counts:** corrected the reset on the tpye select to always clear out ([3dc14e4](https://git.tuffraid.net/cowch/lstV2/commits/3dc14e40970bab6a4ed9a26ceb8785349a9bb50d))
* **openorders:** changes to prevent and error during the get request due to missing data ([9c8249b](https://git.tuffraid.net/cowch/lstV2/commits/9c8249b2e492fa30492c48bdd6f06407abe21a38))
* **ppoo:** changes to prevent blank screen ([f35c481](https://git.tuffraid.net/cowch/lstV2/commits/f35c481aeccbe86285c4c2849c77decf3db44513))
* **stock silo data:** correction to how the data comes abck to us ([99bed6a](https://git.tuffraid.net/cowch/lstV2/commits/99bed6a8aafa82e6cd6d1649e7af6570c95144ba))
* **submodules:** correction to the role name so its now roles and properly updates ([e2152be](https://git.tuffraid.net/cowch/lstV2/commits/e2152becf73218b38d730834e1d9cbf8172f00c7))
## [2.17.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.16.1...v2.17.0) (2025-04-23)
### 🛠️ Code Refactor
* **profile updates:** added a link to the profile change email ([5a48dcf](https://git.tuffraid.net/cowch/lstV2/commits/5a48dcf55379aa1b622bfef6efbc1c66e7ada74e))
* **profile:** changed to patch vs posting ([57d3727](https://git.tuffraid.net/cowch/lstV2/commits/57d3727f490bf020044287dbc63f3f6268467de2))
### 📝 Testing Code
* **forecast:** loreal forecast starting ([c248cc0](https://git.tuffraid.net/cowch/lstV2/commits/c248cc012946dcfe1afb24724075180b6bccbf03))
### 🌟 Enhancements
* **build:** removed v1 from being built in ([a03130a](https://git.tuffraid.net/cowch/lstV2/commits/a03130a961bab430a1352a88ab8dda058f3b5ef6))
* **dm:** buttons to the nav bar if customs are made ([3c9e627](https://git.tuffraid.net/cowch/lstV2/commits/3c9e627021b31d6ba711324c00ca6514a4ab7b89))
* **dm:** standard forecast and orders in ([28b0508](https://git.tuffraid.net/cowch/lstV2/commits/28b050859a190c6cebbd0e524999c0a9c5b61bf0))
* **lst:** removed v1 from the update ([b290b21](https://git.tuffraid.net/cowch/lstV2/commits/b290b21ca2ace219f508ac2c97c85f062d1f4c2a))
* **orders:** energizer orders in ([e0df6b8](https://git.tuffraid.net/cowch/lstV2/commits/e0df6b8cd7bfe07415b7d0d074cb4b60c94f2b44))
* **password change:** added in password link to email and change in lst ([86905b5](https://git.tuffraid.net/cowch/lstV2/commits/86905b591ba9891cfdd1d0d8a02d78781179e488))
* **registerpage:** added in but hidden ([7152e72](https://git.tuffraid.net/cowch/lstV2/commits/7152e72822aecf5de6a9ac32057b8f9a26bb3907))
### 🐛 Bug fixes
* **lot assignment:** removed the return i had oops ([97cf624](https://git.tuffraid.net/cowch/lstV2/commits/97cf624440d5631494109054505b58c8ee91dd48))
* **register:** typo ([eac7444](https://git.tuffraid.net/cowch/lstV2/commits/eac74440386c6e83655e18096a3da476865259f0))
### [2.16.1](https://git.tuffraid.net/cowch/lstV2/compare/v2.16.0...v2.16.1) (2025-04-23)
## [2.16.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.15.0...v2.16.0) (2025-04-22)
### 🚀 Performance
* **db:** better control over how we stay connected ([2eafbdf](https://git.tuffraid.net/cowch/lstV2/commits/2eafbdf45eb0725b04de1ab71492a3ef57645e72))
### 🌟 Enhancements
* **abbott import:** custom abbott import with time and date correction ([07c0be0](https://git.tuffraid.net/cowch/lstV2/commits/07c0be0ea161763dc9fccf510156ab115aca02a9))
* **bulk orders:** standard template created ([632e079](https://git.tuffraid.net/cowch/lstV2/commits/632e07967aaf60deb6425ac27ffc2274ce770907))
* **dm:** added import and exports plus first custom for dayton ([8422955](https://git.tuffraid.net/cowch/lstV2/commits/8422955d3988da835738c6af334a946b079aecaf))
* **forecast:** migrated forecast over ([dcfa96b](https://git.tuffraid.net/cowch/lstV2/commits/dcfa96b710333f96857a398aea9d8a694993e4ae))
* **manual print options:** added in block for printing and new log type ([af8d53c](https://git.tuffraid.net/cowch/lstV2/commits/af8d53cac1cb95c917ac5084e8d61849b441757e))
* **ocme cycle counts:** tracking of cycle counts and when they were done ([95ca2ff](https://git.tuffraid.net/cowch/lstV2/commits/95ca2ff2b3bab09bfb1d72a7ec3f7dff72bd8d0f))
* **ocme:** cycle count added to db will add to front end later for users to inspect ([fbc2282](https://git.tuffraid.net/cowch/lstV2/commits/fbc2282aee4e559ffc5c9a596264e50dddecaf3e))
* **openorders:** new open order card and page ([9cb8ca6](https://git.tuffraid.net/cowch/lstV2/commits/9cb8ca681309716479ddf741e0aeef7027685ef2))
* **quality:** addpallet and cycle pallets added ([c25c2d0](https://git.tuffraid.net/cowch/lstV2/commits/c25c2d006a491150b37a67d89673ba4228262c0a))
* **standard orders in:** multi customer orders in plus ignore already started ([68ccf23](https://git.tuffraid.net/cowch/lstV2/commits/68ccf2382bcc698c8d5a898d75b94f2db94af572))
### 📝 Testing Code
* **rfid:** more rfid work and tested working ([a68a3ba](https://git.tuffraid.net/cowch/lstV2/commits/a68a3ba640b26ae91e322169740aa196e0ac8871))
* **time:** more time testing ([6334efe](https://git.tuffraid.net/cowch/lstV2/commits/6334efe0930af9227706a1c52d068d3c7ee45dd4))
### 🛠️ Code Refactor
* **bulk orders:** improvments and changes that i wanted in but missed ([ecb07c7](https://git.tuffraid.net/cowch/lstV2/commits/ecb07c7e7cbca9b486dfdcad17cdbfb8a057fe3f))
* **cards:** messing with the time in the cards ([5cdca0a](https://git.tuffraid.net/cowch/lstV2/commits/5cdca0a41f8147b7d9d4e0b5f4474a3cf98c7cf1))
* **dm:** repaced the orders in image with the new updated one ([06d2f14](https://git.tuffraid.net/cowch/lstV2/commits/06d2f1464bac83aa5ce30ae7635e5d718f9d9056))
* **inventory card:** change to 15min check ([2d39f93](https://git.tuffraid.net/cowch/lstV2/commits/2d39f93e42350699711642e74b97fca7624d6f21))
* **inventory card:** changed to 500 by default so we can scroll ([9a6cec6](https://git.tuffraid.net/cowch/lstV2/commits/9a6cec65cd74168a1bbe3dc8fc865db71958f87b))
* **lots:** changed the way the time looks ([26798ca](https://git.tuffraid.net/cowch/lstV2/commits/26798ca14087b0c2173a8adcb851c71d4c2c4616))
* **ocme:** moved the server port to the app vs ocme ([2343f93](https://git.tuffraid.net/cowch/lstV2/commits/2343f9387a39e6272de9e889d459b61085c7bc97))
* **ocp:** resizbale with scrollling added makes more easy to review if table overflows ([d0a19b5](https://git.tuffraid.net/cowch/lstV2/commits/d0a19b55892c3f00adef4d267482fa1e905b9655))
* **serverdata:** changed all server ports to 3000 ([dd7299a](https://git.tuffraid.net/cowch/lstV2/commits/dd7299ad76e802fabf2acefc049840a62ec814af))
* **services:** removed some comments that were no longer needed ([2ffc3cc](https://git.tuffraid.net/cowch/lstV2/commits/2ffc3cc24291434f7ea765e487525c7c9388e0b7))
* **standard in:** returns the orders in success or failed and why ([085dc64](https://git.tuffraid.net/cowch/lstV2/commits/085dc64db9615d291f45fa29513f904b8ee1b4b0))
* **updater:** removed v1 from restarting ([8c5c9fd](https://git.tuffraid.net/cowch/lstV2/commits/8c5c9fd24402fcfb419306ed42dc15aea4ca87ed))
* **v1 cleanup:** added in removal of localstoage items from v1 ([f44e5a8](https://git.tuffraid.net/cowch/lstV2/commits/f44e5a87e7dfa9f577c7dfad38a07cecb1ae8f49))
### 📚 Documentation
* **macrotemplate:** bump version so everyone gets the new sheety ([abc3963](https://git.tuffraid.net/cowch/lstV2/commits/abc39634fb3b951c7e94e6f82b459ae46466e813))
### 🐛 Bug fixes
* **auth:** corrected to remove localstorage ([e780a24](https://git.tuffraid.net/cowch/lstV2/commits/e780a24a8ab1170dd5c79c82f1c64f3c24712740))
* **blocking notification:** added throw error so i get an email when it errors ([a3732c0](https://git.tuffraid.net/cowch/lstV2/commits/a3732c02082e110c6447c5a686c5d945c19e4832))
* **log cleanup:** corrected the level look at ([8240e9c](https://git.tuffraid.net/cowch/lstV2/commits/8240e9c5d313326fb1d168a2820810c7c4747013))
* **lots errors:** fixes to prevent crashes when sql server not connected ([d5114ba](https://git.tuffraid.net/cowch/lstV2/commits/d5114ba2435ecb90a1f307c2e3c3d8dcf3dbf8a3))
* **lst:** removed console log on useraccess ([92dc385](https://git.tuffraid.net/cowch/lstV2/commits/92dc3855b943252cba96c5e5f982c364155f6a47))
* **manual print form:** corrected typos and name ([e9cb3e5](https://git.tuffraid.net/cowch/lstV2/commits/e9cb3e5db4e29efc583822c2c2ce0703ebcffb2c))
* **ocme:** added in field catch ([917090e](https://git.tuffraid.net/cowch/lstV2/commits/917090eaa9540a0997553ff176bcf6852907c769))
* **ocme:** cycle counts on an empty stock row would crash corrected so this wont happen ([d65450d](https://git.tuffraid.net/cowch/lstV2/commits/d65450d5ee5e488766323c40fb782b4d5133afd9))
* **ocp page:** changed to localhost for dev it was showing the card twice ([c79496e](https://git.tuffraid.net/cowch/lstV2/commits/c79496eaac76f3423f2ac66b07d5f7783d41569b))
* **time:** changes the labeling time to be our db version ([bb6d1c3](https://git.tuffraid.net/cowch/lstV2/commits/bb6d1c3bffa21a00b30d0e5d418b337c5ee1dcaf))
## [2.15.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.14.0...v2.15.0) (2025-04-14)
### 📝 Testing Code
* **notification:** added framework for managment tab ([ae7ea2b](https://git.tuffraid.net/cowch/lstV2/commits/ae7ea2bb90c2608b14c9c912da8a5c55255ebe6e))
* **notifications mgt:** added new mgt for notifications to turn off and on in the ui ([9baeb1c](https://git.tuffraid.net/cowch/lstV2/commits/9baeb1ceffb8827d01dae9e3993b8ff605b46453))
* **printers:** added in management tab for printers ([bb20046](https://git.tuffraid.net/cowch/lstV2/commits/bb20046890dbab9fd5bcbcd443322b5f5427c5cf))
* **quality:** added in framrwork ([328b61f](https://git.tuffraid.net/cowch/lstV2/commits/328b61f6cc359b15a920e9a721a2ecf2d889df85))
### 🐛 Bug fixes
* **datamart:** corrected the date grab to be print date vs delivery date ([2a6af06](https://git.tuffraid.net/cowch/lstV2/commits/2a6af066bc43cb0d19d29c0362abcfaca6ab85a7))
* **labeling process:** corrected a typo in success ([acd89d9](https://git.tuffraid.net/cowch/lstV2/commits/acd89d926cee5705c4102508385e0d7f977b88fe))
### 🌟 Enhancements
* **cards:** migrated cards over ([087d14c](https://git.tuffraid.net/cowch/lstV2/commits/087d14c5859650ad4cb8ebfee8d5837b940ef0f3))
* **changelog:** added in a place to see the changelogs ([242b90c](https://git.tuffraid.net/cowch/lstV2/commits/242b90c75a93ebaa44ba03640386ac4d398c9b38))
* **db cleanup:** added a cleanup for labels this checks daily ([450e5ac](https://git.tuffraid.net/cowch/lstV2/commits/450e5acd341e5e3793e65da461f5021de875cd77))
* **exports:** added in a button to export the lanes to cycle count ([2578570](https://git.tuffraid.net/cowch/lstV2/commits/25785703db4d7989ab54bd47dda16f38a4407be3))
### 🛠️ Code Refactor
* **addcards:** changes the way it looks ([a0afb30](https://git.tuffraid.net/cowch/lstV2/commits/a0afb305fc9e575305d5c9185ad576a04c5c921b))
* **cards:** allow for changes to the existing card and corrected the display of current stats ([d4edeb1](https://git.tuffraid.net/cowch/lstV2/commits/d4edeb15d9ff6f5fc1814528524f6e6084e3c7e0))
* **label logs:** changed to tanstack table ([1bc7949](https://git.tuffraid.net/cowch/lstV2/commits/1bc7949f30d1cd9d4bc7d37941e0be35797afc1e))
* **modules:** removed a console log ([17773e9](https://git.tuffraid.net/cowch/lstV2/commits/17773e9a23f93d85797f62310a306d6353b3f835))
* **ocp logs:** changed table data to tanstack ([1a5d066](https://git.tuffraid.net/cowch/lstV2/commits/1a5d066eb46faf67aebfea17f323f8b6a8be490d))
* **ocplogs:** removed imports not needed ([a751bb6](https://git.tuffraid.net/cowch/lstV2/commits/a751bb6a50a46556b1131427e2888b58de3c9b3d))
## [2.14.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.13.0...v2.14.0) (2025-04-13)
### 🛠️ Code Refactor
* **auth:** added module and submodule access to the user ([efc630f](https://git.tuffraid.net/cowch/lstV2/commits/efc630f5f8dba2583f57fac74f596905240ff6e8))
* **database:** removed the createAt as it was a duplicate ([ca0b027](https://git.tuffraid.net/cowch/lstV2/commits/ca0b027e67d3d0f78846f7b7364faed5f1be2ed0))
* **formatting:** formatting due to new default settings ([b5b57fe](https://git.tuffraid.net/cowch/lstV2/commits/b5b57fe3bf20ca9bc9b8ed87b22f2980bbd1b6f9))
* **ocp:** added default time in for each printer to allow different delays ([85e3d46](https://git.tuffraid.net/cowch/lstV2/commits/85e3d46b2e6e2bd80a5fe9ee3ce855bd7f0c6436))
* **ocp:** change the way logs are brought in and other changes to clean the code up ([2e2699a](https://git.tuffraid.net/cowch/lstV2/commits/2e2699ab3c3786f36206629f069cfbd293c2dc29))
* **serverpage:** added in linke to server by clicking the name ([ded074a](https://git.tuffraid.net/cowch/lstV2/commits/ded074a1ce5cbe0e018c6201d1d9903a1fade97b))
### 🐛 Bug fixes
* **database:** corrected spelling in the silo adjustment id ([b589bf9](https://git.tuffraid.net/cowch/lstV2/commits/b589bf972409f242b0cb6d2e3fb34f65417cc8bb))
* **labeling:** if label fails we want to stop the process and post the why ([92d251c](https://git.tuffraid.net/cowch/lstV2/commits/92d251c122618f27d01b84c861848ea5ff9d81cc))
* **lots:** if no sql it crashs due to lots returning a non error ([dd6895f](https://git.tuffraid.net/cowch/lstV2/commits/dd6895fac26d051e5f91094c4ca97fe59c924774))
* **ocp:** removed the auto labeler from cycleing due to causuing delay in printing ([95c869d](https://git.tuffraid.net/cowch/lstV2/commits/95c869d667901cc51c8fe3b35d59d3bc2ea085a5))
* **submodules:** spelling crrections ([31fbfa4](https://git.tuffraid.net/cowch/lstV2/commits/31fbfa4eb3652dce011eb359497453489b1e29fa))
### 📝 Testing Code
* **auth:** more and more auth setup ([b630bae](https://git.tuffraid.net/cowch/lstV2/commits/b630bae50d43602212c230b58248ba5f93743f0b))
* **auth:** more permission testing ([9deedd8](https://git.tuffraid.net/cowch/lstV2/commits/9deedd86e5964bfff37d85f63a990ff0f7d8a0b9))
* **auth:** testing auth stuff ([d8edfaf](https://git.tuffraid.net/cowch/lstV2/commits/d8edfaf05f25c1009fbd9b44ece0bdd1b2d2ae84))
* **front end:** added in card test but removing ([3241cf8](https://git.tuffraid.net/cowch/lstV2/commits/3241cf810afed96e8b2dda13603205d8bcbca0b6))
* **logger:** trying to understand why debug is not actually showing in the console ([4effb25](https://git.tuffraid.net/cowch/lstV2/commits/4effb25e9d180d3e55cc9dfd12fdfd2b18d7e8bd))
* **ppoo:** added inn query for ppoo ([7532c89](https://git.tuffraid.net/cowch/lstV2/commits/7532c89ae2b3bc5397e6f601d4332d93344dc56d))
* **reporting:** more reporting tables for different reports ([9325e58](https://git.tuffraid.net/cowch/lstV2/commits/9325e58551729acfda9042cf5fb0daacb1f901f1))
* **silo:** backend silo stuff ([b4a4dfc](https://git.tuffraid.net/cowch/lstV2/commits/b4a4dfcb75193a928e493e7a493d056d91a70cf7))
* **silos:** more base line silo data to be implemented ([4371fcc](https://git.tuffraid.net/cowch/lstV2/commits/4371fcc028d2636387fb02a7d78a2375aa196e1c))
* **test code:** new test folder for testing stuff ([525de7d](https://git.tuffraid.net/cowch/lstV2/commits/525de7dab219dee55c62baedd74338520150cb2a))
### 🌟 Enhancements
* **cyclecountcheck:** added i cycle count check this is in mem right now ([6665b77](https://git.tuffraid.net/cowch/lstV2/commits/6665b77e092553eaa17a267914cf85ddb0264f81))
* **datamart:** delivery by date ranged added in, includes inhouse ([d96cd44](https://git.tuffraid.net/cowch/lstV2/commits/d96cd4416ee1d30521e8e14eeb3df079f635bebd))
* **ocp page:** changed to resizable panels as its kinda customizable ([17b6c0a](https://git.tuffraid.net/cowch/lstV2/commits/17b6c0ac66041e2f5e9d21d8a929436fbd0b4272))
* **ocp:** completly moved ocp to lst ([51cc4aa](https://git.tuffraid.net/cowch/lstV2/commits/51cc4aa3701db036477f8577ea4fedcd414a60f5))
* **ocp:** printer cycling backend and frontend done :) ([dc5ee5b](https://git.tuffraid.net/cowch/lstV2/commits/dc5ee5b97aeba66518daaf74f4e74799cfa01ca4))
* **silo adjustments:** added in email if % wrong ([95bebbd](https://git.tuffraid.net/cowch/lstV2/commits/95bebbde2bb6c59e41253fc71ddf9cc2f8f95402))
* **silo:** added in charts and historical data ([bad390e](https://git.tuffraid.net/cowch/lstV2/commits/bad390ec17948ba80118662127bab21a3f3ce6e2))
* **silo:** adjustments completed :D ([75f94ea](https://git.tuffraid.net/cowch/lstV2/commits/75f94eae14fe5afd76a843231658f268a09031e2))
## [2.13.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.12.0...v2.13.0) (2025-04-05)
### 📝 Chore
* **release:** bump build number to 148 ([2cc81a5](https://git.tuffraid.net/cowch/lstV2/commits/2cc81a5b07e6a31b6c7612bc8393b3e0614442fd))
### 🐛 Bug fixes
* **database:** correction to the printer modules ([8194798](https://git.tuffraid.net/cowch/lstV2/commits/8194798a3764d44abd7c1aef452ae2f4c8c100e9))
* **datamart:** added some fixed some ([5eacbb5](https://git.tuffraid.net/cowch/lstV2/commits/5eacbb5ecfe23ed9ac023649864d2d0a506dc657))
* **tcp:** added in a catch if ocme is not active and we dont have a zebra camera ([b9397c0](https://git.tuffraid.net/cowch/lstV2/commits/b9397c029f3c597d755c5b3ab3027dda2dfc0ef2))
### 🛠️ Code Refactor
* **materials:** moved for better sturcture ([99477ba](https://git.tuffraid.net/cowch/lstV2/commits/99477bac1974da3a0937b4244815a839416eaf40))
### 📝 Testing Code
* **frontend:** work on the frontend to have better admin ([ad5e770](https://git.tuffraid.net/cowch/lstV2/commits/ad5e77028d59c31405df6cc17fc0c8084dddad5a))
* **ocp:** working on more migrations ([9f26f23](https://git.tuffraid.net/cowch/lstV2/commits/9f26f2334f0bcae3ca26acd240ed9b638fe88b03))
### 🌟 Enhancements
* **notificaitons:** fixed and corrections to get them working properly ([a7818b4](https://git.tuffraid.net/cowch/lstV2/commits/a7818b4ca3bf2df530e3e7df8ec389bf4f5ebc5a))
* **siloadjustments:** added email for comments :D ([f1abe7b](https://git.tuffraid.net/cowch/lstV2/commits/f1abe7b33d7b390ee54bc0fa5bd4c39c156f4f05))
* **submodules and login redirect:** submodules added and login redirect ([85577b2](https://git.tuffraid.net/cowch/lstV2/commits/85577b291f60744749abfd815efd6feceb393478))
* **submodules:** to help with submodules of course ([e1973e4](https://git.tuffraid.net/cowch/lstV2/commits/e1973e4da659948e6d49f6f5d162a8b2fb8e512d))
* **update all:** added a new function to update all servers in a row. easier to walk away ([8b5698a](https://git.tuffraid.net/cowch/lstV2/commits/8b5698a8391260fcc400117562668434bbc9e8af))
## [2.12.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.11.0...v2.12.0) (2025-04-03)
### 📝 Chore
* **release:** bump build number to 126 ([1156bbd](https://git.tuffraid.net/cowch/lstV2/commits/1156bbd223d5631e22d961963fca952709d1cf12))
* **release:** bump build number to 127 ([6d5bcde](https://git.tuffraid.net/cowch/lstV2/commits/6d5bcde88e9960a0565906edd270db294a0a9927))
* **release:** bump build number to 128 ([fb41fb1](https://git.tuffraid.net/cowch/lstV2/commits/fb41fb1dd180a2cfe523fa41990e929d0d3ce0fd))
* **release:** bump build number to 129 ([9394172](https://git.tuffraid.net/cowch/lstV2/commits/93941723ccb83c530591d5fedec1904d2a3a06f8))
* **release:** bump build number to 130 ([6ec9f58](https://git.tuffraid.net/cowch/lstV2/commits/6ec9f5827c98e355d32b78bed5fb757ae4c257b7))
* **release:** bump build number to 131 ([075bba9](https://git.tuffraid.net/cowch/lstV2/commits/075bba95ee86c2592101f7a72345e58affd2e24f))
* **release:** bump build number to 132 ([16b39fd](https://git.tuffraid.net/cowch/lstV2/commits/16b39fd386ad89867495c346e7a59162f88f6e73))
* **release:** bump build number to 133 ([8c6dc5f](https://git.tuffraid.net/cowch/lstV2/commits/8c6dc5f690c5517781435833cd5fd62dd912f377))
* **release:** bump build number to 134 ([8a639ce](https://git.tuffraid.net/cowch/lstV2/commits/8a639ceaf8b192d76f2823f9f141176403c0f688))
* **release:** bump build number to 135 ([0d06dae](https://git.tuffraid.net/cowch/lstV2/commits/0d06dae6de83a42f216c9ccdefbfebd5cce84a05))
* **release:** bump build number to 136 ([3e54685](https://git.tuffraid.net/cowch/lstV2/commits/3e54685a7e45258d53e54448b74a61752d607c9f))
* **release:** bump build number to 137 ([f442ced](https://git.tuffraid.net/cowch/lstV2/commits/f442cedff2e0b0487d7eff292fe30ff3b5f75bae))
* **release:** bump build number to 138 ([68dac0d](https://git.tuffraid.net/cowch/lstV2/commits/68dac0dd28e954301b1d04f37ab9c28c9a741050))
* **release:** bump build number to 139 ([7535e15](https://git.tuffraid.net/cowch/lstV2/commits/7535e15337ddd4a2dd61c0e9917fbbb3933d0d1c))
* **release:** bump build number to 140 ([459b0f2](https://git.tuffraid.net/cowch/lstV2/commits/459b0f287c4f02fcb81c0a5041f1d61472e85f86))
* **release:** bump build number to 141 ([29c9f2d](https://git.tuffraid.net/cowch/lstV2/commits/29c9f2d1be41205f2178fd54155001d31fc24e92))
* **release:** bump build number to 142 ([3babf8a](https://git.tuffraid.net/cowch/lstV2/commits/3babf8a7495f6204a4599619b66f9d01c99896b4))
* **release:** bump build number to 143 ([1dce3dc](https://git.tuffraid.net/cowch/lstV2/commits/1dce3dccdcc1a0921bf429e101d3426038f4fb8c))
* **release:** bump build number to 144 ([1fee4b7](https://git.tuffraid.net/cowch/lstV2/commits/1fee4b719bbda65574f474f29234a1d483d376cf))
* **release:** bump build number to 145 ([d10770b](https://git.tuffraid.net/cowch/lstV2/commits/d10770bc49793c58458b5c2e29967731c29d0105))
* **release:** bump build number to 146 ([77abaed](https://git.tuffraid.net/cowch/lstV2/commits/77abaed60ea236dad589bd66ba9337548b9c69a3))
* **release:** bump build number to 147 ([7e484a0](https://git.tuffraid.net/cowch/lstV2/commits/7e484a0f90f34addab780d019684d2321446081b))
### 📝 Testing Code
* **services:** testing remove restart and stop ([3355eb3](https://git.tuffraid.net/cowch/lstV2/commits/3355eb389ca81481ba25e057d0fb1f9dbc55fea1))
### 🛠️ Code Refactor
* **compile:** changes to keep the last 20 builds ([bc2336e](https://git.tuffraid.net/cowch/lstV2/commits/bc2336e46dd264c3f6006ccec4494a92879a087a))
* **ocme:** crashing for no reason added ?? ([4f3b5d7](https://git.tuffraid.net/cowch/lstV2/commits/4f3b5d75a28b3b19a8685f0282bb80caf7562135))
* **ocp:** more work on perfecting dyco and labeling ([8bdbc49](https://git.tuffraid.net/cowch/lstV2/commits/8bdbc4995c7c2251b263b94c9a377750a8ee0818))
### 🐛 Bug fixes
* **ocme:** cycle count typos ([ee3026f](https://git.tuffraid.net/cowch/lstV2/commits/ee3026fa7cfa290e973cce97a90b7f4bdc0d2a64))
* **ocp:** delivery changes to happen after bookin is done ([f771db6](https://git.tuffraid.net/cowch/lstV2/commits/f771db603483317c30182753f53d5ca55b5e4ec4))
* **perms:** fixed the location for the test update ([053c05c](https://git.tuffraid.net/cowch/lstV2/commits/053c05c1a797160364e999fdc4bfb2e276ccadd0))
* **sendmail:** if server not installed just stop ([de0ee3a](https://git.tuffraid.net/cowch/lstV2/commits/de0ee3a61c3eeb379b4c8b88990251943cd0b609))
* **ti intergraion:** chagnes to the special instructions ([a1f62a3](https://git.tuffraid.net/cowch/lstV2/commits/a1f62a3e5122a635fbe475919f33ee93b1f7a458))
* **update server missing migrate:** missing ([544e82c](https://git.tuffraid.net/cowch/lstV2/commits/544e82c01dce1204667fbf068cc5e92b772bf413))
* **updater:** fixed the iowa2 server so it has the correct port ([dd62ceb](https://git.tuffraid.net/cowch/lstV2/commits/dd62ceb133e924f0dcc1d666c1bdf7af61c67fdb))
### 🌟 Enhancements
* **datamart:** initial get active query migrated ([44507d4](https://git.tuffraid.net/cowch/lstV2/commits/44507d41c42f07cf3ab4825a848821dde4cf892d))
* **datamart:** total inv migrated over ([b2683d0](https://git.tuffraid.net/cowch/lstV2/commits/b2683d042921b6adc7ebf274bd079d3bd28aa2eb))
* **new server:** added mcd to the server setup ([f481197](https://git.tuffraid.net/cowch/lstV2/commits/f481197d6e0fe0280fde4b4223094c0af274bcbe))
* **notifications:** migrated all from v1 ([5c64280](https://git.tuffraid.net/cowch/lstV2/commits/5c642805b1db87ba5cbdde31d2579709c476aa1f))
* **ocp:** added dual printing back in ([814861e](https://git.tuffraid.net/cowch/lstV2/commits/814861e59cfefa8e5f07fa0ec1231b4b55c6f694))
* **servers:** added in jci lima sherman ([63e005b](https://git.tuffraid.net/cowch/lstV2/commits/63e005b790571e25a8c2a9bac1bccef2141cde92))
* **servers:** all servers in v2 meow ([d27611d](https://git.tuffraid.net/cowch/lstV2/commits/d27611d035f5b0ff5e5bc8ae262550d9c75b9c8c))
## [2.11.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.10.0...v2.11.0) (2025-03-30)
### 🌟 Enhancements
* **auth:** admin user updates added ([a48d4bd](https://git.tuffraid.net/cowch/lstV2/commits/a48d4bd5afb53d9242a8ba13fef5dab2e2d0e4fe))
* **lst:** script added for the test server to readd the permissions once it boots up ([3228ad7](https://git.tuffraid.net/cowch/lstV2/commits/3228ad789206a2fd477060fa6849850af52523b1))
* **rfid:** work on the readers and there functions ([b5de644](https://git.tuffraid.net/cowch/lstV2/commits/b5de6445b382e7f7d7c8ce5893138a1a86a56eb2))
* **updater:** added in a delete function for the server side ([0ced135](https://git.tuffraid.net/cowch/lstV2/commits/0ced135ec38590fd599e9a45542768b3790eb3db))
### 📝 Chore
* **release:** bump build number to 100 ([c474536](https://git.tuffraid.net/cowch/lstV2/commits/c474536992659b7ca789a5841441f1634de7a6dc))
* **release:** bump build number to 101 ([52171c8](https://git.tuffraid.net/cowch/lstV2/commits/52171c87fc4b5f15d964e6695dd4d9c2710ab961))
* **release:** bump build number to 102 ([290f20b](https://git.tuffraid.net/cowch/lstV2/commits/290f20b86b81fa82458c0317215dd614f3de73c2))
* **release:** bump build number to 103 ([1386e0f](https://git.tuffraid.net/cowch/lstV2/commits/1386e0f00f54a54f5b7645f2c1c23ebdd3228e59))
* **release:** bump build number to 104 ([ca41069](https://git.tuffraid.net/cowch/lstV2/commits/ca4106945b2c09ee495821c8c2452b5254e4df37))
* **release:** bump build number to 105 ([a01c056](https://git.tuffraid.net/cowch/lstV2/commits/a01c0566c2413e2ba68106e26eb9dc09c415ba92))
* **release:** bump build number to 106 ([c32547c](https://git.tuffraid.net/cowch/lstV2/commits/c32547ceb831c510797da8c3d99745bd2a843a1b))
* **release:** bump build number to 107 ([175c722](https://git.tuffraid.net/cowch/lstV2/commits/175c7226eda3cdd3d63febf6e058171c72d0cb5e))
* **release:** bump build number to 108 ([7d47338](https://git.tuffraid.net/cowch/lstV2/commits/7d4733896e5f9578c60133cb5c871139e1ac332c))
* **release:** bump build number to 109 ([d58cb52](https://git.tuffraid.net/cowch/lstV2/commits/d58cb5286e85f49e327134f2b957c56fdd1a319a))
* **release:** bump build number to 110 ([d557728](https://git.tuffraid.net/cowch/lstV2/commits/d557728fa25c33a95ae99559ddc4ce7b2f7a0cad))
* **release:** bump build number to 111 ([f3103d8](https://git.tuffraid.net/cowch/lstV2/commits/f3103d8c1a027d3364540b9044a298346bce1ead))
* **release:** bump build number to 112 ([f0b9bd5](https://git.tuffraid.net/cowch/lstV2/commits/f0b9bd599a9da86b36dd952b8d3dc47116add380))
* **release:** bump build number to 113 ([ff1dfdd](https://git.tuffraid.net/cowch/lstV2/commits/ff1dfdde68335907e8e24f0f011cc611d5de3b0c))
* **release:** bump build number to 114 ([fb31ae7](https://git.tuffraid.net/cowch/lstV2/commits/fb31ae79d125c6b672608b56b02d9c7239250d19))
* **release:** bump build number to 115 ([ac7859f](https://git.tuffraid.net/cowch/lstV2/commits/ac7859fda34606874a05f8665fe7478cf79d7037))
* **release:** bump build number to 116 ([88258ba](https://git.tuffraid.net/cowch/lstV2/commits/88258baf9d71cba38f987851e62363563f28d6ae))
* **release:** bump build number to 116 ([82acfcc](https://git.tuffraid.net/cowch/lstV2/commits/82acfcc4a9effbdf5fe8debd4617b3cfca01c0ea))
* **release:** bump build number to 117 ([d046c4e](https://git.tuffraid.net/cowch/lstV2/commits/d046c4ea41d7b16f7fb109ae1ab728edd1dbcb97))
* **release:** bump build number to 118 ([1f7c33d](https://git.tuffraid.net/cowch/lstV2/commits/1f7c33d871ce408440739bfad16165aa0dd2f982))
* **release:** bump build number to 119 ([035eda9](https://git.tuffraid.net/cowch/lstV2/commits/035eda9aa8212443c1147d420fb30fdb09b3ff35))
* **release:** bump build number to 120 ([b903c8e](https://git.tuffraid.net/cowch/lstV2/commits/b903c8ee2d9f5c0cb63404f232f235d2f9ddeb81))
* **release:** bump build number to 121 ([af5dc92](https://git.tuffraid.net/cowch/lstV2/commits/af5dc9266f5a75c0065615f1526a2ee726b66a02))
* **release:** bump build number to 122 ([28fbf2c](https://git.tuffraid.net/cowch/lstV2/commits/28fbf2c1e43996c50eca7d3b7145bd7dec31f1de))
* **release:** bump build number to 123 ([09c0825](https://git.tuffraid.net/cowch/lstV2/commits/09c082519467c85240c8ed89123cb260c0011514))
* **release:** bump build number to 124 ([098c477](https://git.tuffraid.net/cowch/lstV2/commits/098c477119c5accb0146f7bd125f80197bb44210))
* **release:** bump build number to 125 ([a647d05](https://git.tuffraid.net/cowch/lstV2/commits/a647d05d3b8aa0ec3cd8fa1dc05fbed02476769a))
* **release:** bump build number to 93 ([b4e0f4c](https://git.tuffraid.net/cowch/lstV2/commits/b4e0f4c66687d8957fa81076687d0504582812aa))
* **release:** bump build number to 94 ([f39ae0f](https://git.tuffraid.net/cowch/lstV2/commits/f39ae0f590c17e4fc4b278296f86562c572bc6d2))
* **release:** bump build number to 95 ([278c553](https://git.tuffraid.net/cowch/lstV2/commits/278c5538bcea651f06c11f5be9f4948e328261c1))
* **release:** bump build number to 96 ([ca552d5](https://git.tuffraid.net/cowch/lstV2/commits/ca552d55878bc52e01186b09b6721af24faa445b))
* **release:** bump build number to 97 ([c03b61f](https://git.tuffraid.net/cowch/lstV2/commits/c03b61f48a32cef3e03f3da8d0f70edbcecd0e59))
* **release:** bump build number to 98 ([ea7801f](https://git.tuffraid.net/cowch/lstV2/commits/ea7801fccf7ecf176804fd10fac6db91321402d7))
* **release:** bump build number to 99 ([600a989](https://git.tuffraid.net/cowch/lstV2/commits/600a98922630f0694971e110db2f8bf997571e36))
### 🛠️ Code Refactor
* **format changes:** changes to the file formats to match across computers ([9784072](https://git.tuffraid.net/cowch/lstV2/commits/9784072aab3245d52b9a8d0d6a3a5a7716e61e0c))
* **logger:** changed log level to be in the env file vs hardcoded ([f9f68ce](https://git.tuffraid.net/cowch/lstV2/commits/f9f68ce969e6d87a23c1be21fd9877d2dfa6f6cc))
* **lst:** added huston backin ([11e5cf4](https://git.tuffraid.net/cowch/lstV2/commits/11e5cf4d865f93d65d870bff4bde96288c04db24))
* **lst:** added in a removal of old files so we can keep the server clean ([c27ad7c](https://git.tuffraid.net/cowch/lstV2/commits/c27ad7cf6a5ea2ee636c1b25a66773b07a897a3e))
* **ocme:** added new error in posting where we know when the pallet is not instock ([27d6b6e](https://git.tuffraid.net/cowch/lstV2/commits/27d6b6e88423ee201e30bbcc3747126c8567801c))
* **ocp:** finished the dashboard and move logs and labels to a tab style ([7b1c6e1](https://git.tuffraid.net/cowch/lstV2/commits/7b1c6e1361fcc93729c250db29e828d6d07ca387))
* **ocp:** lots of work for rfid and dyco contorl ([ba3d721](https://git.tuffraid.net/cowch/lstV2/commits/ba3d721940e800b61aeba6f3c81d9af40be01c9c))
* **server:** removed console logs ([a5dee58](https://git.tuffraid.net/cowch/lstV2/commits/a5dee582236d3c1ab581b63fd463439a4d9e8176))
### 🐛 Bug fixes
* **admin auth:** added in role change for v1 ([f9096b5](https://git.tuffraid.net/cowch/lstV2/commits/f9096b54f5902d19226e9e5728ffa4c64d8062f9))
* **logger:** changes to get the most recent verse aged ([2c8d1fb](https://git.tuffraid.net/cowch/lstV2/commits/2c8d1fb71045dcd241e62b4ee2f1c03ae3690e5b))
* **misc:** work on ocp to improve the errors that were missed and better logging ([63b1151](https://git.tuffraid.net/cowch/lstV2/commits/63b1151cb7e1d81b080c28dbec569c851fa1b48a))
* **ocme:** fixed to make sure we can always just update a runnning nunmber ([e3ba45a](https://git.tuffraid.net/cowch/lstV2/commits/e3ba45ae13ddc21525c6113bf0f6dca2d2965637))
## [2.10.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.9.0...v2.10.0) (2025-03-27)
### 📝 Testing Code
* **ocme:** lots of changes to get it working in production ([6dd9ed8](https://git.tuffraid.net/cowch/lstV2/commits/6dd9ed848bc7d4e8a62778cfe36f89e077187157))
### 📈 Project changes
* **lst:** changes made to the settings file to work across all pvs ([5149de3](https://git.tuffraid.net/cowch/lstV2/commits/5149de3199d3aaf349b8a4c99d5db83f8d04ae49))
### 🐛 Bug fixes
* **logistics:** correction to the lane grab ([2d4b1db](https://git.tuffraid.net/cowch/lstV2/commits/2d4b1db5f4697770aee8829764bd85643893d3e8))
* **lst:** missing , in versionRc ([c35726b](https://git.tuffraid.net/cowch/lstV2/commits/c35726bf5ccd6565abda37c6618a34e975e70d41))
* **ocme:** corrections to posting data for the response was added ([dcb56d4](https://git.tuffraid.net/cowch/lstV2/commits/dcb56d427458c774b462e78daba6fee4afefd525))
* **ocme:** fixed some import errors ([b01980e](https://git.tuffraid.net/cowch/lstV2/commits/b01980e1c5a8833b25ea557a2da07b74560526e3))
* **ocme:** fixed the camera routes ([51267f5](https://git.tuffraid.net/cowch/lstV2/commits/51267f5202ceebe1c31c819395e1588d47657c38))
* **servers:** fixed the weird conflict import that happened ([8a040d1](https://git.tuffraid.net/cowch/lstV2/commits/8a040d15dbf5de5fbb9949b7834c39b93b145aa7))
### 📝 Chore
* bump build number to 50 ([9bdca33](https://git.tuffraid.net/cowch/lstV2/commits/9bdca3317c7c213f9c5853222eafe1ab028b5f64))
* **release:** bump build number to 52 ([5886bea](https://git.tuffraid.net/cowch/lstV2/commits/5886bea85da30fe43635e05de1e9bc4f5789fa64))
* **release:** bump build number to 55 ([0c5fc1d](https://git.tuffraid.net/cowch/lstV2/commits/0c5fc1dfb0a8bee5cf7414733a555fe1b5888b8e))
* **release:** bump build number to 56 ([335ea2d](https://git.tuffraid.net/cowch/lstV2/commits/335ea2deca54dacda2117849104bf4c24faee3e8))
* **release:** bump build number to 57 ([6843368](https://git.tuffraid.net/cowch/lstV2/commits/6843368c3682bb56e5ce4aafbb18367e96a6016e))
* **release:** bump build number to 58 ([0475bb3](https://git.tuffraid.net/cowch/lstV2/commits/0475bb30f9d6d4e2d132b15b24d9ab225d8de3b9))
* **release:** bump build number to 59 ([9395ec6](https://git.tuffraid.net/cowch/lstV2/commits/9395ec6cd4483f52fcca949a95a4ceecaa843f65))
* **release:** bump build number to 60 ([57e82d2](https://git.tuffraid.net/cowch/lstV2/commits/57e82d23603622c301c7e6d636f9cec07d44e0b2))
* **release:** bump build number to 61 ([5ed67f3](https://git.tuffraid.net/cowch/lstV2/commits/5ed67f3fc0f99ca5344da8b73fd005184b89670b))
* **release:** bump build number to 62 ([c1cc355](https://git.tuffraid.net/cowch/lstV2/commits/c1cc355f4f4e74c3897cada64d961b28d24c07b2))
* **release:** bump build number to 63 ([e1cad02](https://git.tuffraid.net/cowch/lstV2/commits/e1cad027d2714ddf3289e31b5c3bbb96306f1f56))
* **release:** bump build number to 64 ([63177b5](https://git.tuffraid.net/cowch/lstV2/commits/63177b523e2dd1fabefe52f52dd3c6b3fcff9bcf))
* **release:** bump build number to 65 ([3a4dc47](https://git.tuffraid.net/cowch/lstV2/commits/3a4dc47a368bb20f622b7e4647337c5e68150db9))
* **release:** bump build number to 66 ([b3b5fce](https://git.tuffraid.net/cowch/lstV2/commits/b3b5fcec651e2bc585ecd4be03be4288867b214f))
* **release:** bump build number to 67 ([cb01ef1](https://git.tuffraid.net/cowch/lstV2/commits/cb01ef1af17e9c83753e09a1528e6140a4104273))
* **release:** bump build number to 68 ([4664768](https://git.tuffraid.net/cowch/lstV2/commits/46647687dc9938ecf6e72a63f15afc0e29bebcc4))
* **release:** bump build number to 69 ([2c227f9](https://git.tuffraid.net/cowch/lstV2/commits/2c227f94287a6ce9c06b0a41772085ba1f4f0cd3))
* **release:** bump build number to 70 ([96abef7](https://git.tuffraid.net/cowch/lstV2/commits/96abef762b77361c857642a33acfb69c0bc00666))
* **release:** bump build number to 71 ([836f3e2](https://git.tuffraid.net/cowch/lstV2/commits/836f3e294b4d92673388023503e409592ef95ba3))
* **release:** bump build number to 72 ([abe53b8](https://git.tuffraid.net/cowch/lstV2/commits/abe53b8f5d9bfbf517c7f56c5d4df2e4586aedbd))
* **release:** bump build number to 73 ([5201012](https://git.tuffraid.net/cowch/lstV2/commits/5201012235181975cb89aee8dbc644ca4aa42210))
* **release:** bump build number to 74 ([529e922](https://git.tuffraid.net/cowch/lstV2/commits/529e922485303251349c081ad8b2e9bee08dd420))
* **release:** bump build number to 75 ([b8c028a](https://git.tuffraid.net/cowch/lstV2/commits/b8c028a6c1fa54afeb049fd42e666bc40690aa4e))
* **release:** bump build number to 76 ([9254e52](https://git.tuffraid.net/cowch/lstV2/commits/9254e528086b95ada8c9dc4468f4fbb5b39fbd68))
* **release:** bump build number to 77 ([4d4d6fc](https://git.tuffraid.net/cowch/lstV2/commits/4d4d6fc7a4885b4b1652ac125a2b39b8325b0d6e))
* **release:** bump build number to 78 ([36cdc7b](https://git.tuffraid.net/cowch/lstV2/commits/36cdc7b4bf3bf90a785bab4d9892e65f84cb162a))
* **release:** bump build number to 79 ([8d2721b](https://git.tuffraid.net/cowch/lstV2/commits/8d2721b0c2f6255affcd9ec08427e1b4e6771107))
* **release:** bump build number to 80 ([cacfd6d](https://git.tuffraid.net/cowch/lstV2/commits/cacfd6d2e0e11ab7dbc5cb443a58df7bf8d2b8bb))
* **release:** bump build number to 81 ([2509888](https://git.tuffraid.net/cowch/lstV2/commits/250988800e1429a1f46005ae54a2a07d31fac3a8))
* **release:** bump build number to 82 ([c2aa69a](https://git.tuffraid.net/cowch/lstV2/commits/c2aa69ab0a2f925944abd1b78af6a8698249bff8))
* **release:** bump build number to 83 ([7f946c0](https://git.tuffraid.net/cowch/lstV2/commits/7f946c095b8c0208c97bd1bb2c33cf466a04d125))
* **release:** bump build number to 84 ([4162543](https://git.tuffraid.net/cowch/lstV2/commits/416254353cd0a926aaf14c343db2ad18f025b230))
* **release:** bump build number to 85 ([5d61eb8](https://git.tuffraid.net/cowch/lstV2/commits/5d61eb879e102939df56928cd8d57eda561aabca))
* **release:** bump build number to 86 ([5ab813f](https://git.tuffraid.net/cowch/lstV2/commits/5ab813f37894136549de0a05e5b4e2491220d16d))
* **release:** bump build number to 87 ([509ef84](https://git.tuffraid.net/cowch/lstV2/commits/509ef8472688ba655c524a1068c3721559f5da11))
* **release:** bump build number to 88 ([c0a0589](https://git.tuffraid.net/cowch/lstV2/commits/c0a0589b3c860ae8202a5dd230c18a3463cce857))
* **release:** bump build number to 89 ([af076b8](https://git.tuffraid.net/cowch/lstV2/commits/af076b8e27b599c479e4e51f38487cf4cb3cfa34))
* **release:** bump build number to 90 ([04aa943](https://git.tuffraid.net/cowch/lstV2/commits/04aa9439205f12bfe10b3fdf76a211a7b8178ac1))
* **release:** bump build number to 91 ([a31e7ea](https://git.tuffraid.net/cowch/lstV2/commits/a31e7ea1634fd6b10e22dff4ba93157c2be711ac))
* **release:** bump build number to 92 ([878e650](https://git.tuffraid.net/cowch/lstV2/commits/878e650e6237345d825632dff0387a89c7eee088))
### 🌟 Enhancements
* **logistics:** added in return material by lane name and gets lane id ([58f7b43](https://git.tuffraid.net/cowch/lstV2/commits/58f7b4322d3e523620f827a580ff5534b0be5f6c))
* **notify:** intial nofity system added to monitor crashes and rfid wrapper ([eb051d5](https://git.tuffraid.net/cowch/lstV2/commits/eb051d51f21b1ad617851fa3f4a1b8ba2f4fe4ac))
* **ocme:** manual camera trigger for the wrapper added ([bc18211](https://git.tuffraid.net/cowch/lstV2/commits/bc1821132e30be6b3a36bae63ce52fd4007f74dd))
* **ocp:** add lots with scroll view was added ([9e9a56c](https://git.tuffraid.net/cowch/lstV2/commits/9e9a56cbb15782770daf7e4ab08b31ad23df6c27))
* **ocp:** added in printers get and add ([f90066c](https://git.tuffraid.net/cowch/lstV2/commits/f90066c09020ebac03a93059c8e41f8531812c8a))
* **ocp:** added labeling logs in ([ceaa25f](https://git.tuffraid.net/cowch/lstV2/commits/ceaa25f31e6da526abd0350881e21984c66b455a))
* **ocp:** added wrappercard into the mix ([3b5e82f](https://git.tuffraid.net/cowch/lstV2/commits/3b5e82fdc122824b4f59f00f2ed59b90813694ba))
* **ocp:** create and book in plus dyco controller implemented ([7a1a477](https://git.tuffraid.net/cowch/lstV2/commits/7a1a4773e71cab93f36071530dbb5561e7592ec7))
* **ocp:** prodlink check added ([f9cd3fb](https://git.tuffraid.net/cowch/lstV2/commits/f9cd3fb8815635fdd0736b573dec86d14b24a6a7))
* **server:** clearn up code ([fe0c500](https://git.tuffraid.net/cowch/lstV2/commits/fe0c500dcfe317b3f67d67474fda7cf6872f3f37))
### 🛠️ Code Refactor
* **frontend:** prettier change to formatting ([c71b514](https://git.tuffraid.net/cowch/lstV2/commits/c71b514d9add69c63e608b22bd8a936fa770b167))
* **ocme:** clean up on the getInfo endpoint ([b9f1909](https://git.tuffraid.net/cowch/lstV2/commits/b9f19095cbd86569b58bec99575d924db997e385))
* **ocme:** cleaup on pickedup ([73aa95a](https://git.tuffraid.net/cowch/lstV2/commits/73aa95a6937129a36f6ece10ef8d6fd5f01a2b27))
* **ocme:** corrections to endpoints to work with ocnme as intneeded ([e6e1cec](https://git.tuffraid.net/cowch/lstV2/commits/e6e1cecce33b3c8cd94cf6372601c92f268b12a5))
* **ocme:** removed some info logs as ocme calls alot ([96e7f74](https://git.tuffraid.net/cowch/lstV2/commits/96e7f742fe68cc98de3039bd3dbfb2d27f6d7204))
* **ocp:** moved printers to there own folder to keep everything clean ([030f9f9](https://git.tuffraid.net/cowch/lstV2/commits/030f9f9aacdfcca1298a26be4442f5629626ba79))
* **rfid:** refactored station 3 (lines) and complete logic ([bd11feb](https://git.tuffraid.net/cowch/lstV2/commits/bd11feb1365ffb058283eb9384684c199ef9fd21))
* **rfid:** refactored the way the wrapper works to indlude backup dyco plan ([90e9bb0](https://git.tuffraid.net/cowch/lstV2/commits/90e9bb0ff6a2f598b055fae931a0d3c78f93e868))
* **server:** changed to log only when in dev, and removed the redirect of the url ([adf0880](https://git.tuffraid.net/cowch/lstV2/commits/adf08806593fdcd3a3d9d0a6d07f0262501e21ad))
* **tcpserver:** just the tcp server doing something ([04eb2e3](https://git.tuffraid.net/cowch/lstV2/commits/04eb2e3e145ba99b330ab627fcd9bae436e17fcf))
* **updateserver:** removed ocme from starting back up as it was migrated ([2551d6c](https://git.tuffraid.net/cowch/lstV2/commits/2551d6c9074a0338224d81e690600a7a4b9c9777))
## [2.9.0](https://git.tuffraid.net/cowch/lstV2/compare/v2.8.0...v2.9.0) (2025-03-23)

View File

@@ -1,4 +1,4 @@
import {drizzle} from "drizzle-orm/postgres-js";
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import dotenv from "dotenv";
@@ -6,6 +6,17 @@ dotenv.config();
const database = process.env.DATABASE_URL || "";
const queryClient = postgres(database);
const queryClient = postgres(database, {
max: 10,
idle_timeout: 60,
connect_timeout: 10,
max_lifetime: 1000 * 60 * 5,
onnotice: (notice) => {
console.log("PG NOTICE:", notice.message);
},
// debug: (...args) => {
// console.log("QUERY DEBUG:", ...args);
// },
});
export const db = drizzle({client: queryClient});
export const db = drizzle({ client: queryClient });

View File

@@ -0,0 +1,17 @@
CREATE TABLE "printers" (
"printer_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"humanReadableId" text,
"name" text NOT NULL,
"ipAddress" text,
"port" numeric NOT NULL,
"status" text,
"statusText" text NOT NULL,
"lastTimePrinted" text,
"assigned" boolean DEFAULT false NOT NULL,
"remark" text,
"monitorState" boolean DEFAULT false NOT NULL,
"add_Date" timestamp DEFAULT now(),
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE UNIQUE INDEX "humanReadableId" ON "printers" USING btree ("name");

View File

@@ -0,0 +1,3 @@
ALTER TABLE "printers" ALTER COLUMN "statusText" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "printers" ALTER COLUMN "assigned" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "printers" ALTER COLUMN "monitorState" DROP NOT NULL;

View File

@@ -0,0 +1 @@
ALTER TABLE "printers" ALTER COLUMN "port" DROP NOT NULL;

View File

@@ -0,0 +1,2 @@
DROP INDEX "humanReadableId";--> statement-breakpoint
CREATE UNIQUE INDEX "humanReadableId" ON "printers" USING btree ("humanReadableId");

View File

@@ -0,0 +1,4 @@
CREATE TABLE "prodlabels" (
"label_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"runningNr" integer NOT NULL
);

View File

@@ -0,0 +1,7 @@
ALTER TABLE "prodlabels" ADD COLUMN "printerID" integer;--> statement-breakpoint
ALTER TABLE "prodlabels" ADD COLUMN "printerName" text;--> statement-breakpoint
ALTER TABLE "prodlabels" ADD COLUMN "line" integer;--> statement-breakpoint
ALTER TABLE "prodlabels" ADD COLUMN "status" text;--> statement-breakpoint
ALTER TABLE "prodlabels" ADD COLUMN "add_date" timestamp;--> statement-breakpoint
ALTER TABLE "prodlabels" ADD COLUMN "upd_date" timestamp;--> statement-breakpoint
CREATE UNIQUE INDEX "runningNr" ON "prodlabels" USING btree ("runningNr");

View File

@@ -0,0 +1,4 @@
ALTER TABLE "prodlabels" ALTER COLUMN "add_date" SET DEFAULT now();--> statement-breakpoint
ALTER TABLE "prodlabels" ALTER COLUMN "upd_date" SET DEFAULT now();--> statement-breakpoint
ALTER TABLE "prodlabels" ADD COLUMN "add_user" text DEFAULT 'lst';--> statement-breakpoint
CREATE UNIQUE INDEX "ocme_runningNr" ON "ocmeData" USING btree ("runningNr");

View File

@@ -0,0 +1,13 @@
CREATE TABLE "notifications" (
"notify_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text NOT NULL,
"description" text NOT NULL,
"checkInterval" text DEFAULT '1',
"timeType" text DEFAULT 'hour',
"emails" text,
"active" boolean DEFAULT false,
"lastRan" timestamp DEFAULT now(),
"notifiySettings" jsonb DEFAULT '{}'::jsonb
);
--> statement-breakpoint
CREATE UNIQUE INDEX "notify_name" ON "notifications" USING btree ("name");

View File

@@ -0,0 +1,2 @@
ALTER TABLE "printers" ALTER COLUMN "lastTimePrinted" SET DATA TYPE timestamp;--> statement-breakpoint
ALTER TABLE "printers" ADD COLUMN "printDelay" numeric;

View File

@@ -0,0 +1,2 @@
ALTER TABLE "printers" ALTER COLUMN "lastTimePrinted" SET DEFAULT now();--> statement-breakpoint
ALTER TABLE "printers" ALTER COLUMN "lastTimePrinted" SET NOT NULL;

View File

@@ -0,0 +1 @@
ALTER TABLE "printers" ALTER COLUMN "lastTimePrinted" SET DATA TYPE timestamp with time zone;

View File

@@ -0,0 +1 @@
ALTER TABLE "printers" DROP COLUMN "lastTimePrinted";

View File

@@ -0,0 +1 @@
ALTER TABLE "printers" DROP COLUMN "printDelay";

View File

@@ -0,0 +1,19 @@
CREATE TABLE "printerData" (
"printer_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"humanReadableId" text,
"name" text NOT NULL,
"ipAddress" text,
"port" numeric,
"status" text,
"statusText" text,
"lastTimePrinted" timestamp DEFAULT now() NOT NULL,
"assigned" boolean DEFAULT false,
"remark" text,
"printDelay" numeric,
"monitorState" boolean DEFAULT false,
"add_Date" timestamp DEFAULT now(),
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
DROP TABLE "printers" CASCADE;--> statement-breakpoint
CREATE UNIQUE INDEX "humanReadableId" ON "printerData" USING btree ("humanReadableId");

View File

@@ -0,0 +1,17 @@
CREATE TABLE "subModules" (
"submodule_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"moduleName" text NOT NULL,
"name" text NOT NULL,
"description" text,
"link" text NOT NULL,
"active" boolean DEFAULT false,
"roles" jsonb DEFAULT '["systemAdmin"]'::jsonb NOT NULL,
"subSubModule" jsonb DEFAULT '[]'::jsonb,
"add_User" text DEFAULT 'LST_System' NOT NULL,
"add_Date" timestamp DEFAULT now(),
"upd_User" text DEFAULT 'LST_System' NOT NULL,
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
ALTER TABLE "subModules" ADD CONSTRAINT "subModules_moduleName_modules_name_fk" FOREIGN KEY ("moduleName") REFERENCES "public"."modules"("name") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
CREATE UNIQUE INDEX "subModule_name" ON "subModules" USING btree ("name");

View File

@@ -0,0 +1 @@
DROP INDEX "subModule_name";

View File

@@ -0,0 +1,3 @@
ALTER TABLE "subModules" DROP CONSTRAINT "subModules_moduleName_modules_name_fk";
--> statement-breakpoint
ALTER TABLE "subModules" ALTER COLUMN "moduleName" DROP NOT NULL;

View File

@@ -0,0 +1,12 @@
CREATE TABLE "siloAdjustments" (
"lsiloAdjust_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"level" integer,
"locationID" integer,
"currentStockLevel" numeric,
"newLevel" numeric,
"comments" text DEFAULT '',
"dateAdjusted" timestamp DEFAULT now(),
"lastDateAdjusted" timestamp DEFAULT now(),
"statusMessage" text DEFAULT '',
"add_user" text DEFAULT 'LST_Serivce'
);

View File

@@ -0,0 +1,5 @@
ALTER TABLE "siloAdjustments" ADD COLUMN "comment" text DEFAULT '';--> statement-breakpoint
ALTER TABLE "siloAdjustments" ADD COLUMN "commentAddedBy" text;--> statement-breakpoint
ALTER TABLE "siloAdjustments" ADD COLUMN "commentDate" text;--> statement-breakpoint
ALTER TABLE "siloAdjustments" DROP COLUMN "comments";--> statement-breakpoint
ALTER TABLE "siloAdjustments" DROP COLUMN "statusMessage";

View File

@@ -0,0 +1 @@
ALTER TABLE "siloAdjustments" ADD COLUMN "commentKey" text;

View File

@@ -0,0 +1 @@
CREATE UNIQUE INDEX "subModule_name" ON "subModules" USING btree ("name");

View File

@@ -0,0 +1 @@
ALTER TABLE "subModules" ADD COLUMN "icon" text;

View File

@@ -0,0 +1,2 @@
ALTER TABLE "siloAdjustments" RENAME COLUMN "lsiloAdjust_id" TO "siloAdjust_id";--> statement-breakpoint
ALTER TABLE "printerData" ALTER COLUMN "printDelay" SET DEFAULT '90';

View File

@@ -0,0 +1,23 @@
CREATE TABLE "qualityRequest" (
"request_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"article" numeric,
"description" text,
"runningNr" text,
"lotNr" numeric,
"warehouseAtRequest" text,
"locationAtRequest" text,
"warehouseMovedTo" text,
"locationMovedTo" text,
"durationToMove" numeric,
"locationDropOff" text,
"palletStatus" numeric,
"palletStatusText" text,
"palletRequest" numeric,
"add_date" timestamp DEFAULT now(),
"add_user" text DEFAULT 'LST',
"upd_date" timestamp DEFAULT now(),
"upd_user" text DEFAULT 'LST'
);
--> statement-breakpoint
ALTER TABLE "rfidReaders" ADD COLUMN "lastTagScanned" text;--> statement-breakpoint
ALTER TABLE "logs" DROP COLUMN "checkedAt";

View File

@@ -0,0 +1,3 @@
ALTER TABLE "qualityRequest" ALTER COLUMN "durationToMove" SET DATA TYPE integer;--> statement-breakpoint
ALTER TABLE "qualityRequest" ALTER COLUMN "palletStatus" SET DATA TYPE integer;--> statement-breakpoint
ALTER TABLE "qualityRequest" ALTER COLUMN "palletRequest" SET DATA TYPE integer;

View File

@@ -0,0 +1,10 @@
CREATE TABLE "ocmeCycleCounts" (
"ocme_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"laneId" integer,
"warehouseName" numeric NOT NULL,
"laneName" numeric NOT NULL,
"good" boolean DEFAULT false,
"cycleCount" jsonb DEFAULT '[]'::jsonb,
"add_User" text DEFAULT 'LST_System' NOT NULL,
"add_Date" timestamp DEFAULT now()
);

View File

@@ -0,0 +1,3 @@
ALTER TABLE "ocmeCycleCounts" ALTER COLUMN "laneId" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "ocmeCycleCounts" ALTER COLUMN "warehouseName" SET DATA TYPE text;--> statement-breakpoint
ALTER TABLE "ocmeCycleCounts" ALTER COLUMN "laneName" SET DATA TYPE text;

View File

@@ -0,0 +1,11 @@
CREATE TABLE "apiHits" (
"ip" text,
"endpoint" text,
"action" text,
"lastBody" text,
"stats" text,
"add_date" timestamp DEFAULT now(),
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE UNIQUE INDEX "endpoint" ON "apiHits" USING btree ("endpoint","ip");

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" ADD COLUMN "apiHit_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL;

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" ALTER COLUMN "stats" SET DATA TYPE integer;

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" DROP COLUMN "stats";

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" ADD COLUMN "stats" integer;

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" ALTER COLUMN "stats" SET DEFAULT 1;

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" DROP COLUMN "lastBody";

View File

@@ -0,0 +1 @@
ALTER TABLE "apiHits" ADD COLUMN "lastBody" jsonb;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -183,6 +183,251 @@
"when": 1742655504936,
"tag": "0025_amusing_sugar_man",
"breakpoints": true
},
{
"idx": 26,
"version": "7",
"when": 1742914066219,
"tag": "0026_daily_the_twelve",
"breakpoints": true
},
{
"idx": 27,
"version": "7",
"when": 1742917145140,
"tag": "0027_needy_sleepwalker",
"breakpoints": true
},
{
"idx": 28,
"version": "7",
"when": 1742917676211,
"tag": "0028_fast_wong",
"breakpoints": true
},
{
"idx": 29,
"version": "7",
"when": 1742917978318,
"tag": "0029_giant_blue_blade",
"breakpoints": true
},
{
"idx": 30,
"version": "7",
"when": 1742938986653,
"tag": "0030_conscious_cable",
"breakpoints": true
},
{
"idx": 31,
"version": "7",
"when": 1742939306614,
"tag": "0031_loud_alex_power",
"breakpoints": true
},
{
"idx": 32,
"version": "7",
"when": 1743124980863,
"tag": "0032_tough_iron_monger",
"breakpoints": true
},
{
"idx": 33,
"version": "7",
"when": 1743424730855,
"tag": "0033_flimsy_salo",
"breakpoints": true
},
{
"idx": 34,
"version": "7",
"when": 1743720994399,
"tag": "0034_massive_penance",
"breakpoints": true
},
{
"idx": 35,
"version": "7",
"when": 1743721140937,
"tag": "0035_even_adam_warlock",
"breakpoints": true
},
{
"idx": 36,
"version": "7",
"when": 1743721251498,
"tag": "0036_fixed_spacker_dave",
"breakpoints": true
},
{
"idx": 37,
"version": "7",
"when": 1743721424503,
"tag": "0037_cooing_orphan",
"breakpoints": true
},
{
"idx": 38,
"version": "7",
"when": 1743729665453,
"tag": "0038_lumpy_kitty_pryde",
"breakpoints": true
},
{
"idx": 39,
"version": "7",
"when": 1743771209867,
"tag": "0039_greedy_steve_rogers",
"breakpoints": true
},
{
"idx": 40,
"version": "7",
"when": 1743776921664,
"tag": "0040_luxuriant_aqueduct",
"breakpoints": true
},
{
"idx": 41,
"version": "7",
"when": 1743778410407,
"tag": "0041_wise_molten_man",
"breakpoints": true
},
{
"idx": 42,
"version": "7",
"when": 1743778477759,
"tag": "0042_big_power_pack",
"breakpoints": true
},
{
"idx": 43,
"version": "7",
"when": 1743809547351,
"tag": "0043_free_winter_soldier",
"breakpoints": true
},
{
"idx": 44,
"version": "7",
"when": 1743811709366,
"tag": "0044_hot_smasher",
"breakpoints": true
},
{
"idx": 45,
"version": "7",
"when": 1743819367359,
"tag": "0045_heavy_ravenous",
"breakpoints": true
},
{
"idx": 46,
"version": "7",
"when": 1743821039322,
"tag": "0046_keen_firebird",
"breakpoints": true
},
{
"idx": 47,
"version": "7",
"when": 1743822056329,
"tag": "0047_silky_starbolt",
"breakpoints": true
},
{
"idx": 48,
"version": "7",
"when": 1743946411873,
"tag": "0048_tearful_bushwacker",
"breakpoints": true
},
{
"idx": 49,
"version": "7",
"when": 1744649552936,
"tag": "0049_certain_tarot",
"breakpoints": true
},
{
"idx": 50,
"version": "7",
"when": 1744681925049,
"tag": "0050_flat_nuke",
"breakpoints": true
},
{
"idx": 51,
"version": "7",
"when": 1744684445081,
"tag": "0051_oval_warpath",
"breakpoints": true
},
{
"idx": 52,
"version": "7",
"when": 1744685129838,
"tag": "0052_dark_human_torch",
"breakpoints": true
},
{
"idx": 53,
"version": "7",
"when": 1747355241210,
"tag": "0053_short_colleen_wing",
"breakpoints": true
},
{
"idx": 54,
"version": "7",
"when": 1747355689811,
"tag": "0054_careless_ultron",
"breakpoints": true
},
{
"idx": 55,
"version": "7",
"when": 1747355837326,
"tag": "0055_sudden_frank_castle",
"breakpoints": true
},
{
"idx": 56,
"version": "7",
"when": 1747355877490,
"tag": "0056_breezy_inertia",
"breakpoints": true
},
{
"idx": 57,
"version": "7",
"when": 1747355892746,
"tag": "0057_orange_lady_deathstrike",
"breakpoints": true
},
{
"idx": 58,
"version": "7",
"when": 1747356938396,
"tag": "0058_cultured_argent",
"breakpoints": true
},
{
"idx": 59,
"version": "7",
"when": 1747357471279,
"tag": "0059_calm_energizer",
"breakpoints": true
},
{
"idx": 60,
"version": "7",
"when": 1747357513268,
"tag": "0060_daffy_overlord",
"breakpoints": true
}
]
}

View File

@@ -1,21 +1,30 @@
import {pgTable, text, timestamp} from "drizzle-orm/pg-core";
import {createSelectSchema} from "drizzle-zod";
import {
integer,
jsonb,
pgTable,
text,
timestamp,
uniqueIndex,
uuid,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
export const apiHits = pgTable(
"apiHits",
{
apiHit_id: uuid("apiHit_id").defaultRandom().primaryKey(),
ip: text("ip"),
endpoint: text("endpoint"),
action: text("action"),
lastBody: text("lastBody"),
stats: text("stats"),
lastBody: jsonb("lastBody"),
stats: integer("stats").default(1),
add_date: timestamp().defaultNow(),
upd_date: timestamp().defaultNow(),
}
// (table) => [
// // uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
// uniqueIndex("role_name").on(table.name),
// ]
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
uniqueIndex("endpoint").on(table.endpoint, table.ip),
]
);
// Schema for inserting a user - can be used to validate API requests

View File

@@ -1,6 +1,15 @@
import {text, pgTable, numeric, index, timestamp, boolean, uuid, uniqueIndex} from "drizzle-orm/pg-core";
import {createInsertSchema, createSelectSchema} from "drizzle-zod";
import {z} from "zod";
import {
text,
pgTable,
numeric,
index,
timestamp,
boolean,
uuid,
uniqueIndex,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
export const logs = pgTable(
"logs",
@@ -11,7 +20,7 @@ export const logs = pgTable(
service: text("service").notNull().default("system"),
message: text("message").notNull(),
checked: boolean("checked").default(false),
checkedAt: timestamp("checkedAt"),
//checkedAt: timestamp("checkedAt"),
created_at: timestamp("add_Date").defaultNow(),
},
(table) => [

View File

@@ -0,0 +1,36 @@
import {
boolean,
jsonb,
pgTable,
text,
timestamp,
uniqueIndex,
uuid,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
export const notifications = pgTable(
"notifications",
{
notify_id: uuid("notify_id").defaultRandom().primaryKey(),
name: text("name").notNull(),
description: text("description").notNull(),
checkInterval: text("checkInterval").default("1"),
timeType: text("timeType").default("hour"),
emails: text("emails"),
active: boolean("active").default(false),
lastRan: timestamp("lastRan").defaultNow(),
notifiySettings: jsonb("notifiySettings").default({}),
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
uniqueIndex("notify_name").on(table.name),
]
);
// Schema for inserting a user - can be used to validate API requests
// export const insertRolesSchema = createInsertSchema(roles, {
// name: z.string().min(3, {message: "Role name must be more than 3 letters"}),
// });
// Schema for selecting a Expenses - can be used to validate API responses
export const selectNotificationsSchema = createSelectSchema(notifications);

View File

@@ -1,6 +1,15 @@
import {text, pgTable, numeric, index, timestamp, boolean, uuid, uniqueIndex} from "drizzle-orm/pg-core";
import {createInsertSchema, createSelectSchema} from "drizzle-zod";
import {z} from "zod";
import {
text,
pgTable,
numeric,
index,
timestamp,
boolean,
uuid,
uniqueIndex,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
export const ocmeData = pgTable(
"ocmeData",
@@ -20,6 +29,7 @@ export const ocmeData = pgTable(
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
// uniqueIndex("role_name").on(table.name),
uniqueIndex("ocme_runningNr").on(table.runningNr),
]
);

View File

@@ -0,0 +1,37 @@
import {
text,
pgTable,
numeric,
timestamp,
boolean,
uuid,
integer,
jsonb,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
export const ocmeCycleCounts = pgTable(
"ocmeCycleCounts",
{
ocme_id: uuid("ocme_id").defaultRandom().primaryKey(),
laneId: integer("laneId").notNull(),
warehouseName: text("warehouseName").notNull(),
laneName: text("laneName").notNull(),
good: boolean("good").default(false),
cycleCount: jsonb("cycleCount").default([]),
add_User: text("add_User").default("LST_System").notNull(),
add_Date: timestamp("add_Date").defaultNow(),
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
// uniqueIndex("role_name").on(table.name),
//uniqueIndex("ocme_runningNr").on(table.runningNr),
]
);
// Schema for inserting a user - can be used to validate API requests
// export const insertRolesSchema = createInsertSchema(roles, {
// name: z.string().min(3, {message: "Role name must be more than 3 letters"}),
// });
// Schema for selecting a Expenses - can be used to validate API responses
export const selectRolesSchema = createSelectSchema(ocmeCycleCounts);

View File

@@ -0,0 +1,43 @@
import {
text,
pgTable,
numeric,
index,
timestamp,
boolean,
uuid,
uniqueIndex,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
export const printerData = pgTable(
"printerData",
{
printer_id: uuid("printer_id").defaultRandom().primaryKey(),
humanReadableId: text("humanReadableId"),
name: text("name").notNull(),
ipAddress: text("ipAddress"),
port: numeric("port"),
status: text("status"),
statusText: text("statusText"),
lastTimePrinted: timestamp("lastTimePrinted").notNull().defaultNow(),
assigned: boolean("assigned").default(false),
remark: text("remark"),
printDelay: numeric("printDelay").default("90"),
monitorState: boolean("monitorState").default(false),
add_Date: timestamp("add_Date").defaultNow(),
upd_date: timestamp("upd_date").defaultNow(),
},
(table) => [
//uniqueIndex("emailUniqueIndex").on(sql`lower(${table.email})`),
uniqueIndex("humanReadableId").on(table.humanReadableId),
]
);
// Schema for inserting a user - can be used to validate API requests
// export const insertRolesSchema = createInsertSchema(roles, {
// name: z.string().min(3, {message: "Role name must be more than 3 letters"}),
// });
// Schema for selecting a Expenses - can be used to validate API responses
export const selectRolesSchema = createSelectSchema(printerData);

View File

@@ -0,0 +1,30 @@
import {
integer,
pgTable,
uuid,
uniqueIndex,
text,
timestamp,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
export const prodlabels = pgTable(
"prodlabels",
{
label_id: uuid("label_id").defaultRandom().primaryKey(),
printerID: integer("printerID"),
printerName: text("printerName"),
line: integer("line"),
runningNr: integer("runningNr").notNull(),
status: text("status"),
add_user: text("add_user").default("lst"),
add_date: timestamp("add_date").defaultNow(),
upd_date: timestamp("upd_date").defaultNow(),
},
(table) => [
//uniqueIndex("emailUniqueIndex").on(sql`lower(${table.email})`),
uniqueIndex("runningNr").on(table.runningNr),
]
);
export const prodlabelsSchema = createSelectSchema(prodlabels);

View File

@@ -0,0 +1,48 @@
import {
text,
pgTable,
numeric,
index,
timestamp,
boolean,
uuid,
uniqueIndex,
integer,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
export const qualityRequest = pgTable(
"qualityRequest",
{
request_id: uuid("request_id").defaultRandom().primaryKey(),
article: numeric("article"),
description: text("description"),
runningNr: text("runningNr"),
lotNr: numeric("lotNr"),
warehouseAtRequest: text("warehouseAtRequest"),
locationAtRequest: text("locationAtRequest"),
warehouseMovedTo: text("warehouseMovedTo"),
locationMovedTo: text("locationMovedTo"),
durationToMove: integer("durationToMove"),
locationDropOff: text("locationDropOff"),
palletStatus: integer("palletStatus"),
palletStatusText: text("palletStatusText"),
palletRequest: integer("palletRequest"),
add_date: timestamp("add_date").defaultNow(),
add_user: text("add_user").default("LST"),
upd_date: timestamp("upd_date").defaultNow(),
upd_user: text("upd_user").default("LST"),
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
// uniqueIndex("role_name").on(table.name),
]
);
// Schema for inserting a user - can be used to validate API requests
// export const insertRolesSchema = createInsertSchema(roles, {
// name: z.string().min(3, {message: "Role name must be more than 3 letters"}),
// });
// Schema for selecting a Expenses - can be used to validate API responses
export const selectRolesSchema = createSelectSchema(qualityRequest);

View File

@@ -1,6 +1,16 @@
import {text, pgTable, numeric, index, timestamp, boolean, uuid, uniqueIndex, jsonb} from "drizzle-orm/pg-core";
import {createInsertSchema, createSelectSchema} from "drizzle-zod";
import {z} from "zod";
import {
text,
pgTable,
numeric,
index,
timestamp,
boolean,
uuid,
uniqueIndex,
jsonb,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
export const rfidReaders = pgTable(
"rfidReaders",
@@ -12,6 +22,7 @@ export const rfidReaders = pgTable(
lastTrigger: timestamp("lastTrigger").defaultNow(),
lastTriggerGood: boolean("lastTiggerGood").default(true),
active: boolean("active").default(true),
lastTagScanned: text("lastTagScanned"),
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),

View File

@@ -1,7 +1,14 @@
import {text, pgTable, timestamp, uuid, uniqueIndex, jsonb} from "drizzle-orm/pg-core";
import {createSelectSchema} from "drizzle-zod";
import {z} from "zod";
import {modules} from "./modules.js";
import {
text,
pgTable,
timestamp,
uuid,
uniqueIndex,
jsonb,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
import { z } from "zod";
import { modules } from "./modules.js";
export const settings = pgTable(
"settings",

View File

@@ -0,0 +1,39 @@
import {
text,
pgTable,
numeric,
timestamp,
uuid,
integer,
} from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod";
export const siloAdjustments = pgTable(
"siloAdjustments",
{
siloAdjust_id: uuid("siloAdjust_id").defaultRandom().primaryKey(),
warehouseID: integer("level"),
locationID: integer("locationID"),
currentStockLevel: numeric("currentStockLevel"),
newLevel: numeric("newLevel"),
comment: text("comment").default(""),
dateAdjusted: timestamp("dateAdjusted").defaultNow(),
lastDateAdjusted: timestamp("lastDateAdjusted").defaultNow(),
commentAddedBy: text("commentAddedBy"),
commentDate: text("commentDate"),
commentKey: text("commentKey"),
add_user: text("add_user").default("LST_Serivce"),
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
// uniqueIndex("role_name").on(table.name),
]
);
// Schema for inserting a user - can be used to validate API requests
// export const insertRolesSchema = createInsertSchema(roles, {
// name: z.string().min(3, {message: "Role name must be more than 3 letters"}),
// });
// Schema for selecting a Expenses - can be used to validate API responses
export const selectRolesSchema = createSelectSchema(siloAdjustments);

View File

@@ -0,0 +1,45 @@
import {
text,
pgTable,
timestamp,
boolean,
uuid,
uniqueIndex,
jsonb,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
//import {z} from "zod";
export const subModules = pgTable(
"subModules",
{
submodule_id: uuid("submodule_id").defaultRandom().primaryKey(),
moduleName: text("moduleName"),
// .notNull()
// .references(() => modules.name),
name: text("name").notNull(),
description: text("description"),
link: text("link").notNull(),
active: boolean("active").default(false),
roles: jsonb("roles").notNull().default(["systemAdmin"]), // ["view", "technician", "supervisor","manager", "admin","systemAdmin"]
icon: text("icon"),
subSubModule: jsonb("subSubModule").default([]),
add_User: text("add_User").default("LST_System").notNull(),
add_Date: timestamp("add_Date").defaultNow(),
upd_user: text("upd_User").default("LST_System").notNull(),
upd_date: timestamp("upd_date").defaultNow(),
},
(table) => [
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
uniqueIndex("subModule_name").on(table.name),
]
);
// Schema for inserting a user - can be used to validate API requests
// export const insertModuleSchema = createInsertSchema(modules, {
// name: z.string().min(3, {message: "Module name should be longer than 3 letters"}),
// });
// Schema for selecting a Expenses - can be used to validate API responses
export const selectModuleSchema = createSelectSchema(subModules);
export type Modules = typeof subModules;

File diff suppressed because it is too large Load Diff

View File

@@ -8,11 +8,12 @@
"build": "rimraf dist && tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"shad": "npx shadcn@canary add ",
"shad": "npx shadcn@latest add ",
"checkupdates": "npm-check-updates"
},
"dependencies": {
"@hookform/resolvers": "^4.1.3",
"@radix-ui/react-accordion": "^1.2.3",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
"@radix-ui/react-collapsible": "^1.1.3",
@@ -20,12 +21,14 @@
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-popover": "^1.1.6",
"@radix-ui/react-scroll-area": "^1.2.3",
"@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-separator": "^1.1.2",
"@radix-ui/react-slot": "^1.1.2",
"@radix-ui/react-tabs": "^1.1.3",
"@radix-ui/react-tooltip": "^1.1.8",
"@tailwindcss/vite": "^4.0.15",
"@tanstack/react-form": "^1.2.1",
"@tanstack/react-query": "^5.69.0",
"@tanstack/react-router": "^1.114.27",
"@tanstack/react-table": "^8.21.2",
@@ -38,6 +41,7 @@
"js-cookie": "^3.0.5",
"jsonwebtoken": "^9.0.2",
"lucide-react": "^0.483.0",
"marked": "^15.0.8",
"next-themes": "^0.4.6",
"npm-check-updates": "^17.1.16",
"react": "^19.0.0",
@@ -45,6 +49,8 @@
"react-dom": "^19.0.0",
"react-grid-layout": "^1.5.1",
"react-hook-form": "^7.54.2",
"react-resizable-panels": "^2.1.7",
"recharts": "^2.15.2",
"sonner": "^2.0.1",
"tailwind-merge": "^3.0.2",
"tailwindcss": "^4.0.15",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,8 @@
export default function DataMartStats() {
return (
<div>
The stats for all the data mart querys out there and whos and when
they are last used to understand if we want to keep them or not
</div>
);
}

View File

@@ -0,0 +1,146 @@
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
import { Label } from "@/components/ui/label";
import { toast } from "sonner";
import { useState } from "react";
//import { z } from "zod";
//import { zodResolver } from "@hookform/resolvers/zod";
import { useQuery } from "@tanstack/react-query";
import { useSessionStore } from "@/lib/store/sessionStore";
import axios from "axios";
import { useForm } from "@tanstack/react-form";
import { Checkbox } from "@/components/ui/checkbox";
import { getModules } from "@/utils/querys/admin/modules";
// const FormSchema = z.object({
// subModule: z.boolean(),
// });
export function ChangeModule({ module }: { module: any }) {
const { token } = useSessionStore();
const { refetch } = useQuery(getModules(token ?? ""));
const [open, setOpen] = useState(false);
const [saving, setSaving] = useState(false);
const form = useForm({
defaultValues: {
active: module.active,
},
onSubmit: async ({ value }) => {
//console.log(value);
try {
const result = await axios.patch(
`/api/server/modules/${module.module_id}`,
{ active: value.active },
{
headers: { Authorization: `Bearer ${token}` },
}
);
if (result.data.success) {
setOpen(!open);
setSaving(false);
refetch();
toast.success(result.data.message);
}
} catch (error) {
console.log(error);
}
},
});
return (
<>
<Dialog
open={open}
onOpenChange={(isOpen) => {
if (!open) {
form.reset();
}
setOpen(isOpen);
// toast.message("Model was something", {
// description: isOpen ? "Modal is open" : "Modal is closed",
// });
}}
>
<DialogTrigger asChild>
<Button variant="outline">Edit</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>{module.name}</DialogTitle>
<DialogDescription>
Set to active or deactivated.
</DialogDescription>
</DialogHeader>
<form
onSubmit={(e) => {
e.preventDefault();
e.stopPropagation();
}}
>
<div>
<>
<form.Field
name="active"
// validators={{
// // We can choose between form-wide and field-specific validators
// onChange: ({ value }) =>
// value.length > 3
// ? undefined
// : "Username must be longer than 3 letters",
// }}
children={(field) => {
return (
<div className="m-2 min-w-48 max-w-96 p-2 flex flex-row">
<Label htmlFor="active">
Active
</Label>
<Checkbox
className="ml-2"
name={field.name}
onBlur={field.handleBlur}
checked={field.state.value}
onCheckedChange={(e) =>
field.handleChange(e)
}
/>
</div>
);
}}
/>
</>
</div>
<DialogFooter>
<div className="flex justify-end mt-2">
<Button
type="submit"
disabled={saving}
onClick={form.handleSubmit}
>
{saving ? (
<>
<span>Saving....</span>
</>
) : (
<span>Save setting</span>
)}
</Button>
</div>
</DialogFooter>
</form>
</DialogContent>
</Dialog>
</>
);
}

View File

@@ -0,0 +1,116 @@
import { LstCard } from "@/components/extendedUI/LstCard";
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import { useSessionStore } from "@/lib/store/sessionStore";
import { useModuleStore } from "@/lib/store/useModuleStore";
import { useQuery } from "@tanstack/react-query";
import { useRouter } from "@tanstack/react-router";
import { Skeleton } from "@/components/ui/skeleton";
import { getModules } from "@/utils/querys/admin/modules";
import { ChangeModule } from "./ModuleForm";
export type Settings = {
settings_id?: string;
name?: string;
value?: string;
description?: string;
};
export default function ModulesPage() {
const { user, token } = useSessionStore();
const { modules } = useModuleStore();
const router = useRouter();
const adminModule = modules.filter((n) => n.name === "admin");
const userLevel =
user?.roles.filter((r) => r.module_id === adminModule[0].module_id) ||
[];
if (!adminModule[0].roles.includes(userLevel[0]?.role)) {
router.navigate({ to: "/" });
}
const { data, isError, error, isLoading } = useQuery(
getModules(token ?? "")
);
// if (isLoading) {
// return <div>Loading.....</div>;
// }
if (isError) {
return <div>{JSON.stringify(error)}</div>;
}
return (
<LstCard className="m-2 flex place-content-center w-fit">
<Table>
<TableHeader>
<TableRow>
<TableHead>Name</TableHead>
<TableHead>Description</TableHead>
<TableHead>Module In</TableHead>
<TableHead>Roles</TableHead>
<TableHead>Active</TableHead>
<TableHead>Edit</TableHead>
</TableRow>
</TableHeader>
{isLoading ? (
<>
<TableBody>
{Array(10)
.fill(0)
.map((_, i) => (
<TableRow key={i}>
<TableCell className="font-medium">
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
</TableRow>
))}
</TableBody>
</>
) : (
<TableBody>
{data?.map((i: any) => (
<TableRow key={i.submodule_id}>
<TableCell className="font-medium">
{i.name}
</TableCell>
<TableCell className="font-medium">
{i.description}
</TableCell>
<TableCell className="font-medium">
{i.moduleName}
</TableCell>
<TableCell className="font-medium">
{JSON.stringify(i.roles)}
</TableCell>
<TableCell className="font-medium">
{i.active ? "Yes" : "No"}
</TableCell>
<TableCell className="font-medium">
<ChangeModule module={i} />
</TableCell>
</TableRow>
))}
</TableBody>
)}
</Table>
</LstCard>
);
}

View File

@@ -0,0 +1,22 @@
import { getnotifications } from "@/utils/querys/admin/notifications";
import { notifyColumns } from "@/utils/tableData/notifications/notifyColumns";
import { NotifyTable } from "@/utils/tableData/notifications/notifyData";
import { useQuery } from "@tanstack/react-query";
export default function NotificationMGT() {
const { data, isError, isLoading } = useQuery(getnotifications());
if (isLoading) return <div>Loading adjustmnet data...</div>;
if (isError) {
return (
<div>
<p>There was an error getting the adjustments.</p>
</div>
);
}
return (
<div>
<NotifyTable columns={notifyColumns} data={data} />
</div>
);
}

View File

@@ -1,12 +1,12 @@
import { LstCard } from "@/components/extendedUI/LstCard";
import { Skeleton } from "@/components/ui/skeleton";
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import { useSessionStore } from "@/lib/store/sessionStore";
import { useModuleStore } from "@/lib/store/useModuleStore";
@@ -19,107 +19,172 @@ import { adminUrlCheck } from "@/utils/adminUrlCheck";
import RestartServer from "./RestartServer";
import StopServer from "./StopServer";
import StartServer from "./StartServer";
import { Button } from "@/components/ui/button";
import { getSettings } from "@/utils/querys/settings";
import { toast } from "sonner";
import axios from "axios";
//import { useState } from "react";
export type Servers = {
server_id?: string;
sName?: string;
serverDNS?: string;
plantToken?: string;
idAddress: string;
lastUpdated: string;
isUpgrading: boolean;
server_id?: string;
sName?: string;
serverDNS?: string;
plantToken?: string;
idAddress: string;
lastUpdated: string;
isUpgrading: boolean;
lstServerPort: string;
};
export default function ServerPage() {
const { user, token } = useSessionStore();
const { modules } = useModuleStore();
const router = useRouter();
const { user, token } = useSessionStore();
const { modules } = useModuleStore();
//const [upgrading, setUpgrading] = useState(false);
const router = useRouter();
const { data, isError, error, isLoading } = useQuery(getServers(token ?? ""));
const { data, isError, error, isLoading } = useQuery(
getServers(token ?? "")
);
const adminModule = modules.filter((n) => n.name === "admin");
const userLevel =
user?.roles?.filter((r) => r.module_id === adminModule[0].module_id) || [];
const adminModule = modules.filter((n) => n.name === "admin");
const userLevel =
user?.roles?.filter((r) => r.module_id === adminModule[0].module_id) ||
[];
if (!adminModule[0]?.roles?.includes(userLevel[0]?.role)) {
router.navigate({ to: "/" });
}
if (!adminModule[0]?.roles?.includes(userLevel[0]?.role)) {
router.navigate({ to: "/" });
}
if (isError) {
return <div>{JSON.stringify(error)}</div>;
}
if (isError) {
return <div>{JSON.stringify(error)}</div>;
}
const { data: set } = useQuery(getSettings(token ?? ""));
const upgrade = async () => {
let devDir = set.filter((n: any) => n.name === "devDir");
toast.success("All Servers was just triggered.");
console.log(data);
return (
<LstCard className="m-2 flex place-content-center w-dvh">
<Table>
<TableHeader>
<TableRow>
<TableHead>Name</TableHead>
<TableHead>Server</TableHead>
<TableHead>PlantToken</TableHead>
<TableHead>IP Address</TableHead>
<TableHead>Date Last updated</TableHead>
<TableHead>Update Server</TableHead>
</TableRow>
</TableHeader>
{isLoading ? (
<>
<TableBody>
{Array(10)
.fill(0)
.map((_, i) => (
<TableRow key={i}>
<TableCell className="font-medium">
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
</TableRow>
))}
</TableBody>
</>
) : (
<TableBody>
{data?.map((server: Servers) => {
const strippedDate = server.lastUpdated.replace("Z", ""); // Remove Z
const formattedDate = format(strippedDate, "MM/dd/yyyy hh:mm a");
return (
<TableRow key={server.server_id}>
<TableCell className="font-medium">{server.sName}</TableCell>
<TableCell className="font-medium">
{server.serverDNS}
</TableCell>
<TableCell className="font-medium">
{server.plantToken}
</TableCell>
<TableCell className="font-medium">
{server.idAddress}
</TableCell>
<TableCell className="font-medium">{formattedDate}</TableCell>
<TableCell className="font-medium">
{adminUrlCheck() && (
<div className="flex flex-row">
<UpdateServer server={server} token={token as string} />
<StartServer />
<StopServer />
<RestartServer />
</div>
)}
</TableCell>
</TableRow>
);
})}
</TableBody>
)}
</Table>
</LstCard>
);
try {
const result = await axios.post(
`/api/server/update/localhost`,
{ devDir: devDir[0].value, all: true },
{
headers: { Authorization: `Bearer ${token}` },
}
);
if (result.data.success) {
toast.success(result.data.message);
}
if (!result.data.success) {
toast.success(result.data.message);
}
} catch (error: any) {
toast.error(
`There was an error updating the server: ${error.data.message}`
);
}
};
//console.log(data);
return (
<LstCard className="m-2 flex place-content-center w-dvh">
<div className="flex justify-end m-2">
<Button
onClick={upgrade}
disabled={data?.some((d: any) => d.isUpgrading)}
>
Update All Servers
</Button>
</div>
<Table>
<TableHeader>
<TableRow>
<TableHead>Name</TableHead>
<TableHead>Server</TableHead>
<TableHead>PlantToken</TableHead>
<TableHead>IP Address</TableHead>
<TableHead>Date Last updated</TableHead>
<TableHead>Update Server</TableHead>
</TableRow>
</TableHeader>
{isLoading ? (
<>
<TableBody>
{Array(10)
.fill(0)
.map((_, i) => (
<TableRow key={i}>
<TableCell className="font-medium">
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
<TableCell>
<Skeleton className="h-4" />
</TableCell>
</TableRow>
))}
</TableBody>
</>
) : (
<TableBody>
{data?.map((server: Servers) => {
const strippedDate = server.lastUpdated.replace(
"Z",
""
); // Remove Z
const formattedDate = format(
strippedDate,
"MM/dd/yyyy hh:mm a"
);
return (
<TableRow key={server.server_id}>
<TableCell className="font-medium">
<a
href={`http://${server.serverDNS}:${server.lstServerPort}`}
target={"_blank"}
>
<span>{server.sName}</span>
</a>
</TableCell>
<TableCell className="font-medium">
{server.serverDNS}
</TableCell>
<TableCell className="font-medium">
{server.plantToken}
</TableCell>
<TableCell className="font-medium">
{server.idAddress}
</TableCell>
<TableCell className="font-medium">
{formattedDate}
</TableCell>
<TableCell className="font-medium">
{adminUrlCheck() && (
<div className="flex flex-row">
<UpdateServer
server={server}
token={token as string}
/>
<StartServer />
<StopServer
plantData={server}
/>
<RestartServer />
</div>
)}
</TableCell>
</TableRow>
);
})}
</TableBody>
)}
</Table>
</LstCard>
);
}

View File

@@ -1,14 +1,46 @@
import {Button} from "@/components/ui/button";
import {Tooltip, TooltipContent, TooltipProvider, TooltipTrigger} from "@/components/ui/tooltip";
import {Octagon} from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import axios from "axios";
import { Octagon } from "lucide-react";
export default function StopServer() {
export default function StopServer(plantData: any) {
const token = localStorage.getItem("auth_token");
const handleStopServer = async (plant: string) => {
let data: any = {
processType: "stop",
plantToken: plant,
};
const url: string = window.location.host.split(":")[0];
if (url === "localhost") {
data = { ...data, remote: "true" };
}
try {
const res = await axios.post("/api/server/serviceprocess", data, {
headers: { Authorization: `Bearer ${token}` },
});
console.log(res);
} catch (error) {
console.log(error);
}
};
return (
<div>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button variant={"outline"} size={"icon"}>
<Button
variant="destructive"
size={"icon"}
onClick={() =>
handleStopServer(plantData.plantToken)
}
>
<Octagon />
</Button>
</TooltipTrigger>

View File

@@ -1,23 +1,34 @@
import {Button} from "@/components/ui/button";
import {CircleFadingArrowUp} from "lucide-react";
import {toast} from "sonner";
import {Servers} from "./ServerPage";
import {useQuery} from "@tanstack/react-query";
import {getSettings} from "@/utils/querys/settings";
import { Button } from "@/components/ui/button";
import { CircleFadingArrowUp } from "lucide-react";
import { toast } from "sonner";
import { Servers } from "./ServerPage";
import { useQuery } from "@tanstack/react-query";
import { getSettings } from "@/utils/querys/settings";
import axios from "axios";
import {Tooltip, TooltipContent, TooltipProvider, TooltipTrigger} from "@/components/ui/tooltip";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
export default function UpdateServer({server, token}: {server: Servers; token: string}) {
const {data} = useQuery(getSettings(token ?? ""));
export default function UpdateServer({
server,
token,
}: {
server: Servers;
token: string;
}) {
const { data } = useQuery(getSettings(token ?? ""));
const upgrade = async () => {
let devDir = data.filter((n: any) => n.name === "devDir");
toast.success("Server being upgraded in the background please wait.");
try {
const result = await axios.post(
`/api/server/update/${server.plantToken}`,
{devDir: devDir[0].value},
{ devDir: devDir[0].value },
{
headers: {Authorization: `Bearer ${token}`},
headers: { Authorization: `Bearer ${token}` },
}
);
@@ -29,7 +40,9 @@ export default function UpdateServer({server, token}: {server: Servers; token: s
toast.success(result.data.message);
}
} catch (error: any) {
toast.error(`There was an error updating the server: ${error.data.message}`);
toast.error(
`There was an error updating the server: ${error.data.message}`
);
}
};
return (
@@ -37,7 +50,12 @@ export default function UpdateServer({server, token}: {server: Servers; token: s
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button variant={"outline"} size={"icon"} onClick={upgrade} disabled={server.isUpgrading}>
<Button
variant={`${server.isUpgrading ? "ghost" : "outline"}`}
size={"icon"}
onClick={upgrade}
disabled={server.isUpgrading}
>
<CircleFadingArrowUp />
</Button>
</TooltipTrigger>

View File

@@ -0,0 +1,145 @@
import { Button } from "@/components/ui/button";
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
import { Label } from "@/components/ui/label";
import { toast } from "sonner";
import { useState } from "react";
//import { z } from "zod";
//import { zodResolver } from "@hookform/resolvers/zod";
import { useQuery } from "@tanstack/react-query";
import { useSessionStore } from "@/lib/store/sessionStore";
import axios from "axios";
import { useForm } from "@tanstack/react-form";
import { Checkbox } from "@/components/ui/checkbox";
import { getSubModules } from "@/utils/querys/admin/subModules";
// const FormSchema = z.object({
// subModule: z.boolean(),
// });
export function ChangeSubModule({ subModule }: { subModule: any }) {
const { token } = useSessionStore();
const { refetch } = useQuery(getSubModules(token ?? ""));
const [open, setOpen] = useState(false);
const [saving, setSaving] = useState(false);
const form = useForm({
defaultValues: {
active: subModule.active,
},
onSubmit: async ({ value }) => {
console.log(value);
try {
const result = await axios.patch(
`/api/server/submodules/${subModule.submodule_id}`,
{ active: value.active },
{
headers: { Authorization: `Bearer ${token}` },
}
);
if (result.data.success) {
setOpen(!open);
setSaving(false);
refetch();
toast.success(result.data.message);
}
} catch (error) {
console.log(error);
}
},
});
return (
<>
<Dialog
open={open}
onOpenChange={(isOpen) => {
if (!open) {
form.reset();
}
setOpen(isOpen);
// toast.message("Model was something", {
// description: isOpen ? "Modal is open" : "Modal is closed",
// });
}}
>
<DialogTrigger asChild>
<Button variant="outline">Edit</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>{subModule.name}</DialogTitle>
<DialogDescription>
Set to active or deactivated.
</DialogDescription>
</DialogHeader>
<form
onSubmit={(e) => {
e.preventDefault();
e.stopPropagation();
}}
>
<div>
<>
<form.Field
name="active"
// validators={{
// // We can choose between form-wide and field-specific validators
// onChange: ({ value }) =>
// value.length > 3
// ? undefined
// : "Username must be longer than 3 letters",
// }}
children={(field) => {
return (
<div className="m-2 min-w-48 max-w-96 p-2 flex flex-row">
<Label htmlFor="active">
Active
</Label>
<Checkbox
className="ml-2"
name={field.name}
onBlur={field.handleBlur}
checked={field.state.value}
onCheckedChange={(e) =>
field.handleChange(e)
}
/>
</div>
);
}}
/>
</>
</div>
<DialogFooter>
<div className="flex justify-end mt-2">
<Button
type="submit"
disabled={saving}
onClick={form.handleSubmit}
>
{saving ? (
<>
<span>Saving....</span>
</>
) : (
<span>Save setting</span>
)}
</Button>
</div>
</DialogFooter>
</form>
</DialogContent>
</Dialog>
</>
);
}

Some files were not shown because too many files have changed in this diff Show More