Skip to content

Conversation

duszmox
Copy link
Contributor

@duszmox duszmox commented Sep 11, 2025

Introduces multi-page layouts with timed rotation, per-page widget configs.

Copy link

vercel bot commented Sep 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
indulasch-admin Error Error Sep 14, 2025 10:09am
indulasch-client Error Error Sep 14, 2025 10:09am
indulasch-landing Error Error Sep 14, 2025 10:09am

@duszmox duszmox requested review from berenteb and Copilot September 11, 2025 16:42
Copy link

@Copilot Copilot AI left a 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.

duszmox and others added 2 commits September 11, 2025 18:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@berenteb berenteb left a 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

@duszmox
Copy link
Contributor Author

duszmox commented Sep 14, 2025

Copilotos ajánlás amúgy fair

Azt be is nyomtam, még akkor Egy kimaradt, azt is commitoltam

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants