-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add paging #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add paging #20
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Page
type 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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.