Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull Request Overview
This PR introduces multi-page layout functionality to the kiosk application, allowing widgets to be organized across multiple pages with timed rotation capabilities. The changes maintain backward compatibility with single-page configurations while enabling more dynamic kiosk displays.
- Adds
Pagetype with configurable duration and widget arrays - Implements automatic page rotation with customizable timing
- Updates admin interface to support multi-page configuration and editing
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/client/src/utils/useWidgetConfig.ts | Updates widget config hook to use active widget context |
| packages/client/src/types/config.type.ts | Adds Page type and makes widgets optional for backward compatibility |
| packages/client/src/layout/WidgetDistributor.tsx | Wraps widget rendering with ActiveWidgetProvider |
| packages/client/src/layout/ConfigContext.tsx | Implements page rotation logic with timer management |
| packages/client/src/layout/ActiveWidgetConfigContext.tsx | New context for tracking active widget configuration |
| packages/client/src/App.tsx | Updates to use flattened widgets from context |
| packages/backend/src/types/kiosk.types.ts | Mirrors frontend type changes for Page structure |
| packages/backend/src/kiosk/kiosk.service.ts | Updates patch method to handle pages configuration |
| packages/admin/src/types/types.tsx | Adds pageDurationSec to MetaForm |
| packages/admin/src/types/kiosk.types.ts | Mirrors client-side type changes |
| packages/admin/src/pages/Widgets.page.tsx | Complete rewrite to support multi-page editing |
| packages/admin/src/pages/WidgetEditPage.tsx | Adds null check for optional widgets |
| packages/admin/src/pages/Meta.page.tsx | Adds page duration configuration field |
| packages/admin/src/pages/KioskDashboard.page.tsx | Updates to display page information |
| packages/admin/src/context/kiosk.context.tsx | Removes automatic navigation on kiosk update |
| packages/admin/src/components/KioskListItem.tsx | Adds explicit navigation to dashboard |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
berenteb
left a comment
There was a problem hiding this comment.
Copilotos ajánlás amúgy fair
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Introduces multi-page layouts with timed rotation, per-page widget configs.