47 Commits

Author SHA1 Message Date
etiennecollin
492e71fcc3 feat: restrict guest subnetwork access 2025-09-07 18:39:45 -04:00
etiennecollin
74e824f834 refactor: cleanup of print page 2025-09-07 16:53:29 -04:00
etiennecollin
dacd6a9a5c refactor: voucher cards and voucher status 2025-09-07 15:54:24 -04:00
etiennecollin
b81efc3c87 style: removed interactive button text 2025-09-07 15:13:23 -04:00
etiennecollin
404d35b437 feat: improved welcome page 2025-09-07 15:10:32 -04:00
etiennecollin
fbff084818 fix: handle unavailable QR on kiosk page 2025-09-07 14:50:41 -04:00
etiennecollin
a8288d785d feat: added QR code to kiosk page 2025-09-07 14:37:44 -04:00
etiennecollin
d14e940563 refactor: made WiFi Qr code component modular 2025-09-07 14:34:51 -04:00
etiennecollin
14b3b408ea fix: some devices do not have the crypto.randomUUID() function 2025-09-07 14:10:26 -04:00
etiennecollin
7dd8218867 chore: renamed main <div> to <main> and minor tweaks 2025-09-07 13:27:14 -04:00
etiennecollin
04a6508554 fix: modal close button size and position 2025-09-07 02:54:06 -04:00
etiennecollin
f799a8575e chore: cleanup of tailwind utilities 2025-09-07 02:54:06 -04:00
etiennecollin
ee6b0d6109 fix: header was too wide on small screens 2025-09-07 02:54:06 -04:00
etiennecollin
b8a7ca808b fix: handle SSE reconnections 2025-09-07 02:54:06 -04:00
etiennecollin
562a314fc8 fix: updates work accross clients
Fixed issue where custom window events only worked within single browser
tabs. Implemented SSE with singleton pattern to broadcast updates across
all open tabs and users when voucher operations occur.

- Added SSE manager with globalThis singleton for cross-process
persistence
- Created server action to broadcast events via SSE after voucher
operations
- Updated client API calls to trigger server action notifications
- SSE automatically triggers existing vouchersUpdated window events
2025-09-07 02:54:06 -04:00
etiennecollin
4dddbe9b70 style: commenting and changed component names 2025-09-07 02:54:06 -04:00
etiennecollin
0b22b2277e feat: added frontend support for kiosk mode
- In the middleware, we pass the IP of the client updating the rolling
voucher to prevent other updates by reloading the page. In the future,
we should use the MAC address...
2025-09-07 02:54:06 -04:00
etiennecollin
7017308db9 chore: ignore runtime-config.js 2025-09-07 02:54:06 -04:00
etiennecollin
ad42110722 chore: removed unused RenderInWindow file 2025-08-19 20:45:13 -04:00
etiennecollin
4b1c030268 refactor: removed "use client" from some components 2025-08-19 04:01:07 -04:00
etiennecollin
88bfa137e3 chore: bumped dependencies 2025-08-19 03:57:02 -04:00
etiennecollin
c74b682b00 feat: bulk printing of vouchers 2025-08-19 03:56:50 -04:00
etiennecollin
8f8fc49ba8 feat: basic printing of vouchers
Added a global context for the WiFi config.
2025-08-18 19:33:43 -04:00
etiennecollin
0f0a0cc51a fix: allow using self-signed certs
Closes https://github.com/etiennecollin/unifi-voucher-manager/issues/3
2025-08-16 10:03:35 -04:00
etiennecollin
0c898b3682 fix: interactive styling 2025-08-14 14:03:10 -04:00
etiennecollin
603a0c11b2 fix: removed date formatting as it is done in the backend 2025-08-14 13:33:52 -04:00
etiennecollin
34f9ebd098 refactor: do not hardcode valid types 2025-08-14 13:33:52 -04:00
etiennecollin
83a39b3a37 feat: accept hidden boolean as true/false or 1/0 and default to false 2025-08-14 13:33:52 -04:00
etiennecollin
339e7bbc0a feat: replaced QR text button with small QR icon 2025-08-14 13:33:38 -04:00
etiennecollin
12a1b06d8a fix: tabs offset from top follows header height 2025-08-14 13:33:38 -04:00
etiennecollin
733094de8f fix: dockerignore were not used 2025-08-14 13:33:38 -04:00
etiennecollin
ec2be36bb2 fix: made wifi environment variables accessible to frontend
- Also reverted change in run_wrapper.sh where backend variables where
overwritten. This is simply not an issue as variables are baked-in at
build time.
2025-08-14 13:33:38 -04:00
etiennecollin
7c17a790d4 fix: duplicate computations and renderings 2025-08-14 13:33:38 -04:00
etiennecollin
00d644aa3e fix: hydration issues with wifiConfig 2025-08-14 13:33:38 -04:00
etiennecollin
1500a9f4c1 fix: allow ommiting onClick for voucher cards 2025-08-14 13:33:38 -04:00
etiennecollin
782e59f4e7 feat: improvement of test tab 2025-08-14 13:33:38 -04:00
etiennecollin
0f349d635b refactor: cleanup of globals.css 2025-08-14 13:33:38 -04:00
etiennecollin
5366b46628 feat: added QR code modal 2025-08-13 20:11:01 +02:00
etiennecollin
b61a61c93c feat: added possibility to get the ref of a modal container 2025-08-13 20:06:52 +02:00
etiennecollin
f69b76276d feat: added warning notification variant 2025-08-13 20:04:26 +02:00
etiennecollin
829939795c fix: fixed btn utility styling 2025-08-13 20:03:53 +02:00
Etienne Collin
7dc6c0b23b docs: deleted frontend/README.md 2025-08-12 22:37:07 +02:00
etiennecollin
3e7fe4bd61 feat: added docker release action 2025-08-08 23:04:02 +02:00
etiennecollin
d60018ac65 fix: timeout delay before reenabling transitions on Safari 2025-08-08 16:09:55 +02:00
etiennecollin
c8825616b8 fix: iOS scrolling and safe areas 2025-08-08 16:09:55 +02:00
etiennecollin
0cf7817a41 misc: removed logging for safari transitions 2025-08-08 16:09:54 +02:00
etiennecollin
d4d093e779 Initial commit
fix: double api call to get voucher details

style: removed ugly tab background
2025-08-06 22:55:45 +02:00